Cryptography vulnerability evals
Can AI agents find real cryptography bugs?
We gave 11 models 50 real vulnerabilities in cryptographic code: zero-knowledge circuits, MPC protocols, signatures, and encryption. Each model ran the full benchmark 3 times in a sandbox with no internet access.
Results as of 12 November 2026.
- Best single model
- 68%Grok 4.7, 34 of 50 bugs in any run
- All models combined
- 80%40 of 50 bugs found by at least one model
- Lowest cost per bug found
- $1.03DeepSeek V4.1 Flash 1017: 32 bugs across 3 runs for $32.97
Every model ran in a vanilla agent harness (its provider's coding agent, or OpenCode for open-weight models) with one short, generic prompt per bug class. No custom tools, skills, multi-step flows, or validation. The evals measure the models on their own, as a baseline. zkao runs frontier models inside investigation flows built from zkSecurity's cryptography audits, which are not measured here.
At least once
Bug-finding capability
A bug counts when any of the 3 runs detects it. Refusals and timeouts count as misses. Cost is the detector's cost for one pass over the benchmark.
Vanilla harnesses, simple prompts. Not zkao.
Every attempt
Bug-finding recall
Detections across all 150 attempts (50 bugs, 3 runs each). This rewards finding a bug reliably, not once by chance.
Vanilla harnesses, simple prompts. Not zkao.
Capability versus cost
What the bugs cost to find
Each line joins the share of bugs a model found in at least one run (filled) to the share it found in every run (hollow). Upper left is better. A long line means a model finds more bugs than it finds reliably.
Vanilla harnesses, simple prompts. Not zkao.
Select a model to follow it down the page.
Point at a model to read its numbers.
Methodology
Questions and answers
How the benchmark was run, scored, and priced, and what it does not measure.
Are these zkao results?
No. Every number on this page comes from a vanilla agent harness: Grok CLI and Mistral Vibe for models with their own coding agent, and OpenCode for the rest. Each run gets one short, generic prompt. There are no custom tools, skills, multi-step flows, or validation steps.
The evals measure what a general-purpose coding agent finds with a simple prompt. They are a baseline for the models, not a measurement of zkao. zkao runs frontier models inside investigation flows built from zkSecurity's cryptography audits, and those flows are not shown here.
What is in the benchmark?
50 real vulnerabilities from 36 open-source repositories: zero-knowledge circuits and proof systems, multi-party computation, signatures, encryption, key exchange, side channels, and post-quantum code.
Each entry pins the vulnerable commit and records the affected files and functions, a description of the defect, its impact, and the threat model. The median audited scope is about 3,148 lines of code.
What does the agent see?
The source code at the vulnerable commit, with no git history. The agent runs in a Docker sandbox with no network access except its model API. It cannot search the web or fetch the upstream fix.
The prompt names the directory to focus on. The whole repository stays available, so the agent can follow callers and dependencies. It can build the code, run tests, and write small experiments.
What prompt does the agent get?
One shared template asks a senior cryptography engineer to investigate the code, substantiate findings with evidence, and write a short report that starts with Vulnerable: YES or Vulnerable: NO. It states the time limit and forbids speculative findings.
A one-line task names the bug class, such as under-constrained circuits or Fiat-Shamir weaknesses. The prompt never names the file, the function, or the defect.
How are the models configured?
Models whose provider ships a coding agent run in it: Grok CLI and Mistral Vibe. The other open-weight models run in OpenCode. Every model runs at high reasoning effort or above. There is no turn or iteration limit.
How is a detection judged?
A separate judge model (GPT-6.1 Terra in Codex) compares the report with the dataset entry, which the detector never sees. It can read the code to check claims.
A detection requires the same defect: the affected code, what is wrong, and how an attacker in the threat model exploits it. A matching bug class, file, or symptom alone is not enough. Reports that identify only part of the defect are marked partial and receive no credit.
Do false positives count against a model?
No. The benchmark measures recall on known bugs. Other findings in a report neither help nor hurt, so a model that reports many weak findings is not penalized here. Precision needs a separate evaluation.
Could the judge favor some models?
The judge is itself a model, and it comes from one provider. Its verdicts follow a fixed rubric and must quote the report, which limits drift, but some bias toward reports written in a familiar style is possible.
What do the three metrics mean?
Each model runs the full benchmark 3 times. A bug found at least once was detected in any of the runs. A bug found consistently was detected in all of them. Recall counts detections across all 150 attempts.
Found at least once is closest to running an agent several times and keeping every finding. Found consistently and recall show how much a single run can be trusted.
What does the all-models row mean?
It treats every model as one team. A bug counts if any model found it in a given run. Together the models found 40 of 50 bugs at least once, 80%. Its cost is the sum of every model's cost.
How are refusals and timeouts counted?
As misses. Each detector run has one hour, and the prompt states that limit. A run that refuses, times out, or writes no report scores as not detected.
Could models have memorized these bugs?
Some bugs were disclosed before the models' training cutoffs. The sandbox blocks the network, but it cannot remove what a model learned in training.
The benchmark keeps evolving to counter this. Older bugs that every model already detects are retired and replaced by newer bugs, which likely postdate the training cutoffs of even the latest models. We expect the benchmark to get harder for models as it is updated, not easier.
Why run each model three times?
Agent runs are noisy. The same model often finds a bug in one run and misses it in the next. Three runs separate a model that reliably finds a bug from one that finds it by chance. Differences of a few bugs between models are within that noise.
A product by zkSecurity
Go beyond the baseline.
These baselines show what a general-purpose agent finds with a simple prompt. See what zkao's audit-informed investigations find on your code.