Code · Best AI for
Hacking & CTF challenges
Capture-the-flag puzzles, finding vulnerabilities and understanding exploits (for defence and authorised testing).
Top tested so far: Claude Opus 4.6 (Anthropic)

Claude Opus 4.6 from Anthropic is the best tested so far (100/100), followed by Claude Mythos Preview and Claude Opus 4.5. Most of today's newest top models haven't taken these tests yet. Cybench is a set of real capture-the-flag challenges from security competitions. ExploitBench tests writing working exploits for known bugs.
Heads up: most of today's newest top models haven't taken these tests yet, so this ranking leans on older results. Check the grid for the newest models.
Top 15 for hacking & CTF challenges
Score = share of today's AI models it beats on the tests below (100 = best of all).
- 1Claude Opus 4.6Anthropic · a few tests100
- 2Claude Mythos PreviewAnthropic · one test so far100
- 3Claude Opus 4.5Anthropic · a few tests91
- 4GPT-5.5OpenAI · one test so far88
- 5Claude Sonnet 4.5Anthropic · a few tests82
- 6Claude Opus 4.7Anthropic · one test so far75
- 7Grok 4xAI · a few tests73
- 8Claude Opus 4.1Anthropic · a few tests64
- 9Gemini 3.1 ProGoogle · one test so far63
- 10Grok 4.1xAI · a few tests55
- 11Claude Sonnet 4.6Anthropic · one test so far50
- 12Claude Opus 4Anthropic · a few tests45
- 13Kimi K2.6Moonshot AI (Kimi) · one test so far38
- 14Claude Sonnet 4Anthropic · a few tests36
- 15Grok 4 FastxAI · a few tests27
Best overall
Score 100 · Anthropic · $0.95 per job
Best under $1
Score 18 · OpenAI · $0.1 per job
Best open source
Score 38 · Moonshot AI (Kimi) · $0.174 per job
What it costs to work through one CTF challenge
≈ 150K tokens read and 8K written per job, at each model's list API price. Monthly chat-app plans don't charge per job.
| Model | Score | Per job | Per 1,000 jobs | Memory |
|---|---|---|---|---|
| Claude Opus 4.6best value | 100 | $0.95 | $950 | 1M |
| Claude Mythos Preview | 100 | — | — | — |
| Claude Opus 4.5 | 91 | $0.95 | $950 | 200K |
| GPT-5.5 | 88 | $0.99 | $990 | 1.1M |
| Claude Sonnet 4.5 | 82 | $0.57 | $570 | 200K |
| Claude Opus 4.7 | 75 | $0.95 | $950 | 1M |
| Grok 4 | 73 | — | — | — |
| Claude Opus 4.1 | 64 | $2.85 | $2,850 | 200K |
| Gemini 3.1 Pro | 63 | $0.396 | $396 | 1M |
| Grok 4.1 | 55 | — | — | — |
| Claude Sonnet 4.6 | 50 | $0.57 | $570 | 1M |
| Claude Opus 4 | 45 | — | — | — |
| Kimi K2.6 | 38 | $0.174 | $175 | 262K |
| Claude Sonnet 4 | 36 | — | — | — |
| Grok 4 Fast | 27 | — | — | — |
Highlighted: the cheapest model within 15% of the top score.
Tests behind this ranking
Share = how much each test counts towards the score.
| CybenchCan it win hacking puzzle contests made for security pros? | 58% |
| ExploitBenchHow far can it get in hacking a real web browser's engine? | 42% |
Tips
- Most providers refuse some security requests. The rankings show skill, not how often a model says no.
Quick answers
Which AI is best at cybersecurity and CTFs?
Claude Opus 4.6 from Anthropic is the best tested so far (100/100), followed by Claude Mythos Preview and Claude Opus 4.5. Most of today's newest top models haven't taken these tests yet.
About Claude Opus 4.6 →What's the best cheap AI for hacking & CTF challenges?
o3-mini: 18/100 for about $0.96 per million tokens. One job (work through one CTF challenge) costs about $0.1.
See the details →What's the best open-source AI for hacking & CTF challenges?
Kimi K2.6 from Moonshot AI (Kimi), scoring 38/100. You can download it and run it yourself.
See the details →How much does it cost to work through one CTF challenge with AI?
With Claude Opus 4.6, about $0.95 (≈ 150K tokens read, 8K written, at list API prices). Chat apps on a monthly plan don't charge per job.
How is this decided?
Cybench is a set of real capture-the-flag challenges from security competitions. ExploitBench tests writing working exploits for known bugs.
How scores work →