You can learn ethical hacking for free by studying networking, Linux and Python first, then practicing web security on free labs such as PortSwigger Web Security Academy, TryHackMe and Hack The Box, and only testing systems you own or have written permission to test. Build a home lab with virtual machines, document your findings in writeups, and add a low-cost certification later if an employer asks for one.
Key takeaways
- Ethical hacking is legal only with written permission; practice only in labs and on systems you own.
- Foundations first — networking, Linux and Python — then web hacking, then a specialization.
- Free labs and writeups matter more to employers than a long list of paid courses.
Ethical hacking looks expensive from the outside: bootcamps, certifications and paid courses everywhere. In practice, the best learning material in this field has always been free — the hard part is knowing what to learn, in what order, and where to practice legally.
What is ethical hacking?
Ethical hacking is finding security weaknesses in systems you have permission to test, then reporting them so they can be fixed before a criminal finds them. It uses the same techniques as attackers, but with authorization, a defined scope and a duty to report.
NIST SP 800-115 describes penetration testing as security testing in which assessors mimic real-world attacks to identify ways of circumventing the security features of an application, system or network. Ethical hacking is the wider practice around that idea: scanning, web testing, social engineering awareness and reporting, all done with permission.
The line between ethical hacking and crime is authorization. A test with written permission from the system owner is security work. The same test without permission can be a criminal offence, even if you meant well and found nothing. Keep that rule at the center of everything below.
Can you really learn ethical hacking for free?
Yes, and the free path is not a cut-down version of the paid one. Networking, Linux, Python, web security and most core tools are taught through free documentation, free courses and free labs run by the organizations that build the tools themselves.
What money buys is mostly structure, support and certificates. You can replace structure with a plan like the one in this article, support with community forums and writeups, and certificates with a public portfolio of lab work. Many hiring managers value a clear writeup of a lab you completed over a certificate with no evidence behind it.
There are two real costs to budget for. The first is time: expect 8 to 12 hours a week for most of a year. The second is optional certification later, which is the only step in this roadmap that normally costs money.
What is the best free roadmap for beginners?
The best free roadmap has four phases: foundations, web hacking, hands-on practice, and specialization with proof of skill. Each phase builds on the last, and skipping the foundations is the most common reason beginners stall.
| Phase | Time | Focus | Free resources |
|---|---|---|---|
| Foundations | Months 0-3 | Networking, Linux, Python | Professor Messer Network+, OverTheWire Bandit, freeCodeCamp |
| Web hacking | Months 4-6 | OWASP Top 10, proxies, SQLi and XSS | PortSwigger Academy, OWASP Juice Shop, OWASP WebGoat |
| Practice | Months 7-9 | Full tests, reporting, CTFs | TryHackMe, Hack The Box Starting Point, PicoCTF |
| Specialize | Months 10-12 | One track in depth | Hack The Box machines, bug bounty programs, cloud free tiers |
What foundations do you need first?
You need networking, Linux and basic scripting before tools make sense. A scanner that reports an open port is useless if you do not know what that port is for, and a Linux tool is slow going if every command is new.
Start with networking: IP addresses, subnets, DNS, TCP and UDP, ports, and how HTTP and HTTPS work. Professor Messer publishes free Network+ video training that covers this ground well, and Cisco Networking Academy offers free introductory networking courses. Our guide to the difference between HTTP and HTTPS is a useful companion once you reach web traffic.
Next, learn Linux. Install a Linux distribution in a virtual machine and use it daily for a month: move files, manage permissions, read logs and use SSH. OverTheWire Bandit is a free text game that teaches the Linux command line by having you find passwords with real commands, and it is one of the best free starting points in the field.
Then learn enough Python to automate small jobs: read a file, make a web request, loop over a list of hosts, parse output. FreeCodeCamp publishes a free Python course for beginners, and the official Python tutorial is free and complete. You do not need to build applications; you need to read code and write short scripts.
Which free labs and platforms should you use?
Use guided labs first, then unguided ones. Guided labs teach the concept and let you practice it immediately; unguided labs test whether you can do it alone, which is what real work feels like.
PortSwigger Web Security Academy is free and is widely regarded as the best free web hacking resource. It explains each vulnerability, then gives you a live lab to exploit it, starting at apprentice level. Work through it in order rather than jumping to the hardest labs.
TryHackMe offers free guided rooms and beginner learning paths such as Pre-Security and Complete Beginner. Its free tier is generous, and the guided style suits the first months. Hack The Box Starting Point is also free and is the natural next step when guided rooms start to feel too easy.
For vulnerable apps you can run yourself, OWASP Juice Shop and OWASP WebGoat are free and open source. Juice Shop looks like a real online shop and hides dozens of flaws; WebGoat is more tutorial-style and Java-focused. Both run locally in your lab, so you can break them safely. PicoCTF, run by Carnegie Mellon University, offers free capture-the-flag challenges that are excellent for general problem solving.
How do you build a free home lab?
Build a small virtual lab on your own computer so you can attack and defend machines you own. VirtualBox is free, and Kali Linux is a free penetration testing distribution that bundles hundreds of security tools.
A useful starter lab has three virtual machines on an isolated virtual network: Kali Linux as your attacker machine, a Linux server such as Ubuntu Server as a target, and a deliberately vulnerable machine such as Metasploitable or an OWASP Juice Shop container. Keep the lab network isolated from your home network so a mistake cannot touch real devices.
Take snapshots before you attack anything, so you can reset a broken target in seconds. Keep notes on every lab: what you tried, what worked, what failed and what you would do differently. Those notes become the writeups that prove your skill later.
Do not scan or test your employer network, your school network or any public website without written permission. Lab machines and authorized bug bounty targets are the only safe places to practice.
Which free tools should beginners learn first?
Learn a small core toolkit deeply rather than collecting dozens of tools you barely know. Five tools cover most beginner work: Nmap, Wireshark, Burp Suite Community, OWASP ZAP and Metasploit Framework.
Nmap maps networks and finds open ports and services. Wireshark captures packets and shows exactly what travels across a network, which is how you learn what TLS and DNS actually do. Burp Suite Community Edition and OWASP ZAP are web proxies that let you intercept and change web requests, which is the core skill of web hacking. Metasploit Framework provides safe exploitation and post-exploitation practice inside your lab.
Learn each tool through a real task, not through a feature list. Scan your lab with Nmap and write down every open port. Capture a login with Wireshark and find the credentials in plain text on HTTP. Intercept a request in Burp and change a price or a user ID to see whether the server checks it. That is how tool knowledge sticks.
How do you learn web hacking for free?
Learn web hacking by working through the OWASP Top 10:2021, which lists the most critical risks for web applications: broken access control, cryptographic failures, injection, insecure design, security misconfiguration, vulnerable components, authentication failures, software and data integrity failures, logging failures and server-side request forgery.
For each category, learn three things: how the flaw works, how to find it, and how to fix it. The fix matters as much as the exploit, because employers pay for findings they can act on. PortSwigger Academy covers each category with labs, and the OWASP Top 10:2021 page links to prevention guidance for each one.
Practice the classic flaws first: SQL injection, cross-site scripting, broken access control and insecure direct object references. These appear in real applications constantly, and they are the flaws most bug bounty programs pay for. Document each lab with screenshots, the request you sent, the response you got and the fix you would recommend.
What are the legal rules for ethical hacking?
The legal rule is simple: test only systems you own or have written permission to test. Everything else is off limits, including websites that look abandoned, networks you can see from your home, and systems you are trying to help.
Before any real test, agree the scope in writing: which hosts and URLs are in scope, which are excluded, what techniques are allowed, when testing may happen, who to call if something breaks, and how findings and data will be handled. NIST SP 800-115 includes a rules-of-engagement template in Appendix B, and that structure is a good model even for a small test.
Bug bounty programs are the exception that proves the rule: platforms such as HackerOne and Bugcrowd publish a scope that authorizes testing of specific targets, and staying inside that scope is what keeps you legal. Read the scope before you send a single request, and stop if you find something outside it.
Keep records of every permission you receive. If a test ever goes wrong, a signed scope and a clear log are your protection. Never test a system on a verbal promise alone.
What mistakes do beginners make?
Beginners most often skip foundations, collect tools instead of skills, and practice without writing anything down. All three mistakes are easy to avoid once you know they are coming.
- Skipping networking and Linux. Tools become magic boxes, and you cannot explain your findings. Go back and learn the basics properly.
- Tool collecting. Knowing 30 tools badly is worth less than knowing five well. Master one tool per job before adding another.
- No notes or writeups. If you cannot explain a finding clearly, an employer cannot trust it. Write every lab up as if a client will read it.
- Testing without permission. One unauthorized scan can end a career before it starts. Stay in labs and authorized programs.
- Chasing certificates too early. A certificate without hands-on skill is easy to spot in an interview. Build skill first, then certify.
- Ignoring defense. Understanding how a fix works makes you a better attacker and a more hireable one. Learn the defensive side of every flaw.
Another common mistake is comparing yourself to people who have practiced for years. Ethical hacking rewards steady, daily practice more than talent, and the people you admire were beginners once. A useful habit is to finish one small lab every day rather than attempting a huge one once a month.
How do you turn free learning into a job?
Turn learning into a job by building public proof: writeups, a home lab, CTF results and, later, responsible disclosures through bug bounty programs. Employers hire evidence, not claims.
Publish 5 to 10 clean writeups on a blog or GitHub: what the target was, how you found the flaw, the impact, and the fix. Include screenshots and the exact steps to reproduce the finding. Keep the tone professional and never publish details of a real system without permission.
Take part in CTF competitions and record your results. Join local security meetups and online communities, and ask thoughtful questions. Many junior roles are filled through community contacts rather than job boards, and a helpful reputation in a community is worth more than a perfect resume.
When you are ready, look at entry-level roles such as SOC analyst, junior penetration tester and vulnerability analyst. These roles often value the foundations in this article — networking, Linux, logs and web basics — more than advanced exploitation.
Our small business cybersecurity checklist shows the defensive controls those roles protect every day.
Try the free phishing quiz to practice the human side of security, which those roles also need.
The bottom line
You do not need to pay to learn ethical hacking. Foundations, free labs, a home lab and a habit of writing up your work will take you from beginner to employable, and they cost nothing but time.
Start today with one step: set up a Linux virtual machine, play a few levels of OverTheWire Bandit, and open your first PortSwigger lab. Then keep going, one lab a day, and let the portfolio build itself. You can check the strength of the passwords you create along the way with our free password strength checker.
Frequently asked questions
Can I really learn ethical hacking for free?
Yes. The core skills — networking, Linux, Python and web security — are taught by free courses, free labs and free documentation. You will need a computer and internet access, and later a small amount for a certification exam if you choose to take one, but the learning itself can be free.
How long does it take to learn ethical hacking?
Most beginners reach a useful level in 9 to 12 months of steady study, at roughly 8 to 12 hours a week. That is enough to complete beginner labs, understand the OWASP Top 10 and write simple reports. Reaching job-ready penetration testing level usually takes longer and depends on how much hands-on practice you do.
Do I need to know programming to start ethical hacking?
Not on day one, but you will need basic scripting soon. Python is the most useful first language: it helps you automate scans, read web code and write small tools. You do not need to be a software developer, but you should be able to read code and write short scripts.
Is ethical hacking legal?
Ethical hacking is legal only when you have permission from the system owner, in writing, before you test. Testing a website, network or app without permission can break computer misuse laws even if your intentions are good. Practice in labs, on your own machines and in bug bounty programs that authorize testing.
Which free platform is best for beginners?
TryHackMe is the friendliest starting point because its guided rooms explain each step. PortSwigger Web Security Academy is the best free resource for web hacking specifically. Hack The Box is better once you are comfortable working without step-by-step guidance.
Do I need a certification to get a job in ethical hacking?
No certification is legally required, but many employers list one in job adverts. A strong portfolio of lab writeups, CTF results and a home lab can open doors without one. If you do certify, start with an entry-level option and check what employers in your area actually ask for before paying.
What computer do I need to learn ethical hacking?
Almost any modern laptop with 8 GB of RAM works for beginner labs, and many labs run in the browser. For a local home lab with several virtual machines, 16 GB of RAM and 100 GB of free disk space make life much easier.
What is the difference between ethical hacking and penetration testing?
Ethical hacking is the broad practice of finding and reporting weaknesses with permission. Penetration testing is one specific, scoped test that mimics a real attack against defined targets and ends with a formal report. Many ethical hackers spend most of their time on penetration tests.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against NIST SP 800-115, the OWASP Top 10:2021 and the free labs and academies named in the article.
How we write and fact-check →