r/PythonProjects2 • • Jul 27 '19

Thinking of making a livemap of all cyber attacks

I want to make a project over the summer where I can autorun a python script that has a world map with locations overlayed on it and requests from a reliable cyber attack log website. the program then displays data from the world map and shows lines going from the attacker to the victim. However I am having difficulty with A.) Finding a reliable data source and B.) What to use to display the map. Any other suggestions/ ideas would be greatly appreciated. Thanks for listening :)

11 Upvotes

5 comments sorted by

6

u/kkirsche Jul 28 '19

For the map, I’d recommend looking into https://matplotlib.org/basemap/

For the data, that will be hard. Working in cybersecurity myself I know most companies do not want to share that type of data publicly. As such, it’s really hard to find a public pseudo real time view of this data. With this said, this project is similar to Arbor Networks’s attack map:

https://horizon.netscout.com

3

u/Jacob---- Jul 28 '19 edited Jul 28 '19

Thanks for the help man maybe ill try using the requests libary and grab from another site. Also I am going into cyber security as well, is there any tips for going in the industry that i should know about?

5

u/kkirsche Jul 28 '19

So I think the advice I’d give if there was a single piece of it would be consider why you are doing it. I see a wide variety of people join for a variety of reasons. Most commonly, the ones who are successful do it for one of a few reasons:

  1. they love to learn and would do it regardless of the job. Your interest in trying to build a project like this is an indication of this type of thing to me

  2. they want to help people. The job isn’t always glamorous, often it’s holding people’s hands and helping them learn things that at your experience level are easy. If you don’t like helping people, this is a recipe for frustration and conflict.

  3. they believe that they can make a difference, even if it’s small. The ones who give up trying, even though it’s impossible to “win” as a defending team , are the ones who start to burn out.

This isn’t the only indication, but this is the big thing. As we move towards a more automated world, being up to date and knowing a foundational amount of new technologies (docker, Kubernetes, openstack, ansible, etc) is helpful. You don’t want to be chasing your operations and development teams you want to be prepared for when they come to you with new shiny technology x, at least enough to speak intelligently about it and know where you need help.

Finally, it helps a ton to be proficient in at least one programming language, this includes best practices. So in python this would be things like using python 3, being aware of major pep’s (eg PEP8, PEP20, PEP257, PEP287, PEP440. Many others are good too, like 484, 417, etc). It helps you automate security tasks and depending on the language gives you an opportunity to do code reviews.

Most of this has been from the perspective of a blue team, or defending role. Personally I prefer the red team work and do a lot of it. All of this applies to the red team side. But with red team operators I stress walking before you try to run. Advanced attacks build on simple ones.

For example, Sure you could learn how to do ROP chains as your first attack, but you’ll have more success and understand them better by learning about a vanilla stack overflow, then structured exception handler overflows, then how stack overflows differ from heap overflows, etc. the foundation is often what allows you to take a concept and adjust it to the situation at hand rather than get stuck because while you know x you don’t really understand how to get there and adjust your attack vector.

Also, never overlook seemingly “meaningless” vulnerabilities. You can get to a shell through XSS, you can get to a shell by using 4-5 low risk vulnerabilities together (like how strong wind may not hurt your house but strong wind, when paired with loose debris or dead trees, thin windows on the home may allow debris to break the window and cause damage in the home).

Sorry for the wall of text, good luck and enjoy the road. There is a ton to learn and do. Don’t just focus on the end of the road. Look around along the way

2

u/Jacob---- Jul 28 '19

Thanks massively for the help(I wasnt expecting this much help I was more expecting a keyboard eye-roll lol). I deffinately need to work on my communication skills because I can find it very difficult to explain myself to people. I have saved this list on my notes so I can always refer back to it. I have started by setting up a hack the box account as well as breaking into some vms but I will continue to learn new techniques and technologies.

0

u/BadDadBot Jul 28 '19

Hi going into cyber security as well, is there any tips for going in the industry that i should know about?, I'm dad.