How to Write a CTF Write-Up: A Checklist part 1

Depov

Moderator
Staff member
MODERATOR
ULTIMATE
SUPREME
PREMIUM
MEMBER
Joined
Feb 18, 2025
Messages
790
Reaction score
1,484
Why document your CTF task solution?

Write-up isn't a report just for show. It has three functions, and each one is worth the thirty minutes it takes to create. Learn more in our guide to creating CTF assignments.

Reinforcing the skill. When you describe a solution in writing, your brain transforms intuitive tinkering into a conscious algorithm. A month without writing down the solution, all that's left is a vague "I did something with JWT." With writing down the solution, you open your write-up and recall the specific attack: substitution. algIn the title, token crafting, escalation to admin. According to USENIX, participants who worked with writeup communities and post-competition debriefings demonstrated measurably faster development of offensive security skills compared to those who only completed isolated lab exercises.

Community support. According to CTFtime, over 400 competitions are held annually, each with dozens of problems. A beginner stuck on a task isn't looking for an academic lecture, but rather a concrete thought process: what they saw, what they assumed, what they did, and why it worked. Write-up CTF for beginners addresses precisely this need.

Portfolio. At an interview, the line "participated in a CTF" carries little weight. A link to a repository with detailed breakdowns is clear evidence of your thinking, the tools you use, and how you explain complex issues. The ability to clearly explain the mechanics of vulnerability exploitation so that a colleague from a related department can understand it is a penetration tester report, IR documentation, and junior development training all rolled into one.
What to record during the competition

The biggest mistake is writing a write-up from memory after a CTF. Two hours after finishing, you'll have forgotten half the dead ends, the order of actions, and that very utility flag that made the exploit work. You need to document your CTF solution while you're still in the process.
Minimum set of notes

Screenshots. Capture the screen at every significant step: the problem statement, the scanner output, the server's response to the payload, the moment a flag is received. One extra screenshot is better than none. As they advise on learnhacking.io, if there's one piece of note-taking advice, take LOTS of screenshots.

Commands and their output. Copy commands from the terminal into a text file immediately after execution. Don't rely on history— it doesn't preserve context: what output you saw, why you typed the next command. Each entry is a pair of "command + what you saw in response."

Dead ends. Record what didn't work. This is the most valuable part of the documentation—and the one most often overlooked. A note like tried LFI via ../ — WAF blocks double dots, switched to SSRFIt takes ten seconds, but it saves someone else's evening. A reader who follows the same path will save hours.

Timestamps. Not down to the second, but the order of actions is important. "First tried X, then Y, then returned to the modified X" is the line of reasoning that distinguishes a useful CTF task analysis from a useless collection of screenshots.
On-the-go note-taking format

A Markdown file is the best choice. It opens in any editor, renders on GitHub and most forums, and supports code blocks and headings without any additional tools. Open notes.mdbefore starting the task and write everything in a row - you will establish the write-up structure during the final formatting.

An alternative is handwritten notes on paper. It sounds archaic, but for quick diagrams and "this parameter affects that" arrows, paper is faster than any editor. The main thing is to transfer the notes to digital form within 24 hours, otherwise your handwriting turns into ciphertext within a week.
Write-up structure for beginners: six blocks

The CTF write-up template, which is gaining upvotes on CTFtime, contains six sections in a specific order: metadata, reconnaissance, vulnerability identification, exploitation, dead ends, and conclusions. Let's examine each section.
Metainformation and task condition

The first screen of the write-up answers five questions: the CTF title, the task name, the category (web / pwn / crypto / forensics / reverse / misc), the number of points, and the full text of the problem. If the problem included a file, indicate its format and size. If it was a link to a service, describe what you saw when you first opened it.

Why: A reader determines within ten seconds whether an analysis is relevant to them. If they're looking for a web task worth 300 points, but your cryptocurrency scores 100, they won't waste their time. This shows respect for the audience.
Exploration and initial analysis

Describe your first steps: what you launched, what you saw, what hypotheses you formulated. For a web task, this included viewing the page's source code, analyzing HTTP headers in Burp Suite, and enumerating directories. For pwn, this included file And checksecon binary. For forensics - strings, exiftool, parsing in Wireshark.

Key principle: show not only the result, but also the reason for the action. Not "I ran gobuster," but "I saw a comment in the source code." <!-- /api/debug -->, assumed the presence of hidden endpoints and ran a brute-force attack to confirm them." The difference is between the instruction "press the button" and the explanation "why press it."
Reasoning and vulnerability identification

The core of write-up is the transition from "I see something suspicious" to "I understand the vulnerability class." Found an SQL injection (Injection, A03:2021 according to OWASP Top 10 ) - explain what prompted the discovery: a non-standard response to a single quote, a MySQL error in the HTTP response body, or content modification during ' OR 1=1--.

Link findings to classifications. Found credentials in a configuration file — Credentials In Files ( T1552.001, credential-access ) according to MITRE ATT&CK. Exploited a publicly available application — Exploit Public-Facing Application (T1190, initial-access). Detected SSRF — link to A10:2021 according to OWASP Top 10. Such links aren't just for show: they help the reader go beyond the specific task and examine the entire class of attacks.

In powerful write-ups—for example, in the analysis of Tinkoff CTF 2024 tasks on Habr—the authors show intermediate steps: decompilation of the application, analysis of JavaScript code in chrome://inspect, detection of native methods through @JavascriptInterfaceIt's the "saw → assumed → checked → confirmed" chain that turns the write-up into a training material, not a dry report.
Operation: step-by-step analysis

Each step is a separate paragraph or list item. The reader must reproduce everything line by line. Each command is accompanied by an explanation of any non-trivial flags. Not a bare line. curl -s -X POST -d '...' http://target/api, and the explanation: -sremoves the progress bar, -X POSTspecifies the method, -dpasses the request body in the format expected by the API.

If you wrote an exploit script, show it with comments on key lines. A script without comments is a tool. A script with comments is training. This determines who will benefit from your write-up: just you in a month or the entire community.

Quality criterion: mentally pass the text to someone with basic skills in the task category. If they reproduce the solution without further questions, the user manual is written correctly. If they stop with "what next?", you missed a step. Typically, they skip "obvious" steps that the author takes for granted. In practice, these omissions are what kill 80% of write-ups.
Dead ends and failed attempts

A section that 90% of authors omit. And they're wrong. Learnhacking.io puts it precisely: don't mention dead ends—you risk looking like a genius or lucky. Sharing just enough to save others time—that's the right balance.

Format: A short paragraph for each dead end. What you tried, why it didn't work, and what got you on the right track. Example: "Tried XXE via SVG loading—the server parses the SVG, but external entities are disabled. Switched to SSRF (A10:2021 according to OWASP Top 10) via the parameter urlIn the avatar upload API, the server made a request to the specified URL without validation."

This section is the most valuable part for readers stuck on the wrong path. And it's also the most useful for you: documenting your mistakes solidifies your understanding of why a particular technique doesn't work under specific conditions.
Conclusions and alternative approaches

Final section: what you learned from the problem, what techniques you reinforced, what tools you discovered. If you know an alternative path to the flag, describe it briefly. Alternatives demonstrate a deep understanding of the problem and help readers with a different set of tools find their own solution.

Add links to resources that helped: articles, OWASP or MITRE ATT&CK pages on the relevant technique, and tool documentation. This makes the write-up a starting point for further exploration, not a dead end.
 
Top Bottom