What is ethical hacking?
Ethical hacking means testing systems for security weaknesses, with permission, so they can be fixed before criminals find them. Ethical hackers think like attackers but work for defenders: companies, governments and security firms hire them to find gaps in websites, networks, apps and even office buildings.
The key word is permission. Ethical hackers only test systems they are authorised to test, follow agreed rules and report everything they find. Without permission, the same activity is illegal in almost every country.
How to use this Ethical Hacking roadmap
Practise only in legal environments: your own home lab, deliberately vulnerable apps and training platforms like TryHackMe and Hack The Box. Never test a real website or network without written permission.
Strong fundamentals matter more than tools. Most of this roadmap is about understanding how systems work, because you can’t secure what you don’t understand.
1Step 1: Networking, Linux and computer basics
The foundation everything else builds on.
What is it?
Security testing requires a solid understanding of how networks, operating systems and the web work. This step builds that base.
What to learn
Get comfortable in the Linux terminal. Almost every security tool runs there.
Learn each topic here
Networking fundamentals
The OSI and TCP/IP models, IP addresses, ports, protocols, DNS and HTTP.
Why it matters: Most security work starts with understanding traffic.
Linux command line
Files, permissions, processes, services and Bash scripting.
Windows fundamentals
Users, permissions, the registry, services and Active Directory basics.
How the web works
Browsers, servers, cookies, sessions and HTTP requests and responses.
Scripting
Python and Bash for automating repetitive tasks.
Example
bash
ip a # your network interfaces
ss -tulpn # listening ports on your machine
curl -I https://example.com # HTTP response headersBasic commands for understanding your own system and web responses.
Helpful resource: TryHackMe: Pre Security path
2Step 2: Security fundamentals and the law
Rules, ethics and core concepts.
What is it?
Before testing anything, you need to understand core security concepts and the legal and ethical rules that separate ethical hacking from crime.
What to learn
Read the scope and rules of engagement of a real bug bounty programme to see how permission is defined in practice.
Learn each topic here
CIA triad
Confidentiality, integrity and availability, the goals security protects.
Threats, vulnerabilities and risk
How weaknesses become real risks, and how risk is rated.
Laws and authorisation
Computer misuse laws, written permission, scope and rules of engagement.
Why it matters: Testing without permission is illegal, even with good intentions.
Responsible disclosure
Reporting vulnerabilities privately so they can be fixed before details go public.
Common vulnerability references
CVE, CVSS scores and the OWASP Top 10.
Example
text
Rules of engagement (summary)
Client: Example Ltd Authorised by: CISO (signed)
In scope: app.example.com, 10.10.0.0/24 (staging)
Out of scope: production databases, phishing staff
Window: 1-14 March, 09:00-18:00
Emergency contact: +971 ...The kind of written scope every legitimate test starts with.
Helpful resource: OWASP Top 10
3Step 3: Reconnaissance and scanning
Learn what’s there before testing anything.
What is it?
Every security assessment starts by mapping the target: which systems, services and technologies exist. This step covers passive research and active scanning in your lab.
What to learn
Good notes are half the job. Record every host, port and finding as you go.
Learn each topic here
Passive reconnaissance
Gathering public information such as DNS records and company websites without touching systems.
Network scanning with Nmap
Finding live hosts, open ports and service versions in your lab.
Service enumeration
Gathering details about services like web servers, SMB and SSH.
Vulnerability scanning
Tools like OpenVAS that check for known weaknesses.
Documentation
Keeping organised notes and evidence for reports.
Why it matters: Clients pay for the report, so notes matter.
Example
bash
# Only scan systems you own or are authorised to test
nmap -sV -p- 192.168.56.101 -oN lab-scan.txtA full-port service scan of a lab VM, saved to a file.
Helpful resource: Nmap reference guide
4Step 4: Web application security
Where most real-world vulnerabilities are found.
What is it?
Web apps are the most common target. This step covers how common web vulnerabilities work and how to test for them in deliberately vulnerable apps.
What to learn
For each vulnerability you learn, also learn the fix. Defenders value testers who can explain remediation.
Learn each topic here
Burp Suite
Intercepting and modifying web traffic to understand how an app behaves.
Injection flaws
SQL injection and command injection, and how parameterised queries prevent them.
Cross-site scripting
How untrusted input ends up running in browsers, and output encoding as the fix.
Authentication and access control
Weak logins, broken session handling and users accessing data they shouldn’t.
Why it matters: Broken access control is the top item in the OWASP Top 10.
Practice targets
DVWA, OWASP Juice Shop and PortSwigger Web Security Academy labs.
Example
python
# Vulnerable: string building
query = f"SELECT * FROM users WHERE email = '{email}'"
# Fixed: parameterised query
cursor.execute("SELECT * FROM users WHERE email = %s", (email,))Why parameterised queries stop SQL injection.
Helpful resource: PortSwigger Web Security Academy
5Step 5: System and network security testing
Go beyond the browser.
What is it?
This step covers how systems are compromised and secured: weak services, misconfigurations, privilege escalation and Active Directory, all practised in labs.
What to learn
Focus on understanding why something worked, not just which tool you ran.
Learn each topic here
Common misconfigurations
Default passwords, unnecessary services and outdated software.
Password security
Why weak and reused passwords are dangerous, and how hashing and MFA help.
Privilege escalation concepts
How a limited account can gain admin rights, and how to prevent it.
Active Directory basics
How Windows domains work and why they are a frequent target.
Frameworks
MITRE ATT&CK for understanding attacker techniques and mapping defences.
Why it matters: ATT&CK is a shared language between attackers and defenders.
Example
text
Finding: SMB signing disabled on file server
Risk: Medium (enables relay attacks)
Evidence: scan output, screenshot
Fix: Enable "Digitally sign communications (always)" via Group PolicyHow a finding is written up with a clear fix.
Helpful resource: MITRE ATT&CK
6Step 6: Reporting, certifications and career
Turn skills into a job.
What is it?
The final step covers writing professional reports, choosing certifications and finding legitimate work, including bug bounties.
What to learn
Publish lab write-ups on a blog or GitHub. They show your thinking far better than a certificate alone.
Learn each topic here
Professional reports
Executive summary, findings, risk ratings, evidence and remediation advice.
Why it matters: The report is the product clients pay for.
Certifications
CompTIA Security+, CEH, PenTest+, eJPT and the hands-on OSCP.
Bug bounty programmes
Platforms like HackerOne and Bugcrowd where companies invite testing within strict rules.
Career paths
Penetration tester, red team operator, application security engineer or security consultant.
Staying current
Following security news, CVEs and research blogs.
Example
text
Executive summary (excerpt)
We tested app.example.com between 1 and 14 March.
We found 2 high, 4 medium and 6 low risk issues.
The most important: any logged-in user could view other customers' invoices.
Fixing access checks on the /invoices endpoint removes this risk.A plain-English summary written for managers.
Helpful resource: HackerOne Hacker101 (free)
Ethical Hacking roadmap project ideas
Keep every project inside legal labs or authorised programmes. Write-ups and reports are the best evidence of your skills.
Home security lab
Isolated VMs for safe practice.
OWASP Top 10 notes
Each risk explained with an example and a fix.
Juice Shop walkthrough
Find and document 20 challenges in OWASP Juice Shop.
Lab machine write-ups
Ten detailed write-ups from TryHackMe or Hack The Box.
Professional pentest report
A full report on a lab network with risk ratings.
Bug bounty submissions
Valid, in-scope reports to a public programme.
Tips to finish this ethical hacking roadmap
- Always get permission. No permission, no testing. It protects you and keeps the work legal.
- Learn to fix, not just find. Testers who explain remediation are far more valuable.
- Practise consistently. A lab or two each week beats occasional marathons.
- Write everything down. Notes and write-ups build your portfolio and your memory.
Career paths and next steps
Go professional with the Penetration Tester roadmap, or move to the defensive side with the SOC Analyst roadmap.
Ethical hacking skills also lead into application security, cloud security and red teaming. The Cyber Security roadmap covers the wider field.
Related roadmaps
Ethical Hacking Roadmap FAQs
Is ethical hacking legal?
Yes, when you have written permission from the system owner and stay within the agreed scope. Without permission it is illegal.
Do I need coding for ethical hacking?
Basic Python and Bash are very helpful for automation and understanding exploits, and web testing benefits from knowing JavaScript and SQL.
Which certification is best for beginners?
CompTIA Security+ or eJPT are good starting points. OSCP is highly respected but much harder.
How long does it take to become an ethical hacker?
With regular practice, 8 to 14 months is realistic to reach an entry-level testing role, longer without an IT background.