CASTLE
Models read 250 hand-written compilable C programs and say whether each has a vulnerability and which CWE. Static analyzers run on the same set.
25 CWE types with 6 vulnerable and 4 clean programs each. The CASTLE Score gives 5 points for a correct find, 2 for a correct clean call and subtracts for false positives. True and false positive rates are also reported.
- Made by
- CASTLE authors (Richard et al.)
- Released
- March 2025
- Kind
- Finding and exploiting real bugs
- Level
- Expert
- Scored
- Checked automatically
- Answers
- Short answer
- Tasks
- All public
- Measures
- Capability
- Language
- English
- Interaction
- Single turn
- Refresh
- One fixed set
- Run by
- Anyone
- Strongest model tested
- o1 #119 on the capability index
- Last model added
- January 2025
- Updated automatically
- No, from its paper
- Scores refreshed
- November 20th, 2026
In the authors’ words
Identifying vulnerabilities in source code is crucial, especially in critical software components. Existing methods such as static analysis, dynamic analysis, formal verification, and recently Large Language Models are widely used to detect security flaws. This paper introduces CASTLE (CWE Automated Security Testing and Low-Level Evaluation), a benchmarking framework for evaluating the vulnerability detection capabilities of different methods. We assess 13 static analysis tools, 10 LLMs, and 2 formal verification tools using a hand-crafted dataset of 250 micro-benchmark programs covering 25 common CWEs. We propose the CASTLE Score, a novel evaluation metric to ensure fair comparison. Our results reveal key differences: ESBMC (a formal verification tool) minimizes false positives but struggles with vulnerabilities beyond model checking, such as weak cryptography or SQL injection. Static analyzers suffer from high false positives, increasing manual validation efforts for developers. LLMs perform exceptionally well in the CASTLE dataset when identifying vulnerabilities in small code snippets. However, their accuracy declines, and hallucinations increase as the code size grows. These results suggest that LLMs could play a pivotal role in future security solutions, particularly within code completion frameworks, where they can provide real-time guidance to prevent vulnerabilities. The dataset is accessible at https://github.com/CASTLE-Benchmark.
o3-mini leads with 977.0 among models released by January 2025 o3-mini leads with 977.0 among models released by January 2025
Best score per entry from the benchmark's paper, read on November 20th, 2026. A paper’s table doesn’t add newer models. Where a model ran with several settings or harnesses, we keep its best. Names in gray aren't in our model list: fine-tunes, agent systems, products and older models. They don't count toward leaders. This view shows only models we track, each at its best.
The newest model with a score here came out in January 2025, and nobody has tested 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 o3-mini 977.0
- 2 o1 962.0
- 3
DeepSeek-R1 956.0
- 4 GPT-4o (snapshot unspecified) 954.0
- 5 GPT-4o mini 761.0
- 6
Qwen2.5-Coder-32B-Instruct 708.0
- 7 Falcon 3 (7B) 521.0
- 8 Mistral Ins. (7B) 446.0
- 9
Gemma 2 9B 436.0
- 10
Llama 3.1-8B 417.0
Source: The CASTLE paper
- 1 o3-mini 977.0
- 2 o1 962.0
- 3
DeepSeek-R1 956.0
- 4 GPT-4o mini 761.0
- 5
Qwen2.5-Coder-32B-Instruct 708.0
- 6
Gemma 2 9B 436.0
- 7
Llama 3.1-8B 417.0
Source: The CASTLE paper
| # | Entry | Score | Setting | Date | Source |
|---|---|---|---|---|---|
| 1 | o3-mini | 977.0 | Jan 2025 | Official leaderboard | |
| 2 | o1 | 962.0 | Dec 2024 | Official leaderboard | |
| 3 | | 956.0 | Jan 2025 | Official leaderboard | |
| 4 | GPT-4o (snapshot unspecified) | 954.0 | Official leaderboard | ||
| 5 | GPT-4o mini | 761.0 | Jul 2024 | Official leaderboard | |
| 6 | | 708.0 | Nov 2024 | Official leaderboard | |
| 7 | Falcon 3 (7B) | 521.0 | Official leaderboard | ||
| 8 | Mistral Ins. (7B) | 446.0 | Official leaderboard | ||
| 9 | | 436.0 | Jun 2024 | Official leaderboard | |
| 10 | | 417.0 | Jul 2024 | Official leaderboard |
| # | Model | Score | Setting | Date | Source |
|---|---|---|---|---|---|
| 1 | o3-mini | 977.0 | Jan 2025 | Official leaderboard | |
| 2 | o1 | 962.0 | Dec 2024 | Official leaderboard | |
| 3 | | 956.0 | Jan 2025 | Official leaderboard | |
| 4 | GPT-4o mini | 761.0 | Jul 2024 | Official leaderboard | |
| 5 | | 708.0 | Nov 2024 | Official leaderboard | |
| 6 | | 436.0 | Jun 2024 | Official leaderboard | |
| 7 | | 417.0 | Jul 2024 | Official leaderboard |
Everything the board measures
The benchmark’s paper publishes 8 numbers for each entry: the headline score and 7 other measures. Rank entries by any one, compare them all in the table, or plot any two. Each row is the entry’s best run on the headline score.
- Headline
- Headline score
- Other measures
- True positives
- True negatives
- False positives
- False negatives
- Precision
- Recall
- Accuracy
- Headline
- Headline score
- Other measures
- True positives
- True negatives
- False positives
- False negatives
- Precision
- Recall
- Accuracy
- Headline
- Headline score
- Other measures
- True positives
- True negatives
- False positives
- False negatives
- Precision
- Recall
- Accuracy
- Google DeepMind
- OpenAI
- Meta
- Qwen
- DeepSeek
- not in our model list
Number one over time
Lab claims count from the day the card came out, independent runs from the model’s release.
Source: The CASTLE paper
Scores over time
All the scores we have, one dot each, so a model tested at several settings appears more than once.
Source: Official CASTLE leaderboard
No lab model card reports it yet
We read the headline results of 546 launch posts from 59 labs, and none of them list this benchmark.
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
8 of 9 checks pass, 1 warning. Look first at the Newest score check. The newest came 22 months ago, in January 2025, for o3-mini. Every benchmark
Catalog record 2 pass
- Pass Task access All tasks are public.
- Pass Confidence Checked against a primary source.
Scores 1 warning 2 pass 2 notes
- Pass Independent runs Scores from the benchmark’s paper (10 entries).
- Pass Models scored 7 models we track, plus 3 other entries on its leaderboard.
- Warning Newest score The newest came 22 months ago, in January 2025, for o3-mini.
- Note Frontier models None of the top 10 has a score. The strongest tested is o1 (#119).
- Note Headroom Scored as a plain number, with no fixed ceiling.
Leaderboard import 3 pass
- Pass Importer We read the board on arxiv.org: 7 rows for models we track and 3 other entries at the last read.
- Pass Last read November 20th, 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.