CTFs for beginners: how to start without drowning
What a CTF is, which categories to start with, where to play for free, when to read a write-up, and what a sensible first month looks like.
Start with web and forensics challenges on picoCTF, give each challenge a real attempt before reading the write-up, and keep a notes file from day one. That is the whole answer to "ctf for beginners". The rest of this post is the reasoning.
A CTF (capture the flag) is a set of deliberately vulnerable targets with a hidden string, the flag, inside each one. Find it, submit it, get points. Everything in a CTF is built to be attacked, and that matters more than it sounds: it's the only place you get to practise these skills legally and repeatedly against something that is meant to break.
1. The two formats
Jeopardy is the common one. A board of independent challenges sorted by category and difficulty. You pick whichever you like, in any order. picoCTF, most online events and nearly every beginner-friendly competition are jeopardy.
Attack-defence gives each team an identical vulnerable server. You patch your own services while exploiting everyone else's, in rounds, for hours. It's closer to real operations and a brilliant format, but the pace punishes anyone still learning what a vulnerability looks like.
Ignore attack-defence for your first few months. It will still be there.
2. The categories, and which ones eat beginners
| Category | What it actually involves |
|---|---|
| Web | Flaws in a web app: injection, broken auth, exposed files, logic bugs |
| Crypto | Breaking weak or misused cryptography, often with maths and Python |
| Forensics | Pulling evidence out of files, disk images, packet captures |
| Reverse engineering | Reading compiled binaries to work out what they do |
| Pwn | Making a compiled program do something it was never meant to do |
| OSINT | Finding information from public sources |
| Misc | Scripting, puzzles, odd file formats |
Here is why beginners quit. They watch someone pop a shell with a buffer overflow, decide that is "real hacking", open a pwn challenge on day one and stall. Pwn needs you to already understand memory layout, calling conventions, a debugger and some assembly. That is three or four prerequisite subjects under one challenge. Reverse engineering has the same problem. Crypto is friendlier but turns into number theory faster than most people expect.
Nothing is wrong with those categories. They're the wrong first door.
3. Start with web and forensics
Web challenges reward curiosity and a browser. You already know what a form, a cookie and a URL parameter are. Your first tools are the browser's developer tools, curl, and a proxy like Burp Suite's community edition or OWASP ZAP. Most early web flags come from looking where the developer assumed nobody would.
# Everything the server sends back, not just the page
curl -si https://target.example/ | head -40
# The files people forget about
curl -s https://target.example/robots.txt
curl -s https://target.example/.git/HEAD
Forensics rewards patience and a handful of command-line tools. Most early forensics flags are "this file is not what its extension says" or "there's a string hidden in here".
file suspicious.png # what is this really?
strings -n 8 suspicious.png | grep -i flag
exiftool suspicious.png # metadata, often where the flag hides
binwalk suspicious.png # files embedded inside files
For packet captures, Wireshark: follow a TCP stream, filter by http, export objects. In both categories you'll learn to recognise base64, hex and common file headers by sight, and that carries into everything later.
The honest cost: quick early wins and a high ceiling, but web and forensics will not teach you memory corruption. That comes after, once attacking things is a habit.
4. Where to play
- picoCTF (picoctf.org): run by Carnegie Mellon, free, and the archive of past challenges stays open year round. Where I'd send anyone with zero background.
- TryHackMe (tryhackme.com): guided rooms with hints and explanations. Less pure CTF, more "course with a target attached". Some content is free, some isn't.
- Hack The Box (hackthebox.com): harder, less hand-holding. Fine once picoCTF stops feeling difficult.
- CTFtime (ctftime.org): the calendar of live events worldwide, with links to write-ups afterwards. Filter for events that call themselves beginner-friendly.
- PortSwigger's Web Security Academy (portswigger.net/web-security): not a CTF, but the best free web labs I know of, and they feed straight into web challenges.
What each site offers for free changes, so check before you assume.
5. How to read a challenge, and when to read the write-up
Every challenge has a title, a description and some files or a URL. Read all three slowly. The title is usually a pun on the technique. The description often contains a hint the author thinks is obvious. Then:
- Write down what you've been given: file types, ports, parameters, anything odd.
- Note the flag format (usually
picoCTF{...}or similar). You cangrepfor the prefix. - Form one hypothesis about where the flag is and test it. Then the next.
- Give it a real attempt. Thirty to sixty minutes of actual effort on an easy challenge, not thirty minutes of staring.
Then, and only then, read the write-up. The point isn't the answer. It's the gap between what you tried and what worked. Read it, close it, and reproduce the solve without looking. If you can't reproduce it, you haven't learned it, you've watched it.
Reading a write-up at minute two gives you the illusion of progress. Reading it at minute forty gives you a technique you'll keep.
6. Notes and a team
Keep one notes entry per challenge from the first one. Mine is plain markdown in a git repo: name, category, what I tried, what worked, the exact command that got the flag, one line on why. In three months you'll have a personal playbook. If you paste challenge data into an LLM for help, run it through the prompt sanitiser first out of habit, because the same habit will protect you when the data is real.
Play with a team as soon as you can. Two or three people on a jeopardy board can each take a category, and whoever's stuck gets fresh eyes in a minute rather than an hour. Nobody expects a beginner to carry pwn. They expect you to clear the easy web and forensics board so the stronger players can spend their time higher up. That's a useful role, not a charity one.
7. What a first month of CTFs for beginners looks like
Week one. Make a picoCTF account. Do the easiest web and forensics challenges in the practice archive. Expect to solve a few and get stuck on more. Start the notes file.
Week two. Keep going. Add a couple of PortSwigger labs on whichever vulnerability you've now met twice. Learn file, strings, exiftool, binwalk and basic Wireshark filtering until you don't need to look them up.
Week three. Pick a beginner-friendly event on CTFtime and play it live. You'll solve less than you'd like. That's the point: you'll see what the board looks like under a clock.
Week four. Read the write-ups for what you didn't finish. Reproduce two of them. Then try a TryHackMe room or a Hack The Box starting-point box and notice how much is already familiar.
A dozen solved challenges and a notes file with real commands in it puts you ahead of most people who "want to get into security". Where this sits in a career is in Rohan's cybersecurity roadmap. For three quick questions a day between sessions, there's the Daily Adversary.
Frequently asked questions
Do I need to know how to code before my first CTF? Not for the first web and forensics challenges. You'll want basic Python within a few weeks, because sooner or later a challenge needs a loop or a byte conversion that's painful by hand. Learn it when a challenge demands it.
Is it cheating to use write-ups? During a live event, yes, and the rules will say so. In practice archives, no. The only real cheating is reading one before you've tried, because then you've cheated yourself.
Which Linux should I use? Any. Kali and Parrot ship with the tools preinstalled. Ubuntu with the tools installed by hand works just as well and teaches you what each one is. A virtual machine is fine for everything here.
Can I put CTFs on my CV? Yes, with specifics. "Solved forensics and web challenges on picoCTF, played three CTFtime events with a team, notes repo at this link" says more than a certification name. Komal's post on whether security is an entry-level field covers the hiring side.
Open picoCTF tonight, find the easiest forensics challenge on the board, and run file on whatever it gives you. That's the first entry in your notes.