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.

  1. Foundations: Every attack travels over a network and lands in a program. Before you look for bugs, learn the parts they hide in.
  2. 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.
  3. 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.
  4. Recon: Real targets are bigger than one form. Learn to list every host, page, endpoint and parameter before you test any of them.
  5. 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.
  6. Practise and report: Finding a bug is half the work. The other half is reproducing it, explaining it and agreeing what you may test.
  7. 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.

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.

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.

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.

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.

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.

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.

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.

FamilyWhat goes wrongExamplesLearn it
InjectionUser input is treated as part of a command, query or template.SQL and NoSQL injection, command injection, XXE, prompt injectionSQL injection · XXE · Prompt injection
Broken access controlThe app does not check whether you may see or change this object or action.IDOR, BOLA, privilege escalation, path traversalBroken access control · IDOR · Path traversal
Authentication and sessionsThe app is wrong about who you are.Weak logins, broken password reset, forged JWTs, missing rate limitsBroken authentication · JWT
Cryptographic failuresData 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 linksHashes and encodings
Client-sideThe attack runs in a victim's browser, using the victim's session.XSS, CSRF, open redirect, JSONP leaksXSS · CSRF · JSONP leaks
Server-side requestThe server makes a request the attacker chose.SSRF, often towards internal services or cloud metadataSSRF
Misconfiguration and exposureSomething 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 themMisconfiguration · Security headers · File uploads
Business logicEvery request is valid, but the sequence breaks the app's own rules.Negative quantities, reused coupons, skipped payment stepsBusiness logic
Vulnerable components and supply chainThe bug is in something you installed, not something you wrote.Outdated libraries with known CVEs, compromised packages, poisoned CI pipelinesWhat 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.

SystemInjectionAccess controlAuthen­ticationCrypto­graphyClient-sideServer-side requestMisconfig­urationBusiness logicVulnerable 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:

  1. Where is it? The system and component: a login endpoint of a web app, a storage bucket, a CI workflow.
  2. 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.
  3. 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).
  4. 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.
  5. 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.