A gentle introduction for beginners that want to start in information security. Though, the core concepts part will benefit anyone that wants to start in IT. Pull requests welcome.
The background for this is that @twowreck said one day, hey @kisasondi let’s write a document that will help the beginners at our Faculty that want to learn more about information security, so we can streamline the process of “where to start” for 1st year students. We hope this document will be helpful for them, and everyone else that can find it interesting. Well, we quit the Faculty, but we still want this to be public for benefit of others.
This is not a in-depth document, but more as a “where to start” document that will give beginners a nice bootstrap (and keep you busy for at least 3-6 months)
For updates, just send a pull request or send me an e-mail.
“I teached you so that one day you can teach other people...”
- A guy who teached @milobit a lot of things. :)
Note: Expertise is important, and you should strive for expertise in one general field / specialty. Some people say that on average you need 7 years of dedicated work to become proficient and master a field. But with expertise, It’s important to learn concepts in other fields of study. You should strive to identify concepts, learn how things work from a broad outline and then be able to realize the limitations of your knowledge and learn something more about the topic you need.
- See: The T-Shaped individual
If you can’t find any article any more, use archive.org and find an archived version, or even better, submit a pull request with a fix :) You can do it straight from the GitHub's UI. Just press the little pencil icon.
Don’t mistake perceived expertise for actual expertise. Read about the Dunning-Kruger effect:
Example: You are facing a tough problem, that problem will be easy to solve if you know:
- Why this problem is “hard”, i.e. What is your actual problem.
- How we call the components in your problem?
- What is the technical name for your issue/problem?
After you know that, using Google is simple :)
Read some philosophy:
- This document is old, but the old school adages still stand today: http://www.catb.org/esr/faqs/hacker-howto.html
Read your local misdemeanor and criminal laws!
- https://www.zakon.hr/z/98/Kazneni-zakon
- Especially note computer crime acts: (in Croatia: Kaznena djela protiv računalnih sustava, programa i podataka)
- https://www.zakon.hr/z/52/Prekr%C5%A1ajni-zakon
If you think about becoming an information security professional or a hacker in order to break into systems, DDoS etc, let’s get one thing straight, you will get caught, and put into jail (or worse). It’s inevitable (and why it is inevitable, you will know after you spend some time learning about forensics...). If you want a cool story, do some googling on how they caught "Dread Pirate Roberts" aka Ross Ulbricht
Understand this too: https://en.wikipedia.org/wiki/Locard%27s_exchange_principle
Like doctors, information security is an honour based profession:
- Always follow the law and don’t break the law.
- Don’t be evil
- Follow ethics and professional codes of conduct:
- Don’t feed your ego. Even if you are 50 years old and you have 30 years experience in Infosec, you still have plenty to learn. Be humble and truthful. Some of the biggest experts i know are more humble than most noobs in the field.
- Don’t say you are a hacker. If you keep saying that, trust me, you are not a hacker.
- Don’t learn to hack. Get enough IT / Computer science knowledge, and hacking will happen by itself. You need to know how something works to be a expert or bend it to your will
- Share knowledge and contribute to open source software.
- You should be a force of good and help people, not be a elitist (see under “ego” above)
Read about the following concepts, especially Dunning-Kruger:
- https://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect
- https://understandinginnovation.files.wordpress.com/2015/06/dunning-kruger-0011.jpg?w=640
- https://en.wikipedia.org/wiki/Impostor_syndrome
Read this (yes, it’s important):
Christopher Wiley's book Mindf*ck gives a great tale about ethics in AI and information security. Read it as a cautionary tale.
Dedicate at least 1h a day to learning how X works (where X is anything IT / Computer related), it doesn’t matter if you learn how to code in Python, how BGP works or how FreeBSD works, as long as you are learning more, you are getting better and better.
These three articles give a nice outline on how to learn:
- https://azeria-labs.com/the-importance-of-deep-work-the-30-hour-method-for-learning-a-new-skill/
- https://azeria-labs.com/paradox-of-choice/
- https://azeria-labs.com/the-process-of-mastering-a-skill/
If you want a high level course on information security, covering a large number of topics and concepts, consider the CS50 intro to infosec:
So, for starts, let’s talk about behaviour and some information, read this:
- https://increment.com/security/approachable-threat-modeling/
- https://www.belfercenter.org/CyberPlaybook
- https://theintercept.com/2017/11/19/how-to-protect-yourself-against-spearphishing-a-comic-explanation/
- https://medium.com/@thegrugq/campaign-information-security-ff6ac49966e1
- https://techsolidarity.org/resources/congressional_howto.html
- When you don’t know what to read, read something from this list:
Learn how to play with systems / devices without breaking stuff and making that playing simple and easy. Use virtual machines (and later on, build your own playground/lab). First off, read on what a Virtual Machine is... Download and install Virtualbox:
- https://www.virtualbox.org/wiki/Downloads
- Learn what’s NAT, Bridged and Host-Only networking does, and why is it important:
- Learn what’s the VirtualBox Extension Pack (and why you want it)
- Learn what guest additions are (hint: open a terminal and enter: apt update && apt install virtualbox-guest-utils in a VM to enable dynamic screen resizing, shared folders/clipboard etc)
- Learn how shared folders work (and why that’s dangerous if you run malware in a VM)
- Learn what are snapshots! They enable experimenting and reverting to where things were not broken.
- Learn what’s an ova file (appliance export/import)
Install Ubuntu desktop and ubuntu server in a VM. If you are wondering if you should go with the “latest and greatest” or LTS (Long term support) - Go with Long Term Support (LTS).
- https://www.ubuntu.com/desktop
- https://www.ubuntu.com/download/server
- Take snapshots, so you can easily revert.
Pass the entire LinuxJourney tutorial: https://linuxjourney.com/
- If you like it or not, you need to know the basics: How a modern operating system works. You don’t have to know how the CFS scheduler works in the kernel (and how it is implemented), but you should know what a scheduler is, what is a kernel etc, and be comfortable in using a modern Linux based operating system (in the shell, ie. command line, not in the GUI :) ).
- The man command will give you the manual for any command. Learn how to use man. Read the manpages (and do some examples) for the following commands: ls, grep, find, which, curl, wget, ssh, systemctl
As you get better and better, your curiosity will guide you to explore the systems in depth. Someone might download the entire Linux kernel source and read it through (or you won’t care about operating systems that much, and you will see how your favourite web programming framework works under the hood, or how that nice pair of bluetooth headphones communicate with your PC. It’s irrelevant what, curiosity and getting better and better in knowledge is what’s important)
Check out the MIT's Missing Semester, it's a good resource on how to use the command line, text editors, etc:
Learn at least one high level language (Python, Ruby, Go… ):
- This is a nice tutorial:
- https://www.codecademy.com/catalog/language/python
- One additional might be the official python tutorial.
- 2.x or 3.x? Learn Python3 as 2.7 is deprecated and not maintained anymore.
- IPython is a very useful shell if you are starting out : https://ipython.org/
- Install Visual Studio Code, add the python plugin/lint and play around.
- Also very cool python video tutorials: https://www.youtube.com/user/sentdex
- I repeat, you don’t have to be an expert, but pass some problems so you get to at least to the mid of the intermediate list here:
- This is also a great list:
Get a solid intro to computer systems:
- https://www.edx.org/course/introduction-computer-science-mitx-6-00-1x-11
- https://www.edx.org/course/cs50s-introduction-computer-science-harvardx-cs50x
- https://www.amazon.com/Computer-Science-Distilled-Computational-Problems/dp/0997316020
- https://en.wikiversity.org/wiki/Introduction_to_Computer_Science
- Some people like a book called “Computer Science Distilled: Learn the Art of Solving Computational Problems by W. Filho”
- This is an awesome materiel in Computer Architecture: https://www.youtube.com/playlist?list=PL5Q2soXY2Zi9OhoVQBXYFIZywZXCPl4M_
- https://functionalcs.github.io/curriculum/
- https://github.com/ossu/computer-science
Get some background on operating systems:
- http://greenteapress.com/thinkos/thinkos.pdf
- http://www.shubhro.com/2018/01/20/brushing-up-os-c/
- http://pages.cs.wisc.edu/~remzi/OSTEP/
Get to know how databases work:
Get to know how networking works:
Get a feel on how the web looks/works:
- https://www.codecademy.com/catalog/language/html-css (Learn HTML/CSS)
- https://www.codecademy.com/learn/introduction-to-javascript (Get some basic intro to JS)
Important note: If you want to be an expert, let’s say in web application security, you should know how the web works and how web applications work in order to be successful. I.e. put in the work so you know how the underlying system works, and after that it will be easy to understand why something is broken (or to find if something is broken). For example, this is best seen in good developers, when you show them where they introduced a vulnerability, they instantly “get it” and know why this happened. They know the underlying concepts well enough to easily grasp the security concepts needed. This can be applied to any field: reverse engineering, hardware hacking, social engineering…
One of the key concepts for technical and organizational parts of security is threat modeling. There are two books, i highly recommend "Threat Modeling" by Izar Tarandach and Matthew J. Coles:
Another great book threat modeling book is by A. Shostack: “Threat Modeling: Designing for Security”
Second book you need to read is “Security Engineering” by Ross Anderson:
- The whole book (get the third edition) is available for free here: https://www.cl.cam.ac.uk/~rja14/book.html
- Lecture materials and videos are available here: https://www.cl.cam.ac.uk/teaching/1920/SWSecEng/materials.html
- Or the print version of the book is available here: https://www.amazon.com/Security-Engineering-Building-Dependable-Distributed/dp/0470068523
- If you can, read the latest edition.
- The list of awesome falsehoods will help you challenge your assumptions about understanding simpleish problems https://github.com/kdeldycke/awesome-falsehood
- This repository of mental models helps guide better decisions: https://fs.blog/mental-models/
- Check out this list of cognitive biases: https://en.wikipedia.org/wiki/List_of_cognitive_biases
- Check out this list of common fallacies: https://en.wikipedia.org/wiki/List_of_fallacies
- Vonnegut's recommendations are simple, and applicable to reports and documents https://kmh-lanl.hansonhub.com/pc-24-66-vonnegut.pdf
- Read Zinsser's book "On Writing Well"
- Read Strunk & White's Elements of Style: http://www.gutenberg.org/ebooks/37134
- Moxie Marlinspike's carrer advice: https://moxie.org/2013/01/07/career-advice.html
You won’t be able to properly understand reverse engineering / binary exploitation if you don’t know a Low level language, start with C and ASM
- Here are some cool resources to help you get started in C:
- https://viewsourcecode.org/snaptoken/
- http://goalkicker.com/CBook/
- http://www.shubhro.com/2018/01/20/brushing-up-os-c/
Check this out:
- Malwareunicorn’s RE 101 / 102 workshops: https://securedorg.github.io/
- Malwaretech’s RE challenges: https://www.malwaretech.com/beginner-malware-reversing-challenges Specialities:
Wrongbaud's introduction to RE with Ghidra course is pretty interesting and approachable:
- https://github.com/wrongbaud/hackaday-u
- https://hackaday.io/course/172292-introduction-to-reverse-engineering-with-ghidra
- Stanfords CS 253 is a good university level course that you can watch for an intro:
- First: Write a couple of simple applications (a small blog engine, a twitter clone, a RESTfull API for a bookstore...)
- Preferably in PHP, Java, Python, Golang :)
- Try to do it manually. Now use the most popular framework for that language.
- Try to become a semi competent developer. We have a lot of people who can find bugs, but not enough people who can find bugs and fix bugs. Try to become competent in development as this will pay dividends down the road.
- Run and configure OWASP ZAP on your machine (https://www.owasp.org/index.php/OWASP_Zed_Attack_Proxy_Project), yes ZAP has come a long way in the last year or two.
- Try out Burp Suite Community Edition too (it's available in Kali)
- PortSwigger's Web Security Academy is free (with user registration), but covers almost all crucial bases of todays webappsec:
- https://portswigger.net/web-security
- You can pass the challenges with burp community.
- Rana Khalil has some walkthrough videos from the Web Academy (https://www.youtube.com/c/RanaKhalil101)
- Run this: https://www.owasp.org/index.php/OWASP_Juice_Shop_Project , find all vulns :)
- Now, remember the small apps you wrote? Find vulns in them. Need help? Read trough:
- This is an interesting exercise to pass: https://www.obeythetestinggoat.com/pages/book.html#toc
- This is a nice set of writeups on bug bounties:
- Check out other appsec hackers tools like: gobuster / dirsearch / sqlmap / ffuf...
- Contributions required :)
- The case of the stolen szechuan sauce is a nice guided forensics challenge image set and walkthrough: https://dfirmadness.com/the-stolen-szechuan-sauce/
- Go over Cryptography I by Dan Boneh (Stanford)
- Read the book: Serious Cryptography by JP Aumasson
- If you don’t understand anything from that book, research, google, etc. Make sure you understand the basic concepts and building blocks (primitives)
- How do you use Elliptic curves for cryptography? Why do you have to use ECDH and ECDSA.
- Research on how GnuPG works, explore why the web of trust works and what are the pros and cons of web of trust
- Figure out how TLS works, can you in detail explain the following terms and how they work:
- PKI, TLS handshake, SNI, Ciphersuite, Ephemeral ciphers and Perfect forward secrecy, how ECDHE is used in the handshake, how does the entire TLS process work?
- Read the wireguard spec: https://www.wireguard.com/papers/wireguard.pdf
- Read the Double Rachet spec: https://signal.org/docs/specifications/doubleratchet/
- Read the Bitcoin paper: https://bitcoin.org/bitcoin.pdf
- All of the above show nice cryptographic systems. If you understand the above 3 papers, you will know how to research further.
-
Read some introductory articles to get familiar with what OSINT is:
-
Work your way through some training resources and guides:
-
Go through the US Army Training Program (ATP 2-22.9): Open-Source Intelligence to see what a more formal, advanced framework for OSINT looks like
-
A good book to read: Open Source Intelligence Techniques
-
Get your feet wet by practicing:
-
Blogs/Videos/Podcasts to follow:
-
Other resources:
- https://tisiphone.net/2020/06/21/so-you-want-to-learn-ics-security/
- https://www.robertmlee.org/a-collection-of-resources-for-getting-started-in-icsscada-cybersecurity/
Pick a company and tell me:
- who is their head of security
- everyone on their team all the way down
- are these recognizable names or people?
- are they randoms or are they part of the community
- every social media profile available with every person found
- an assessment of "are they just a cissp douche who doesnt care" or "are they legit, do they take shit seriously"
- an assessment of "should I try to reach out this company for security services" based on their appetite for "actual security" not "checking boxes"
Start up wordpress from scratch:
- linux, apache, php, mysql.
- don't harden it, just make it live
- once it's up, install wpscan on another host and scan the blog
- install several vulnerable plugins, and set the blogs password to something easily guessable
- modify htaccess to deny permissions to anybody not you
- install the sucuri security plugin and configure it.
- run wpscan again, observe differences
- using htaccess, block the wpscan user agent, and try wpscan again, observe results
- attempt to shell the blog and gain access
- setup a webshell
- use the webshell against the target
- The original resource is available here: https://twitter.com/da_667/status/1041867361765269505
- cybrary.it is a free resource that provides access to a bunch of different information security and/or general IT training courses. Alot of these courses are built around certifications. and if you don't know my stance on certifications Its true that they are NOT a requirement to get a job, but its also true that they won't hurt you. and even if you don't like them, or don't plan on getting the certification for the material you're watching, you still probably learned something valuable.
- Codecademy and/or Khanacademy are "freemium training resources. That is, for the most part a lot of the stuff is free, some of the stuff may also be behind paywalls. Just to give you forewarning.
- If you're more of a bookworm packt publishing gives out new, free books on a regular schedule. Additionally most of their book choices are fairly affordable as well.
- http://leanpub.com is another website full of cheap books that, depending on the author and/or the material, the book might be in various stages of being done, and allow you to define what you pay for the book.
- Keep a look out for when humble bundle is doing partnerships with nostarch press. NSP books are good and humblebundle makes them REALLY cheap.
- another good, free resource for training would be http://opensecuritytraining.info/Training.html take a look at what they have to provide, there is a ton of valuable knowledge to pick up, and at no charge.
- If you're looking for materials on reverse engineering, Mr. Yurichev's reverse engineering for beginners has been recommended repeatedly. https://yurichev.com/
- do you wanna learn how to fuckin' annihilate malware? @malwareunicorn 's RE101 and RE102 courses are extremely well put together, high quality and free: https://sites.google.com/secured.org/malwareunicorn/reverse-engineering
- Want to learn about web applications and how to attack them? Samurai WTF. Comes with course documentation and a self-contained VM for practicing on. (please note that it is a little bit long in the tooth, but still serves the purpose): https://sourceforge.net/projects/samurai/
- Don’t forget the slides: https://sourceforge.net/projects/samurai/files/SamuraiWTF%20Course/
- While we're talking exploitation resources, its pretty basic, but metasploit unleashed is a GREAT resources for getting familiar with the metasploit framework and/or using as a cross-reference for remember command syntax.While we're talking about metasploit unleashed, lets talk about metasploitable. Metasploitable is an intentionally vulnerable VM that is older than dirt, and so full of holes it looks like an XCOM mission site after I've been done with it.
- Before we move on to talking about wargames, CTFs and challenges, I almost forgot to mention that SANS cyberaces is a thing. http://www.cyberaces.org/courses/ while its a little bit old, its still a valuable free resource for learning some of the foundations out there.
- Okay so now we talk about CTFs and other exercises. Before I even get started here. Shout out to @blackroomsec This huge catalog of challenges is amazing. https://www.blackroomsec.com/updated-hacking-challenge-site-links/
- his is a massive list of challenges and must have been a mother to put together. There is just so much to choose from there, you can't really go wrong. But let me tell you about some of my favorites.
- first and foremost, I love the "overthewire" challenges. They have a learning curve that starts off super soft and easy to pick up, especially if you have some systems administration experience, but quickly get HARD once you think you have your shit together.
- best part about it is that, if you get stuck, there are write-ups all over the net and how others managed to solve it. There is NO SHAME in looking up others write-ups if only to see if you can replicate their work. this isn't a competition. Its for your training and benefit.
- along those lines, http://vulnhub.com is a website that hosts a huge variety of vulnerable virtual machines that are a unique challenge all their own. Most of them are called "boot2root" vms in that you are supposed to boot them up and through a trail of breadcrumbs get root
ARBCTF resources:
Misc but interesting stuff:
- https://www.informationsecurity.ws/2015/12/the-cybersecurity-consultants-toolkit/
- http://www.pse-journal.hr/upload/files/pse/2017/4/vukovic.pdf
Youtube - Infosec Educational Playlist:
HackTricks - Penetration Methodologies:
Really good stuff:
Good stuff:
- Nickolai Zeldovich
- Pentester Academy TV
- scanlime
- noopkat
- Onur Mutlu Lectures
- Marcus Niemietz
- Derek Rook
- Samy Kamkar
- IppSec
- OJ Reeves
- Metasploitation
- Infected Packets
- PyMoondra
- Murmus CTF
- fuzzysecurity
Liveoverflow
- Liveoverflow
- Murmus CTF
- Gynvael
- MalwareAnalysisHedgehog
- DefconConference
- TheExploiteers
- CryptoCat
- TheSecurityTube
- S1GM4
- Derek Rook
- Army cyber institute
- HackHappy
- JackkTutorials
- Seytonic
- HackerSploit
- Abdelkader Belcaid
- Cyber Security IPB
- Black Hat
- Tony Gambacorta
- GalaxyNinja Top-Hat-Sec
- MalwareAnalysisForHedgehogs
- Candan BÖLÜKBAŞ
- L!NK
- HackersOnBoard
- NetSecProf
- howCode (general programming)
- betaCoding
- DrapsTV
- Coding Tech
- Fun fun functions
- Siraj Raval
- Free Training
- OWASP
- Elias Osif
- Deep Web Academy
- The PC Security Channel (TPSC)
- David Hoelzer
- Binary adventure
- OALabs
- Da532
- HazardEdit
- HackTheBox (Make sure to use separate environment not the one that's used on daily bases. Connecting to those challenges through a VM for example a kali VM will be enough, since everyone is hacking on those platforms, so you don't become collateral damage. https://www.hackthebox.eu/
- Vulnhub https://www.vulnhub.com/
- Overthewire http://overthewire.org/wargames/
- Fergus Henderson - Software Engineering at Google: https://arxiv.org/pdf/1702.01715.pdf