The best cybersecurity games in 2026 are TryHackMe for guided beginners, Hack The Box for realistic penetration testing, picoCTF for free student CTF challenges, OverTheWire for Linux skills, and PortSwigger Web Security Academy for free web hacking labs. Start free, then pay only when you outgrow the free tier.
Key takeaways
- Start with TryHackMe or picoCTF — both are free to begin and teach fundamentals before asking you to exploit anything.
- Hack The Box is the best next step once you can work independently; its Labs and Academy are separate subscriptions.
- Every game here runs in a legal, isolated environment — never practice these techniques on real systems you do not own.
Reading about hacking teaches you very little. Hacking something — legally, in a lab built to be broken — teaches you a lot. These games and platforms give you vulnerable machines, puzzles and competitions to practise on, so you build real skills instead of collecting certificates you cannot use.
How we chose these cybersecurity games
We chose games that are legal, actively maintained, genuinely hands-on rather than multiple choice, and useful at a clear skill level. Every entry runs in an isolated environment you are allowed to attack, and every one has a free way to start.
- Real practice: you run commands and exploit systems, not just watch videos.
- Clear level: beginner, intermediate or advanced, so you do not start on a cliff.
- Free entry: a free tier or fully free platform, so you can try before paying.
- Active in 2026: new challenges, maintained labs and a living community.
Prices below are as of November 2026, from the platforms' own pricing pages, and they change — check the official page before you pay. Where a platform prices by region, we give the figure its pricing page showed.
Best cybersecurity games compared
Short on time? Start with the first two rows: TryHackMe if you are new, Hack The Box if you already know the basics.
| Game / platform | Best for | Free plan | Starting price | Key feature |
|---|---|---|---|---|
| TryHackMe | Complete beginners | Yes — 650+ free rooms | From $10.50/mo billed annually | Guided learning paths in the browser |
| Hack The Box | Intermediate pentesters | Yes — active machines | From $25/mo (Labs VIP+) | Realistic vulnerable machines |
| picoCTF | Students | Yes — fully free | Free | CTF puzzles from Carnegie Mellon |
| OverTheWire | Linux command line | Yes — fully free | Free | SSH wargames, level by level |
| PortSwigger Academy | Web hacking | Yes — fully free | Free | Free web security labs |
| Root Me | Self-directed challengers | Yes — free challenges | Free tier | Hundreds of challenges, many languages |
| CTFlearn | Free CTF practice | Yes — fully free | Free | Beginner-friendly CTF challenges |
| Hack This Site | Classic hacking puzzles | Yes — fully free | Free | Long-running legal training ground |
| VulnHub | Offline VM practice | Yes — fully free | Free | Downloadable vulnerable VMs |
| PentesterLab | Deep web exploitation | Yes — free exercises | Paid plans available | Focused web attack labs |
| Hacknet | Fun, story-driven play | No — paid game | Paid (one-off purchase) | Terminal-based hacking simulator |
The 11 best cybersecurity games
Each entry below covers what it is, what you will learn, and who should pick it.
1. TryHackMe — best for complete beginners
TryHackMe is a browser-based platform of guided rooms and learning paths, from complete beginner to job-ready roles such as SOC analyst and junior penetration tester. You learn a concept, then immediately practise it in a live lab in your browser — no virtual machine setup and no VPN to configure.
- Key features: structured paths (Cyber Security 101, Pre Security, Jr Penetration Tester, SOC Level 1), over 650 free rooms, AttackBox browser machines, certificates of completion.
- Pros: the clearest beginner on-ramp; strong free tier; gamified streaks and ranks keep you practising.
- Cons: advanced content sits in the MAX tier; guided style can feel slow once you are confident.
- Pricing: free tier with limited paths and 1 hour of AttackBox a day; Premium from $10.50/month billed annually (about $16.99 month to month) on the official pricing page, with a student discount; MAX from $17.99/month billed annually for advanced paths and cloud labs.
- Pick it if: you are starting from zero and want a path to follow.
2. Hack The Box — best for realistic penetration testing
Hack The Box (HTB) is the reference platform for realistic pentest practice: vulnerable machines you must enumerate, exploit and escalate to root, largely unguided. It is widely used by professionals preparing for certifications such as OSCP, and its machines chain several weaknesses the way real networks do.
- Key features: rotating active machines, retired machines with write-ups, Pro Labs simulating whole corporate networks, HTB Academy guided modules and certifications such as CPTS.
- Pros: the closest to real pentesting; huge community and write-ups; Academy adds structure when you want it.
- Cons: steep for true beginners; Labs and Academy are separate subscriptions, so the full experience costs twice.
- Pricing: free tier with active machines and challenges; Labs VIP+ from $25/month or $223/year; Academy Silver from $30/month or $550/year as of November 2026 — verify on the official HTB pricing page before subscribing, as prices changed in October 2026.
- Pick it if: you already know Linux and networking and want unguided practice.
3. picoCTF — best free game for students
picoCTF is a free computer security game created by security experts at Carnegie Mellon University. Players reverse-engineer programs, decrypt messages, exploit vulnerabilities and solve puzzles to capture digital flags, with a storyline guiding them through challenges of increasing difficulty.
- Key features: year-round practice gym (picoGym) with archived challenges, annual global competition each March, guided learning resources and monthly lectures.
- Pros: completely free; designed for middle school, high school and college students; nearly one million learners have used it, according to Carnegie Mellon.
- Cons: less structured career path than TryHackMe; competition is once a year.
- Pricing: free. Register at picoctf.org — Carnegie Mellon's picoCTF programme page confirms it is free for students, teachers and parents.
- Pick it if: you are a student, teacher, or anyone who wants a genuinely free start.
4. OverTheWire — best for learning Linux
OverTheWire is a collection of free wargames played over SSH in your terminal. Its Bandit game is where countless security professionals learned their way around Linux: each level gives you a password, and you use commands to find the next one.
- Key features: Bandit for Linux basics, Natas for web security, Leviathan, Krypton for cryptography, and more advanced games up to Vortex and Maze.
- Pros: completely free; teaches the terminal properly; short levels fit into spare minutes.
- Cons: no hand-holding and no certificates; you need a terminal and patience.
- Pricing: free.
- Pick it if: you want to get comfortable on the Linux command line before anything else.
5. PortSwigger Web Security Academy — best free web hacking labs
PortSwigger, the company behind the Burp Suite proxy used by professional web testers, runs a free Web Security Academy. It teaches web vulnerabilities — SQL injection, cross-site scripting, authentication flaws — with theory followed immediately by a deliberately vulnerable lab you must exploit.
- Key features: labs for every major web vulnerability class, detailed learning material, progress tracking.
- Pros: free and written by the people who build the industry-standard tool; the single best free route into web security.
- Cons: web-only — it will not teach you networking, Active Directory or forensics.
- Pricing: free.
- Pick it if: web hacking is your goal, or you want to understand the flaws behind the websites you use.
6. Root Me — best for self-directed challengers
Root Me is a large platform of hacking challenges in web, cryptography, forensics, reversing, network and programming, available in several languages. You pick a challenge, solve it, and earn points — with no fixed path telling you what to do next.
- Key features: hundreds of challenges across many categories, virtual environments for some challenges, community write-ups.
- Pros: huge free challenge library; good for practising one weak area at a time.
- Cons: less guidance than TryHackMe; quality varies between challenges.
- Pricing: free tier with paid premium options for extra environments.
- Pick it if: you know what you want to practise and like choosing your own challenges.
7. CTFlearn — best free CTF practice
CTFlearn is a free, beginner-friendly CTF platform with challenges across web, cryptography, forensics, binary exploitation and more. It is a good place to try your first flags without the pressure of a timed competition.
- Key features: difficulty-graded challenges, forums and hints, a straightforward points system.
- Pros: free; gentle difficulty curve; good first CTF after picoCTF.
- Cons: smaller and less polished than the big platforms; no career paths.
- Pricing: free.
- Pick it if: you want relaxed, free CTF practice at your own pace.
8. Hack This Site — best classic hacking puzzles
Hack This Site is one of the oldest legal hacking training grounds on the web. It offers a series of realistic hacking challenges and missions in a safe, legal environment, and it has been used by learners for well over a decade.
- Key features: basic, realistic and application missions, articles and a community forum.
- Pros: free; a long track record; good for the fundamentals.
- Cons: dated interface and some ageing challenges; less active than newer platforms.
- Pricing: free.
- Pick it if: you like classic puzzle-style hacking and want a free, no-frills start.
9. VulnHub — best for offline VM practice
VulnHub is a library of intentionally vulnerable virtual machines you download and run locally in VirtualBox or VMware. Each VM is a small network to break into, and you practise the full pentest workflow — scanning, enumeration, exploitation, privilege escalation — offline.
- Key features: hundreds of downloadable VMs at many difficulty levels, walkthroughs from the community.
- Pros: free; works offline; teaches you to set up your own lab, a skill in itself.
- Cons: you must install and manage VMs yourself; no built-in guidance or scoring.
- Pricing: free.
- Pick it if: you want realistic machines and do not mind running your own lab.
10. PentesterLab — best for deep web exploitation
PentesterLab offers focused, hands-on exercises in web exploitation, from basic SQL injection to advanced topics such as deserialization and code review. Its exercises are deliberately narrow and deep, which makes it a strong second step after PortSwigger Academy.
- Key features: structured web attack exercises, badges, and a Pro version with more labs.
- Pros: excellent depth on web attacks; clear, practical exercises.
- Cons: web-only; the best content is paid.
- Pricing: free exercises available; paid plans unlock the full catalogue — check the official pricing page for current rates.
- Pick it if: you already know basic web hacking and want to go deeper.
11. Hacknet — best story-driven hacking game
Hacknet is not a training platform — it is a proper video game. You play a hacker taking jobs through a terminal interface, typing real-feeling commands, cracking systems and following a story. It will not make you a penetration tester, but it is the most fun way to find out whether you enjoy the work.
- Key features: terminal-based gameplay, a story campaign, mod support, an expansion (Hacknet Labyrinths).
- Pros: genuinely enjoyable; builds intuition for terminal work; a good gift or first taste for a curious teenager.
- Cons: a game, not training — commands are simplified and the skills do not transfer directly.
- Pricing: paid one-off purchase on Steam; often discounted in sales.
- Pick it if: you want to play first and learn later, or you are buying for someone curious about hacking.
Which game should you start with?
Match the game to your level, not to the one with the best marketing. Starting too hard is the most common reason people quit.
- Complete beginner: TryHackMe Cyber Security 101, picoCTF General Skills, OverTheWire Bandit.
- Some IT knowledge: PortSwigger Academy, Root Me, CTFlearn, Hack The Box Starting Point.
- Ready for real pentesting: Hack The Box machines, VulnHub VMs, PentesterLab, timed CTF competitions.
- Students and teachers: picoCTF — NIST's K12 competition guidance lists it as a free computer security game for middle and high school students, created by Carnegie Mellon experts.
Free vs paid: what should you pay for?
You do not need to pay to learn cybersecurity. The free tier of TryHackMe, all of picoCTF, OverTheWire and PortSwigger Academy will take you a long way — months of learning for most people. Pay when you hit a clear wall: you have finished the free rooms, you need a full learning path with a certificate, or you want the retired machines on Hack The Box.
Before paying, use the free tier for at least two weeks. Check whether you actually enjoy the format, whether the difficulty fits, and whether you will practise regularly. A subscription you do not use is the most expensive kind. And remember that TryHackMe and Hack The Box are separate products with separate bills — paying for one does not unlock the other.
How to choose the right cybersecurity game
Ask three questions. First, what is your goal — a career, a certification, or fun? Career changers should pick TryHackMe or HTB Academy for their structured paths.
Second, how do you learn — guided lessons or figuring it out yourself? Third, how much time do you have — 20 minutes a day suits OverTheWire and CTFlearn, while Hack The Box machines reward longer sessions.
Whatever you choose, play consistently. Thirty minutes most days beats a five-hour binge once a month, because these skills are built by solving problems, not by reading solutions. If you are considering a security career, our guide to how to become a penetration tester shows how these games fit into a real career path.
What to avoid
Do not practise on real systems. Scanning or testing a website, network or device you do not own — even "just to see" — can be illegal under computer misuse laws in the US, UK and EU, and can get you banned from platforms. Stick to the isolated labs above.
Do not buy courses or subscriptions from sellers promising you will "become a hacker in 30 days" or guaranteeing a job. No game or course can guarantee that. And do not download "hacking tools" from random sites — that is exactly how the Trojan horse viruses we warn about get installed. Get tools only from their official sources, inside a lab.
The bottom line
The best cybersecurity game is the one you will actually play. For most beginners that is TryHackMe, with picoCTF as the free companion; for the next step, Hack The Box. Start free, follow the path above, and let the games teach you the habits — patience, curiosity and careful note-taking — that real security work runs on.
Before you start, test your own security instincts with our free phishing quiz — spotting a scam is the first skill every defender needs, and it is a game too.
Frequently asked questions
What is the best cybersecurity game for a complete beginner?
TryHackMe is the best starting point for most beginners because it explains each concept before letting you practise it in a browser lab, with a free tier of over 650 rooms. picoCTF is the best free alternative, especially for students.
Are cybersecurity games legal?
Yes, when you play on the platforms listed here. They run intentionally vulnerable systems in isolated environments that you are explicitly allowed to attack. Never use the same techniques on real websites, networks or devices you do not own or have written permission to test.
Can cybersecurity games help me get a job?
They help a lot, but they are not a qualification by themselves. Employers value the practical skills and the habit of solving problems, and several platforms offer certificates of completion. Pair game progress with a recognized certification for the strongest CV.
Is Hack The Box better than TryHackMe?
Neither is better overall — they suit different stages. TryHackMe guides you step by step and is better for beginners. Hack The Box gives you a vulnerable machine and expects you to find your own way in, which is closer to real penetration testing and better once you have the basics.
What is a CTF in cybersecurity?
CTF stands for capture the flag. You solve security challenges — such as finding a hidden password, exploiting a web page or decoding a message — and each solution reveals a flag, a short string of text you submit for points. CTFs are the most common format for cybersecurity games and competitions.
Are there free cybersecurity games?
Yes. picoCTF, OverTheWire, PortSwigger Web Security Academy, CTFlearn and Hack This Site are free, and TryHackMe and Hack The Box both have free tiers. You can learn a great deal without paying anything.
What age are cybersecurity games for?
picoCTF is designed for middle school, high school and college students, and most other platforms are aimed at adults and older teenagers. Check each platform's terms for minimum age, and supervise younger players.
Do I need to know how to code to play cybersecurity games?
No. Beginner games such as TryHackMe and picoCTF teach what you need as you go, starting with basic Linux commands. Coding helps later, especially Python for scripting and web basics for web hacking, but it is not a prerequisite.
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 TryHackMe's official pricing page, Carnegie Mellon University's picoCTF pages and NIST's K12 competition guidance.
How we write and fact-check →