InterCode-CTF
Agents solve 100 picoCTF capture-the-flag challenges in an interactive Bash and Python environment.
Agents work in an interactive Bash and Python environment on picoCTF challenges in coding, cryptography, reverse engineering and vulnerability finding. Google omits challenges that need internet access, leaving 76. UK AISI inspect_evals ships it as gdm_intercode_ctf.
- Made by
- Princeton (Yang et al.)
- Released
- June 2023
- Kind
- Capture-the-flag challenges
- Level
- School
- Scored
- Checked automatically
- Answers
- Agent task
- Tasks
- All public
- Measures
- Capability
- Risk
- Cyber offence
- Language
- English
- Interaction
- Agentic
- Environment
- Terminal, Code sandbox
- Items from
- Exams and contests
- Refresh
- One fixed set
- Run by
- Anyone
- In views
- Agents, Dangerous capabilities
- Strongest model tested
- Claude Opus 4.5 #63 on the capability index
- Last in a system card
- July 2025
- Last model added
- November 2025
- Updated automatically
- Yes, daily
- Scores refreshed
- November 24th, 2026
In the authors’ words
Humans write code in a fundamentally interactive manner and rely on constant execution feedback to correct errors, resolve ambiguities, and decompose tasks. While LLMs have recently exhibited promising coding capabilities, current coding benchmarks mostly consider a static instruction-to-code sequence transduction process, which has the potential for error propagation and a disconnect between the generated code and its final execution environment. To address this gap, we introduce InterCode, a lightweight, flexible, and easy-to-use framework of interactive coding as a standard reinforcement learning (RL) environment, with code as actions and execution feedback as observations. Our framework is language and platform agnostic, uses self-contained Docker environments to provide safe and reproducible execution, and is compatible out-of-the-box with traditional seq2seq coding methods, while enabling the development of new methods for interactive code generation. We use InterCode to create three interactive code environments with Bash, SQL, and Python as action spaces, leveraging data from the static NL2Bash, Spider, and MBPP datasets. We demonstrate InterCode's viability as a testbed by evaluating multiple state-of-the-art LLMs configured with different prompting strategies such as ReAct and Plan & Solve. Our results showcase the benefits of interactive code generation and demonstrate that InterCode can serve as a challenging benchmark for advancing code understanding and generation capabilities. InterCode is designed to be easily extensible and can even be used to create new tasks such as Capture the Flag, a popular coding puzzle that is inherently multi-step and involves multiple programming languages. Project site with code and data: https://intercode-benchmark.github.io
2 models share the top score of 98.7% among models released by June 2025
Best score per model as labs report them in their own cards, drawn striped. Labs pick their own settings, so these compare less cleanly than independent runs.
Claude Opus 4.5 leads with 93.6% across all independent runs
Best score per model across the official leaderboard, Epoch AI’s own runs and any board Epoch AI copied. Dotted bars are reruns by Epoch AI or another board, and each row names its source.
Gemini 2.5 Pro leads with 98.7%, claims included
Best score per model from every source, including labs’ own numbers and claims Epoch AI collected from reports and papers. Labs pick their own settings, so a claim can beat an independent run of the same model. Striped bars are claims, and dotted bars are reruns by Epoch AI or another board.
The newest model with a score here came out in June 2025, and nobody has reported a newer one. Among the 20 highest-ranked models on the capability index, these have no score yet:
- Claude Fable 5.2
- GPT-6.2 Astra
-
Gemini 4 Carbon
- GPT-6 Astra
- and 16 more
- 1
Gemini 2.5 Pro Mar 2025 98.7%
- 2
Gemini 2.5 Flash Jun 2025 98.7%
- 3
Gemini 2.5 Pro Jun 2025 97.4%
- 4
Gemma 2 27B 44.7%
Source: Labs’ model cards
Source: Official InterCode-CTF leaderboard
- 1
Gemini 2.5 Pro Mar 2025 98.7%
- 2
Gemini 2.5 Flash Jun 2025 98.7%
- 3
Gemini 2.5 Pro Jun 2025 97.4%
- 4 Claude Opus 4.5 Inspect/GDM task exclusions 93.6%
- 5 GPT-5.1 Inspect/GDM task exclusions 89.7%
- 6
Gemma 2 27B 44.7%
Sources: Labs’ model cards and official InterCode-CTF leaderboard
| # | Model | Score | Setting | Date | Source |
|---|---|---|---|---|---|
| 1 | | 98.7% | Apr 2025 | Lab model card | |
| 2 | | 98.7% | Jul 2025 | Lab model card | |
| 3 | | 97.4% | Jul 2025 | Lab model card | |
| 4 | | 44.7% | Jul 2024 | Lab model card |
| # | Model | Score | Setting | Date | Source |
|---|---|---|---|---|---|
| 1 | Claude Opus 4.5 | 93.6% | Inspect/GDM task exclusions, Inspect gdm_intercode_ctf | Nov 2025 | Official leaderboard |
| 2 | GPT-5.1 | 89.7% | Inspect/GDM task exclusions, Inspect gdm_intercode_ctf | Nov 2025 | Official leaderboard |
| # | Model | Score | Setting | Date | Source |
|---|---|---|---|---|---|
| 1 | 98.7% | Apr 2025 | Lab model card | ||
| 2 | 98.7% | Jul 2025 | Lab model card | ||
| 3 | 97.4% | Jul 2025 | Lab model card | ||
| 4 | Claude Opus 4.5 | 93.6% | Inspect/GDM task exclusions, Inspect gdm_intercode_ctf | Nov 2025 | Official leaderboard |
| 5 | GPT-5.1 | 89.7% | Inspect/GDM task exclusions, Inspect gdm_intercode_ctf | Nov 2025 | Official leaderboard |
| 6 | 44.7% | Jul 2024 | Lab model card |
The benchmark's own leaderboard has 2 models. Switch the scores above to rank them together.
2 models have held number one in labs’ own numbers since its release in June 2023 Number one over time 2 models have held number one with claims included since its release in June 2023
Lab claims count from the day the card came out, independent runs from the model’s release.
Source: Labs’ model cards
Google DeepMind’s own number for Gemini 2.5 Pro passed 85% in April 2025
That was 22 months after its release. By the same age, 37% of the benchmarks from 2023 had passed 85%. All the scores we have, one dot each, so a model tested at several settings appears more than once.
Sources: Official InterCode-CTF leaderboard and labs’ model cards
Labs report it only in system cards
We read the headline results of 546 launch posts from 59 labs, and none of them list this benchmark. Some system cards do, below.
4 system cards report it, from 1 lab
Besides launch posts, we read the system cards, model cards and technical reports labs publish with a release. They report far more, including safety and frontier-risk tests.
| Date | Document | Score | As the document writes it | Section |
|---|---|---|---|---|
| Jul 7, 2025 | | 97.4 | InterCode-CTF (easy), 74/76 solved (Table 10, Figure 10) | Cyber risk |
| Jul 7, 2025 | | 98.7 | InterCode-CTF (easy), 75/76 solved (Figure 10 bar label) | Cyber risk |
| Apr 28, 2025 | | 98.7 | InterCode-CTF (easy), 75/76 solved (Table 1, Figure 2) | Cyber risk |
| Jul 31, 2024 | | 44.7 | InterCode-CTF, 34/76 challenges solved (45%), internet-requiring challenges omitted (Table 19) | Cyber risk |
More in Cybersecurity
- ExploitGym In use 869 real-vulnerability exploit-development tasks (userspace, V8, Linux kernel). Success means capturing a flag through the intended vulnerability. GPT-6 Astra 42.4%
- ExploitBench In use 41 recent V8 JavaScript-engine N-day vulnerabilities. Progress measured by 16 grader-verified capability flags across five tiers. GPT-6 Astra 100%
- ExploitBench - Internal Port In use Agents develop working exploits for recently disclosed vulnerabilities to limit contamination. Scored as arbitrary code execution success rate. GPT-6.2 Astra 53.5%
- Atomic Challenges In use Agents solve 22 skill-level offensive security challenges in vulnerability research, network attack simulation and evasion. Scored as challenges solved. GPT-6 Astra 90.9%
- MiMo Cyber Bench In use Agents do in-house cybersecurity tasks that add to public vulnerability reproduction and exploitation benchmarks. The report gives no task count or grading details. MiMo-V2.6 Pro 81.7%
- PatchBench (OpenAI) In use Models patch security flaws. Automated tests and model-based review check that each patch fixes the flaw, keeps the intended behavior and is ready to merge. GPT-6.2 Astra 79.7%
Data audit
All 8 checks pass. Every benchmark
Catalog record 2 pass
- Pass Task access All tasks are public.
- Pass Confidence Checked against a primary source.
Scores 2 pass 3 notes
- Pass Independent runs Scores from the official leaderboard (2 entries) and system cards (4 scores).
- Pass Models scored 6 models we track.
- Note Newest score The newest came 12 months ago, in November 2025, for Claude Opus 4.5. That’s expected for a saturated test.
- Note Frontier models None of the top 10 has a score, which is fine for a retired test. The strongest tested is Claude Opus 4.5 (#63).
- Note Headroom Saturated. The best is 98.7%, past 85% since April 2025.
Leaderboard import 3 pass
- Pass Importer We read the board on ukgovernmentbeis.github.io: 2 rows for models we track at the last read.
- Pass Last read November 24th, 2026.
- Pass Read worked The last read worked.
Consistency 1 pass 2 notes
- Note Lab claims No model has both a lab number and an independent run.
- Pass Known issues No published audit found problems.
- Note Epoch AI review Epoch AI hasn’t reviewed it.