Capture the Flag, or CTF, is a practical cybersecurity competition. Participants analyze
deliberately vulnerable programs, web applications, files or systems and search for a secret value
called a flag. A flag may look like DSecured{example_flag}. Submitting it to the
competition platform earns points. Unlike an attack on somebody else's system, this activity takes
place in an environment expressly designed and legally scoped for the competition.
How does a CTF work?
After registering, participants compete alone or in teams. The organizer provides challenges, downloadable files or isolated target systems. A solution might require identifying a vulnerability, writing a short script or examining a memory image. The recovered flag is submitted to a scoreboard. The team with the most points normally wins; where scores are tied, the time of the last successful solution commonly serves as the tie-breaker.
The rules define the permitted scope. Scanning competition infrastructure, attacking other participants or sharing flags is normally prohibited in a Jeopardy CTF. In attack-defense, attacking the explicitly assigned services of other teams is part of the game. Every team should therefore read the complete rules before it begins.
Which CTF formats exist?
| Format | How it works | Suitable for |
|---|---|---|
| Jeopardy | Teams solve independent challenges from several categories for points. | Beginners, online events and teams with different specialties. |
| Attack-defense | Every team runs vulnerable services, patches them and simultaneously steals flags from other teams. | Experienced teams able to coordinate offense, administration and incident response. |
| King of the Hill | Players take over a target and try to retain control for as long as possible. | Dynamic exercises with direct competition for a shared target. |
| Boot2Root | A machine or application is compromised through several connected steps until full access is obtained. | More realistic attack chains and self-paced training labs. |
Many large events combine formats. An online qualifier may use Jeopardy challenges, while the on-site final is played as attack-defense.
Which challenges occur in a CTF?
- Web security:
Identify and exploit flaws such as SQL injection, XSS, broken access control or template injection. - Binary exploitation or pwn:
Analyze memory errors, understand exploit mitigations and control program execution. - Reverse engineering:
Examine programs, firmware or mobile applications without having their source code. - Cryptography:
Find weak algorithms, keys or implementation errors in cryptographic protocols. - Forensics:
Search network captures, file systems, logs or memory images for evidence and hidden information. - OSINT:
Analyze public sources methodically and connect individual pieces of information correctly. - Miscellaneous:
Solve tasks involving programming, steganography, hardware, cloud services, radio or unusual protocols.
Difficulty ranges from a flag left in HTML source to browser exploits developed specifically for an event. With dynamic scoring, a challenge's value falls as more teams solve it, giving rare solutions greater weight. Some events also recognize “first blood”, the first successful solution of a challenge.
Which well-known CTF competitions exist?
| Competition | What distinguishes it |
|---|---|
| DEF CON CTF | One of the best-known and most demanding team competitions; its finals take place at DEF CON in Las Vegas. |
| Google CTF | An international competition with an online qualification stage and a separate final for the leading teams. |
| picoCTF | A beginner-friendly competition developed by Carnegie Mellon University with a particular focus on school and university students. |
| CSAW CTF | A large academic Jeopardy CTF run by NYU's OSIRIS Lab, with a qualification round and regional finals. |
| GPN CTF | A German competition organized by KITCTF with challenges from major categories and dedicated introductory tasks. |
| ECSC and ICC | European and international competitions for young talent competing through national or regional teams. |
Not every event is open to everybody. Age, residence, school or student status, team size and qualification requirements differ. CTFtime maintains an international event calendar, scoreboards and team ratings. Open online CTFs are usually easier to enter than a final requiring prior qualification.
What can participants win?
Awards range from symbolic recognition to five-figure cash prizes. According to its official rules, Google CTF 2025 awarded the first three qualification-stage teams USD 12,345, USD 5,432.10 and USD 3,210, with additional prizes available in the separate final. In the eligible US school category, picoCTF 2025 awarded USD 3,000, USD 2,000 and USD 1,000 to the first three teams. These are examples from 2025; prizes and eligibility can change with every edition.
Other rewards include funded travel to a final, conference admission, hardware, books, training vouchers, trophies or special badges. Academic and youth events also create contact with universities and employers. Established teams value ranking points, public write-ups and reputation. Many community CTFs deliberately offer no large cash prize: the principal reward is experience, connections and the opportunity to solve demanding challenges.
How can beginners get started?
- Begin with a beginner-friendly Jeopardy CTF or permanently available practice challenges.
- Build basic knowledge of Linux, networking and a scripting language such as Python.
- Choose one category initially and distribute other specialties within a team.
- Read write-ups after the event and document your own solution in a reproducible way.
- Do not merely copy tools: understand their inputs, outputs and the root cause of the flaw.
Nobody needs to master every category. Successful teams divide challenges according to experience and communicate intermediate findings. One person may handle web challenges while others work on cryptography, reverse engineering or forensics. For a beginner, joining a team is often more instructive than competing alone.
What do CTFs teach-and what do they not teach?
CTFs develop technical curiosity, systematic debugging, creative thinking, automation and teamwork under time pressure. Participants encounter vulnerabilities in practice and must turn an idea into a working solution. These abilities are valuable in development, incident response and offensive security.
An artificial challenge does not reproduce every condition of a real system. Documentation, client coordination, risk assessment, safe execution and understandable reporting usually play a smaller role in competition. CTF experience therefore complements labs, secure development and authorized penetration testing; it does not replace them. Techniques learned in a CTF must never be tested against third-party systems outside an expressly authorized scope.
Thank you for your feedback! We will review it and optimize this content.