Hacking Books for Teens: Christmas Gift Guide for Parents
The best hacking and cybersecurity books to give a teenager (13-18) for Christmas, in reading order, plus the free, legal places where teens can practise. A guide for parents and teens.
If your teenager wants to "learn hacking", that's good news. The skills behind hacking (Linux, networking, programming, patience) are exactly the skills behind a career in cybersecurity, one of the few fields where a curious 15-year-old can start for free, from a bedroom, and get genuinely good.
Looking for a Christmas present for a teen who lives on their computer? Any book on this list makes a good gift, and the first three need no prior knowledge at all.
The one thing to get right from day one is permission. Hacking a system you don't own or don't have written permission to test is illegal in almost every country, whatever the intent. Every book and resource below teaches hacking the legal way: on your own machines, in labs built for it, or in competitions.
This guide is written for parents and for teens. The books are in the order we'd read them.
The reading order at a glance
- The Cuckoo's Egg: a true detective story to get hooked.
- How Cybersecurity Really Works: the map of the field.
- Linux Basics for Hackers: the first hands-on skill.
- Python for Kids or Cracking Codes with Python: learn to program.
- Black Hat Python: for older teens who already code.
- Little Brother by Cory Doctorow, or Warcross by Marie Lu: the novels.
1. Get hooked with a true story
The Cuckoo's Egg by Cliff Stoll is where many security professionals started. An astronomer notices a 75-cent error in a computer bill, pulls the thread, and ends up tracking a spy. It is a real story, it reads like a thriller, and it shows what the work actually is: curiosity, careful notes and refusing to give up.
It is from 1989, so the technology is ancient. That doesn't matter. The way of thinking is the same today.
For a teen who prefers someone their own age, Ghost in the Wires by Kevin Mitnick covers his teenage years too. Read it with a grown-up's eye, though: Mitnick went to prison, and the book is also a story about what happens when you hack without permission. That makes it a useful conversation starter.
2. Understand the field
How Cybersecurity Really Works by Sam Grubb is the gentlest serious introduction we know. Malware, phishing, network attacks and the defences against them, explained without assuming any background, with small exercises along the way. A motivated 13-year-old can read it. So can a parent who wants to keep up.
3. Learn Linux
Almost every security tool runs on Linux, and almost every hacking tutorial assumes you can use a terminal. Linux Basics for Hackers (2nd edition, 2025) by OccupyTheWeb teaches exactly the Linux a beginner needs, from the angle of security tools.
Tip for parents: your teen doesn't need a new computer for this. A free virtual machine (VirtualBox) on the family laptop is enough, and it keeps experiments away from everything else on the machine.
4. Learn to program
Programming is what separates people who run hacking tools from people who understand them. Two good first books, both from No Starch Press:
- Python for Kids by Jason R. Briggs (2nd edition, 2022) is friendly enough for younger teens and covers real Python, not a toy language.
- Cracking Codes with Python by Al Sweigart (2018) teaches Python by building and breaking classic ciphers. If your teen likes puzzles or spy stories, start here. It is also free to read on the author's website.
Either one is enough. The important thing is to type every example and break it on purpose.
5. For older teens who already code: Black Hat Python
Black Hat Python (2nd edition) by Justin Seitz and Tim Arnold shows how to write real security tools in Python: network sniffers, scanners and more. It's an intermediate book. It is perfect for a 16 or 17-year-old who has finished a first Python book and wants a challenge, and frustrating for anyone who hasn't.
Every technique in it should be practised on the teen's own virtual machines, never on the school network. Say this out loud, because schools do notice, and "I was just testing" has never worked as an excuse.
6. The novels teens actually pass around
Two, and they're very different.
Little Brother by Cory Doctorow (2008) is the one security people recommend. Marcus, 17, gets swept up after a terrorist attack in San Francisco, interrogated, released, and decides to fight the surveillance state that follows with the tools he has: Xbox consoles turned into an encrypted network, RFID tricks, a lot of nerve. The technology is real, sometimes to the point of being a tutorial, and it explains better than any textbook why privacy and security matter. Doctorow released it under a Creative Commons licence, so it's free to read online. Ages 13+: there's some violence, and the interrogation scenes are meant to disturb.
Warcross by Marie Lu (2017) is the one teens find on their own. Emika Chen is a broke 18-year-old bounty hunter and hacker in New York who glitches her way into the opening game of the world's biggest virtual reality championship, and gets hired to catch a hacker inside it. It's a fast YA thriller with a heist structure and a love story, closer to Ready Player One than to Doctorow. The hacking is cinematic rather than accurate, and that's fine: it makes the field look like somewhere a teenager would want to be. There's one sequel, Wildcard.
If you're buying one: Little Brother for the teen who argues about things, Warcross for the teen who games.
Where teens can practise legally
Books teach the ideas. Practice builds the skill. These are free and built for beginners:
- picoCTF: a free hacking competition and practice site run by Carnegie Mellon University, designed for middle and high school students. The best starting point.
- OverTheWire: Bandit: a free game that teaches the Linux command line one level at a time. It pairs perfectly with Linux Basics for Hackers.
- CyberPatriot: a US national cyber defence competition for middle and high school teams, run by the Air Force Association. Check whether your teen's school has a team, or start one.
Bug bounty platforms are tempting, but most have a minimum age and terms that teens and parents should read together before signing up.
A note for parents
You don't need to understand the technical details to help. Three things make a real difference:
- Make the legal line clear early. Their own devices and practice sites, yes. Anyone else's system, only with written permission.
- Ask them to explain what they learned. Teaching it back is the best test of understanding, and you'll learn something.
- Celebrate the slow parts. Hacking is mostly being stuck. The teens who become good are the ones who stay stuck long enough to work it out.
What's next
When they've worked through this list, our cybersecurity books for beginners guide picks up where this one ends. For younger children, see coding and hacking books for kids, and for puzzle lovers, secret code books for kids.
The books in this guide
The Cuckoo's Egg
Clifford Stoll · 1989
Still the best way to feel why security investigation matters: a funny, tense true story that founded the genre, best read as history rather than technique.
Ghost in the Wires
Kevin Mitnick, William L. Simon · 2011
A gripping first-person caper and a primary source on early social engineering, best read knowing the narrator is selling his own legend.
How Cybersecurity Really Works
Sam Grubb · 2021
A calm, well-sequenced first book for genuine beginners, with hands-on exercises that make it usable in a classroom; anyone who has already started learning security will outgrow it quickly.
Linux Basics for Hackers
OccupyTheWeb · 2025
A quick, practical on-ramp to the Linux a beginner needs for security work; broad and shallow by design, so plan to outgrow it fast.
Black Hat Python
Justin Seitz, Tim Arnold · 2021
The fastest route from "I know Python" to "I write my own offensive tools", but it is a book of starting points, not production-grade tooling.
As an Amazon Associate we earn from qualifying purchases. The links above are sponsored.
Frequently asked questions
- What is the best hacking book for a teenager?
- Start with a story, The Cuckoo's Egg by Cliff Stoll, then How Cybersecurity Really Works by Sam Grubb for the big picture and Linux Basics for Hackers for the first hands-on skill. Teens who already code can move on to Black Hat Python.
- Is it legal for a teenager to learn hacking?
- Learning is legal. Hacking a system you do not own or do not have written permission to test is not, whatever your age or intent. Teens should practise on their own virtual machines and on sites built for it, like picoCTF and OverTheWire.
- Where can teens practise hacking for free?
- picoCTF, a free competition and practice site run by Carnegie Mellon University for middle and high school students, is the best starting point. OverTheWire's Bandit game teaches the Linux command line, and in the US, CyberPatriot runs a national cyber defence competition for school teams.





