Cybersecurity roadmap for beginners: what to learn, in what order, and why
TL;DR: Start with how networks, Linux and HTTP work, then learn web vulnerabilities on a legal practice target, because the web is where a beginner can find a bug, understand it and see the fix fastest. After that, widen to recon, APIs and authentication, practise with CTFs and writeups, and only then choose a direction: application, cloud, mobile, AI security or defence.
This roadmap is for engineers and students starting in security. Tick the boxes in Stages 1 to 6 as you go, then pick one direction in Stage 7: your progress stays in this browser. Every step links to a place to learn it, on this site wherever a page here teaches it, and the practice runs on CyberGym, a legal practice target, or on a site you own.
A box is done when you can explain the item and show it on a practice target or on a site you own.
The map
Seven stages, from foundations to a specialisation. Each one builds on the one before it; select a stage to jump to its checklist.
- Foundations: Every attack travels over a network and lands in a program. Before you look for bugs, learn the parts they hide in.
- Rules and lab: Hacking is legal only with permission. Set up a place where you have it, and the two tools you will use every day.
- First web bugs: Learn the classes that show up everywhere, one at a time: find it on a lab, understand why it works, then read the fix.
- Recon: Real targets are bigger than one form. Learn to list every host, page, endpoint and parameter before you test any of them.
- Deeper web and APIs: Now the classes that need a working model of the app: tokens, sessions, server-side requests and the app's own rules.
- Practise and report: Finding a bug is half the work. The other half is reproducing it, explaining it and agreeing what you may test.
- Choose a direction: By now you know which part you enjoy. Each direction below reuses everything above and adds its own systems.
Why start with web applications?
Start with the web because you can see everything: the request you send, the response you get and, on a practice target, the code that handles it. That makes the cause of a bug visible in a way a firewall or a kernel is not.
Web apps are also where most organisations meet the internet, legal practice targets are easy to run, and the OWASP Top 10 and the OWASP Web Security Testing Guide give you a free, shared syllabus. The classes you learn here, injection, access control and authentication, return in every other system on this page.
Stage 1: Learn how computers and the web talk
Every attack travels over a network and lands in a program. Before you look for bugs, learn the parts they hide in.
- ☐ Networks: IP addresses, ports, TCP and UDP, DNS. Scanning, recon and most attacks start with which host answers on which port, and what its name resolves to. Check the open ports on your own server
- ☐ HTTP and the browser: requests, methods, status codes, headers, cookies, sessions. Web vulnerabilities live in these fields. If you can read a raw request and response, you can see where an app trusts input it should not. What is an API endpoint?
- ☐ Cryptography basics: encoding vs hashing vs encryption, TLS, how passwords are stored. Base64 hides nothing, a hash cannot be decrypted but a weak one can be guessed, and encryption is only as safe as its key. Passwords belong in a slow, salted hash such as Argon2id or bcrypt, and TLS is what keeps them private on the way to the server. Crypto CTF challenges: encodings, hashes and XOR · HSTS: make browsers insist on HTTPS
- ☐ Linux and the command line: files, permissions, processes, curl. Servers, containers and most security tools run on Linux, and curl is how you send a request exactly as you mean it. The Linux command line and curl, run on a lab and CyberGym · The Linux command line for beginners (Ubuntu) · OverTheWire Bandit: learn the shell by playing · Everything curl
- ☐ One programming language you can read: Python or JavaScript. You do not need to be a developer, but you need to read the code that has the bug and write small scripts to test it. The official Python tutorial · MDN's JavaScript Guide
- ☐ The vocabulary: vulnerability, exploit, threat, risk, CVE, CVSS. Advisories, reports and job ads use these words precisely. Mixing them up is the first thing a reviewer notices. What is a CVE? · How to read a CVSS score
Stage 2: Learn the rules, then build a legal lab
Hacking is legal only with permission. Set up a place where you have it, and the two tools you will use every day.
- ☐ The rules of legal hacking: permission, scope, disclosure. The same request is practice on a lab and a crime on someone else's server. Know where the line is before you touch anything. The rules of legal hacking
- ☐ A practice target: CyberGym, a local OWASP Juice Shop, or your own site. A deliberately vulnerable app gives you real bugs to find with the owner's permission built in. Where to practise hacking legally · What is a deliberately vulnerable app? · OWASP Juice Shop challenges: where to start
- ☐ An intercepting proxy (Burp Suite or OWASP ZAP) and the browser's developer tools. A proxy shows and replays every request the app sends. Most web testing is reading that traffic and changing one field at a time. Intercept an app's traffic with a proxy
Stage 3: Find your first web vulnerabilities
Learn the classes that show up everywhere, one at a time: find it on a lab, understand why it works, then read the fix.
- ☐ The OWASP Top 10: the map of web risk categories. It is the shared list developers and testers use, and each category points to the weaknesses inside it. What is the OWASP Top 10?
- ☐ Cross-site scripting (XSS): reflected, stored and DOM. It teaches the most important habit in web security: data from a user ends up somewhere it is treated as code. What is XSS? · XSS examples
- ☐ SQL and NoSQL injection. The classic server-side bug: user input changes the meaning of a database query. What is SQL injection? · SQL injection walkthrough · NoSQL injection walkthrough
- ☐ Broken access control and IDOR. The top OWASP category: the app checks who you are but not whether this object is yours. What is broken access control? · What is IDOR? · IDOR example · Path traversal example
- ☐ Broken authentication: logins, sessions, password resets. If the front door is weak, nothing behind it matters. Broken authentication examples
Stage 4: Map what you are testing
Real targets are bigger than one form. Learn to list every host, page, endpoint and parameter before you test any of them.
- ☐ Attack surface mapping: pages, endpoints, parameters, files. You can only test what you know exists, and forgotten endpoints are where bugs survive. What is attack surface mapping? · Map a web app's attack surface
- ☐ Subdomain enumeration and open ports on your own domain. Staging servers and old admin panels hang off subdomains nobody remembers. Subdomain enumeration
- ☐ OSINT: what is public about a person or a company. Attackers read public sources first. Learning OSINT on yourself shows you what they would find. What is OSINT? · OSINT on yourself · OSINT on your own company · Where to practise OSINT legally
- ☐ API endpoints: find them, document them, test them one by one. Modern apps are mostly APIs, and every endpoint needs its own authorisation check. Export your API endpoints to Postman or OpenAPI · API security testing checklist
Stage 5: Go deeper into web apps and APIs
Now the classes that need a working model of the app: tokens, sessions, server-side requests and the app's own rules.
- ☐ Sessions and tokens: JWT, CSRF, rate limiting. Most modern logins are tokens. Learn what a server must check on every one. JWT vulnerabilities · CSRF example · Rate limiting test
- ☐ Privilege escalation and BOLA in APIs. From user to admin, and from your object to everyone's: the access-control bugs with the biggest impact. Privilege escalation in a web app · What is BOLA? · Testing BOLA endpoint by endpoint
- ☐ Server-side request forgery (SSRF) and open redirects. Bugs where the app fetches or forwards to a place the attacker chose, often inside the network. SSRF example · Open redirect example
- ☐ Business logic flaws. No scanner knows that a quantity should never be negative. Logic bugs reward understanding the app. Business logic vulnerabilities
- ☐ Misconfiguration and exposed files: directory listings, backups, .git, .env, secrets in JavaScript. Many real breaches start with something left public by mistake, not with a clever exploit. Security misconfiguration examples · Exposed directory listings · Exposed backup files · Exposed .git and .env · Secrets in a JavaScript bundle · Where uploads are stored and served
Stage 6: Practise, write it up, report it
Finding a bug is half the work. The other half is reproducing it, explaining it and agreeing what you may test.
- ☐ CTF challenges, starting with web. Capture-the-flag challenges give you a known answer to check your method against. CTF for beginners · What is a CTF? · Juice Shop's 110 challenges, in order
- ☐ Writeups of what you solved. Writing it down shows what you understood, and a public writeup is the portfolio a first job asks for. How to write a CTF writeup
- ☐ A scope before you test, a report after. Professional testing is defined by both documents. Practise them on your own site. Pentest scope template · Pentest report example
- ☐ Test your own website end to end. It puts every stage together on a target you own, and you fix what you find. What is penetration testing? · How to pentest your own website
- ☐ Follow what attackers exploit this week. CISA's exploited-vulnerabilities list and vendor advisories turn the classes you learned into real, current cases. Weekly security news · CISA Known Exploited Vulnerabilities catalog
Stage 7: Choose a direction
By now you know which part you enjoy. Each direction below reuses everything above and adds its own systems.
Pick one direction. One is enough, and you can change it later. Your pick is not counted in your progress, because the six stages above are the whole roadmap.
- ○ Application security: code review, threat modelling, secure design. For people who like to fix things before they ship. Threat modelling AI agents
- ○ AI and LLM application security. Apps now pass user text to models that can call tools, which is a new kind of injection. Prompt injection examples
- ○ Cloud and CI/CD security. Misconfigured storage, over-broad roles and leaked pipeline secrets are where cloud breaches come from. Software supply chain security
- ○ Mobile application security. A mobile app is a client for an API you can intercept and test like any other. Test your mobile app's API
- ○ Detection and incident response. Every attack you learned leaves traces. Defenders learn to read them. What an attack looks like in your logs
- ○ OSINT and investigations. Finding, verifying and connecting public information, for CTFs, due diligence or your own exposure. Solving OSINT challenges: question, pivot, verify, record · Photo geolocation OSINT · Pivoting on an alias to answer a security question
What types of vulnerabilities are there?
Thousands of named weaknesses fall into a handful of families. Learn the family first, and a new bug becomes a variation on one you know.
| Family | What goes wrong | Examples | Learn it |
|---|---|---|---|
| Injection | User input is treated as part of a command, query or template. | SQL and NoSQL injection, command injection, XXE, prompt injection | SQL injection · XXE · Prompt injection |
| Broken access control | The app does not check whether you may see or change this object or action. | IDOR, BOLA, privilege escalation, path traversal | Broken access control · IDOR · Path traversal |
| Authentication and sessions | The app is wrong about who you are. | Weak logins, broken password reset, forged JWTs, missing rate limits | Broken authentication · JWT |
| Cryptographic failures | Data that should be secret is sent or stored without encryption, or protected by weak or misused cryptography. | Plain-text or weakly hashed passwords, missing TLS, hard-coded keys, weak randomness in tokens and reset links | Hashes and encodings |
| Client-side | The attack runs in a victim's browser, using the victim's session. | XSS, CSRF, open redirect, JSONP leaks | XSS · CSRF · JSONP leaks |
| Server-side request | The server makes a request the attacker chose. | SSRF, often towards internal services or cloud metadata | SSRF |
| Misconfiguration and exposure | Something is left open or public by mistake. | Directory listings, backup files, exposed .git and .env, missing security headers, secrets in code, uploads stored where the server runs or serves them | Misconfiguration · Security headers · File uploads |
| Business logic | Every request is valid, but the sequence breaks the app's own rules. | Negative quantities, reused coupons, skipped payment steps | Business logic |
| Vulnerable components and supply chain | The bug is in something you installed, not something you wrote. | Outdated libraries with known CVEs, compromised packages, poisoned CI pipelines | What is a CVE? · Supply chain security |
Which vulnerabilities live in which systems?
The same families appear in different systems, but not with the same weight. Read a row to see where to start in that system, and what to check after.
| System | Injection | Access control | Authentication | Cryptography | Client-side | Server-side request | Misconfiguration | Business logic | Vulnerable components |
|---|---|---|---|---|---|---|---|---|---|
| Web application Pages, forms, file uploads | ● | ● | ○ | ○ | ● | ○ | ● | ○ | ○ |
| API REST, GraphQL, mobile back ends | ○ | ● | ● | ○ | ● | ○ | ● | ○ | |
| Identity and login Sessions, tokens, SSO, password reset | ○ | ○ | ● | ● | ○ | ○ | ● | ||
| Cloud and configuration Storage buckets, roles, secrets | ● | ○ | ○ | ○ | ● | ○ | |||
| Servers and network Open ports, services, VPNs | ○ | ○ | ● | ○ | ● | ● | |||
| CI/CD and supply chain Pipelines, packages, build secrets | ● | ○ | ○ | ○ | ● | ● | |||
| Mobile app The app on the device | ○ | ○ | ● | ● | ○ | ● | ○ | ○ | |
| AI and LLM app Chatbots, agents, tool calls | ● | ● | ● | ○ | ○ | ○ | ○ |
- ● Look here first: where this family is typically found, and tested first, in that system.
- ○ Also occurs: a real place to look once you have covered the first ones.
- Empty: rare in that system, or counted under another family.
A mark is a place to look, not a promise that every system has the bug, and an empty cell is not a promise that it cannot.
How do you describe and classify a vulnerability?
Five labels answer five different questions, and professionals keep them apart:
- Where is it? The system and component: a login endpoint of a web app, a storage bucket, a CI workflow.
- What kind of weakness is it? The class, named precisely by a CWE entry, for example CWE-89 for SQL injection or CWE-639 for IDOR.
- Which category list does it belong to? The OWASP Top 10 category, for web apps: IDOR sits in A01 Broken Access Control, SQL injection in A05 Injection (2025 edition).
- Is it a known, published bug? A CVE identifies one specific vulnerability in one product, such as a library version. Your own app's bug usually has no CVE.
- How bad is it? A CVSS score rates severity from 0 to 10. Whether attackers use it right now is a separate fact, tracked in lists such as CISA's KEV catalog.
Attackers' behaviour has its own map, MITRE ATT&CK, which describes techniques rather than bugs. You will meet it when you move towards detection and response.
How is the field divided?
Job titles vary, but the work falls into a few families. The US NICE Framework is the most detailed public map of them. In short:
- Offensive security: penetration testing, red teaming, bug bounty. Find the bugs before attackers do.
- Application security: secure design, code review, threat modelling. Stop the bugs from shipping.
- Cloud and infrastructure security: identities, networks, configuration, pipelines.
- Defensive operations: monitoring, detection, incident response, forensics.
- Governance, risk and compliance: policies, audits, risk decisions.
- Specialisms: malware analysis and reverse engineering, cryptography, mobile, AI, industrial systems.
This roadmap follows the offensive and application path because it teaches how systems break, which every other family needs. Stage 7 is where the paths split.
FAQ
Where should a complete beginner start in cybersecurity?
Start with networking basics, the Linux command line and how HTTP works, then learn web vulnerabilities such as XSS, SQL injection and IDOR on a legal practice target. The web gives the fastest feedback: you can see the request, the response and the fix.
Do I need to know programming to learn cybersecurity?
You need to read code more than write it. One language, Python or JavaScript, is enough to follow how a bug works and to script small tests. Deeper programming matters later, in application security and exploit development.
Should I learn networks or web security first?
Learn enough networking to understand IP addresses, ports, DNS and TCP, then move to the web. You will come back to networks in recon and in the infrastructure direction, with a clearer reason to.
Is it legal to practise hacking?
It is legal on systems you own or have written permission to test, and on practice targets built for it, such as CyberGym. Opening a public website is fine; testing a system you do not own and have no written permission for is illegal in most countries, even a quick, "harmless" test that changes nothing.
How long does this roadmap take?
It depends on the hours you put in each week, so measure progress by the boxes you can tick honestly, not by months. A box is done when you can explain the item and show it on a practice target or on a site you own.
Which certifications should a beginner get?
None is needed to follow this roadmap or to start learning, so let skills lead and add a certification when a job you want asks for one. Three are common early on, and they test different things. CompTIA Security+ is an exam of multiple-choice and performance-based questions on security concepts, threats and vulnerabilities, security architecture, security operations, and security program management; CompTIA recommends two years of hands-on experience as a security administrator before it. INE's eJPT (Junior Penetration Tester) is a hands-on exam, which INE describes as entry-level, on host, network and web application penetration testing. OffSec's OSCP, which follows its PEN-200 course, is a 24-hour proctored, hands-on exam on standalone machines and an Active Directory set; OffSec recommends networking, Linux and Windows administration, and scripting first, so it fits after Stage 6 rather than at the start. For a first job, what you can show matters as much as a certificate: writeups of the CTFs and practice targets you solved, and the reports from testing a site you own.
Keep learning
Sources
Each source was read on 16 November 2026; the Linux and programming resources and the certification pages on 18 November 2026.
- OWASP Top 10:2025
- OWASP API Security Top 10 (2023)
- OWASP Web Security Testing Guide
- MITRE CWE: Common Weakness Enumeration
- CVE Program
- FIRST: Common Vulnerability Scoring System
- CISA Known Exploited Vulnerabilities catalog
- MITRE ATT&CK
- NIST NICE Framework Resource Center
- The Linux command line for beginners (Ubuntu tutorial)
- OverTheWire: Bandit
- Everything curl
- The Python Tutorial (Python documentation)
- MDN Web Docs: JavaScript Guide
- CompTIA Security+ certification
- INE: eJPT certification
- OffSec: PEN-200 and the OSCP certification
