Skip to content
Raw Strix

GUIDE

How to write good CTF challenges

Good challenges are the heart of a CTF. They teach something, they can be solved the way you intended, and they feel fair, even when they're hard.

Start from one idea

Each challenge should teach or test one thing: a kind of web flaw, a cryptographic mistake, a file format. Write that idea down in one sentence before building anything. A challenge that tries to test five things at once usually ends up testing patience instead.

Pick the difficulty on purpose

  • Easy: one step, and a beginner can find it by searching what they see
  • Medium: two or three steps, or one idea that needs real understanding
  • Hard: a chain of steps, or a technique most players haven't used yet
  • For a first event, about half the board should be easy

Write a clear description

Give enough to start: what the player is looking at and what they're trying to get. A short story helps, but the description shouldn't hide the actual task. If players have to guess what the challenge wants, they're not solving it, they're guessing.

Make the flag unambiguous

  • Use the event's flag format, for example RS{...}, every time
  • Make sure only the intended solution leads to the flag
  • Avoid flags that are easy to mistype, such as ones that mix 0 and O
  • Decide whether flags are case sensitive, and say so in the rules

Add hints that help without giving it away

A good hint points at the next step, not the answer. Charge points for it, so teams that solve without hints score more. For the hardest challenges, plan a hint you can release during the event if nobody gets close.

Test it like a player

  • Have someone who didn't write it solve it from scratch, with only what players get
  • Write down your intended solution: it's how you answer disputes
  • Check for shortcuts: a flag left in a file's metadata, a guessable URL, a strings search
  • Test it on the real platform, with the real files and the real flag

Questions

How many challenges should one person write?

Three to six good ones is a lot for one author. It's better to have fewer challenges that are tested than many that aren't.

Should challenges be original?

Yes. Players can search for well-known challenges and their solutions. Reuse ideas and techniques, not existing challenges.

Where do the challenge files go?

On Raw Strix, you attach files to a challenge in the admin panel. Only signed-in players can download them.

See it for yourself

Sign up free to try the live demo: a working platform with sample challenges, a live scoreboard and the full admin side.