How to start CTFs: a beginner's guide

What a CTF is, what to install, and a step-by-step plan to your first live competition.

What is a CTF?

A CTF (Capture The Flag) is a security competition where every challenge hides a secret string — the flag, usually in a format like picoCTF{...} — that you can only reach by finding and exploiting a weakness. You submit the flag, you get the points. Everything in a CTF is built to be broken, which makes it the legal, safe way to learn offensive security.

There are two main formats:

Practice platforms such as OverTheWire and picoGym work like a Jeopardy CTF that never ends: no clock, no ranking pressure, which is exactly what you want at the start. More on how points work in how CTF scoring works, and on flags in CTF flag formats explained.

The challenge categories

Jeopardy challenges are grouped by category. You don't need all of them — start with Misc, then follow whatever you enjoy.

Web

Web

Websites and APIs with a flaw to find: injections, broken access control, tampered cookies or forgotten files. Your browser's DevTools and an intercepting proxy like Burp Suite are the main tools.

Web writeups · SQL injection tutorial

Crypto

Crypto

Weak or misused cryptography: classic ciphers, XOR with a short key, RSA with bad parameters. Recognizing the scheme is often most of the work.

Crypto writeups · common weak ciphers

Forensics

Forensics

Files, disk images and network captures that hide something: metadata, an appended archive, a deleted file, a flag in a packet stream.

Forensics writeups · Wireshark guide

Rev Eng

Reverse engineering

A program whose logic you have to understand without its documentation — often a password check to reverse, from Python or Java source up to compiled binaries.

Reverse engineering writeups · Ghidra tutorial

Pwn

Pwn (binary exploitation)

Make a running program do something it shouldn't, typically through memory corruption such as a buffer overflow. It builds on reverse engineering, so it's usually tackled a bit later.

buffer overflow tutorial · pwntools

OSINT

OSINT

Find information from public sources: usernames across platforms, photo locations, metadata. No exploitation, just methodical searching.

Sherlock guide · file metadata

Misc

Misc

Everything else, often Linux and command-line skills: finding a file, decoding data, talking to a service with netcat. The best place to start.

Linux / Misc writeups · Bandit path

A minimal setup

You don't need a dedicated machine or expensive tools. This covers the first months:

Install the rest only when a challenge needs it: Wireshark for network captures, GDB with pwndbg for binaries, nmap and ffuf for recon.

Your starting plan: Bandit → picoCTF → a live CTF

  1. Linux basics with OverTheWire Bandit. Each level is a small terminal puzzle whose answer is the password for the next one: SSH, files, search, encodings, permissions. Follow the Bandit learning path level by level.
  2. Your first picoCTF flags. picoGym's classic challenges introduce each category gently: reading files, running scripts, talking to a server, encodings, metadata and web requests. Work through the picoCTF learning path.
  3. Your first live CTF. Pick a Jeopardy competition from the CTF calendar that lasts a day or more, so you aren't racing the clock. Aim for a few solves, not the scoreboard, and read the writeups other players publish afterwards for the challenges you missed.

All the paths are listed on learning paths.

How to read a writeup without spoiling it

Writeups teach the most when you've struggled with the challenge first. A routine that works:

  1. Try first. Give the challenge a real attempt and note what you tried — being stuck for a while is part of learning.
  2. Use the hints. Every CTFdojo writeup starts with two collapsed hints: a nudge, then a stronger pointer. Open one, go back to the challenge.
  3. Read one step at a time. If you still need the solution, stop reading as soon as you're unstuck and finish on your own.
  4. Redo it later. Solve it again a few days later without the writeup, or try a similar challenge: that's how the method sticks.

FAQ

Are CTFs free?

Most online CTF competitions are free to enter, and so are the practice platforms this guide uses: OverTheWire wargames and picoCTF's picoGym. Some competitions hold an in-person final that you qualify for through a free online round.

Do I need to know how to code?

Not to start. The first Bandit levels only need a terminal and a handful of commands. Scripting becomes useful as challenges get harder — for example to automate a request or decode data — and you can learn it as you go.

Which programming language should I learn first?

Python. It's the language most CTF tools and writeups use for scripts, and it's quick to pick up. Shell basics (bash) come next; being able to read C helps later for reverse engineering and pwn.

How much time does it take to get started?

Less than you might think: a first flag takes minutes, and the early Bandit levels are short. What matters is regularity — a few sessions a week, trying each challenge yourself before reading the writeup, builds skills faster than occasional long sessions.

Should I play in a team or solo?

Both work. Practice platforms are naturally solo; most competitions accept teams, which lets beginners learn from teammates. If you don't have a team, ask on the CTFdojo Discord — many people look for teammates before weekend CTFs.

Is it legal?

Yes, on systems built for it: CTF challenges and wargames are designed to be attacked. The same techniques used anywhere else without permission are illegal — keep your practice on CTF platforms and your own lab.

What should I do when I'm stuck?

Re-read the challenge description, list what you've tried, then open the hints at the top of the matching CTFdojo writeup before reading the solution. Asking on Discord with what you've tried usually gets you a nudge rather than a spoiler.

Stuck on a challenge?

Ask on the CTFdojo Discord — say what you've tried, and you'll get hints rather than spoilers.