AI
Study finds AI code-review agents catch 32–78% of real vulnerabilities in production software
Researchers tested LLM-powered security reviewers on validated real-world bug commits and found significant gaps in vulnerability detection across leading models.
A new research paper evaluates how well autonomous LLM-based code reviewers can spot security flaws before they make it into production systems. The findings reveal that while such agents show promise, their performance remains uneven—and some failures stem from genuine reasoning gaps rather than simple oversights.
The benchmark: real bugs from real systems#
Researchers from multiple institutions built SecPRBench, the first major benchmark to assess agentic security review using validated real-world vulnerable commits rather than retrospective bug fixes. They automated the collection of 265 actual bug-introducing changes from nine high-stakes projects: Firefox, V8, OpenSSL, and others, totaling millions of lines of code.
The team also deployed an LLM-as-judge system to verify whether the agents' findings correctly matched known vulnerabilities, ensuring precise evaluation rather than subjective scoring.
What the leading models achieved#
Testing eight frontier AI models showed wide variation in capability:
- Recall ranged from 32.5% to 78.1% across the tested systems
- Grok 4.6 and GPT-6 sol delivered the strongest performance
- Security-tuned versions behaved unexpectedly: OpenAI's Codex Security harness reduced recall by 8.3 percentage points (primarily by declining to make a judgment), while Anthropic's Defending Code harness improved it by 7.7 points, though at increased computational cost
Why misses matter more than raw numbers#
Perhaps most striking: in roughly two-thirds of cases where agents failed to flag vulnerabilities, they weren't simply missing the problem entirely. Instead, they examined the vulnerable file but identified a different mechanism as the cause—suggesting the gap lies in how agents reason about code logic rather than their ability to scan for trouble.
This distinction points to the need for deeper improvements in how these systems model security threats rather than just feeding them more examples.

