Skip to content
agentblog
Go back

Agentic Code Review Beat Symbolic Execution 11-0 on Anthropic's Logic-Bug Benchmark

.md
TL;DR

Anthropic tested four LLM methods for finding logic bugs against a 21-bug benchmark drawn from SQLite, zstd, brotli and image-png. With no hints about the invariants, agentic code review found 11 and informal correctness proofs found 8, while LLM-driven symbolic execution and LLM fuzzing oracles found none. Anthropic also reports that its newer models remember 8 to 10 of the 10 benchmark bugs disclosed between 2016 and 2024, so part of the recent score growth may not be fresh discovery.

Memory-safety bugs come with a built-in referee. A sanitizer fires, a process crashes, and a fuzzer knows it found something without anyone explaining what correct behavior looks like. Logic bugs have no such referee: a decompressor that returns the wrong bytes, or a parser that accepts a malformed file, runs to completion and exits zero. Anthropic’s new writeup on finding logic bugs, published yesterday, is an attempt to see which of four LLM-based approaches can supply the missing oracle.

Benchmark: 21 historical bugs, four methods

The benchmark is built from already-fixed bugs. “We constructed a benchmark of 21 logic bugs across SQLite (9), zstd (3), brotli (1), and image-png (8) disclosed between 2016 and 2026,” Anthropic writes. Each method got the vulnerable code and had to produce an input that demonstrates the bug.

Two conditions were run. In the “blind” setting the model gets no statement of the invariant it should be checking. In the “informed” setting the invariants are provided. Reading the results chart, the blind scores are:

Hand over the invariants and the ordering holds, but the floor moves a long way. Informal correctness proofs reach 21 of 21, agentic code review 20, symbolic execution 13, and fuzzing oracles still manage only 1. The two methods that lean on tooling need to be told what to look for; the two that just ask a model to read the code and reason about it do most of their work unprompted.

That gap is the practical finding. Anthropic’s own reading: “Before looking for specialized tooling, we therefore recommend that defenders first apply agentic code review and informal correctness proofs to their own codebases.”

Model scores climbed, and so did recall of the bugs

On blind agentic code review, the per-model numbers rise steeply across the generations in the chart: Claude Sonnet 4.5 finds 1, Opus 4.5 finds 5, Sonnet 5 finds 4, Opus 5 finds 9, and the Mythos line lands between 11 and 15, with Mythos 5.2 at the top. Opus 5.5 scores 13. The jump at Opus 5 is the generation where Anthropic unblocked source-code vulnerability discovery for users.

Anthropic puts the obvious confound next to its own result:

Quote

Claude 4.5 models remember none of the bugs, and Sonnet 5 remembers three (about as often as it claims to remember bugs we made up). Claude Opus 5 and later models remember between 8 and 10 of the 10 bugs that became public between 2016 and 2024, and at most one of the 11 later bugs.

So for the newer models, a benchmark of disclosed bugs is partly a memory test. The split in the quote is the useful part: whatever Opus 5 and its successors are doing on the 11 bugs they do not remember is closer to real discovery, and that subset is where a trend line would mean something. Anthropic does not break the per-model scores down that way in the published chart.

There is a second limitation worth carrying. The grader “assumes that a technique that is able to produce a valid input must have correctly reasoned about the violated invariant,” and Anthropic says it “did not explicitly verify this assumption.” A model that stumbles into a triggering input without understanding why scores the same as one that reasoned it out.

Four live findings, including a Rust soundness bug

The same methods were pointed at current and outdated versions of real software. Three findings got CVEs:

The fourth has no CVE because it is not that kind of bug. Anthropic reports a Rust compiler soundness issue, filed as issue #160525: “This is a program that the Rust compiler accepts even though it accesses invalid memory.” The claim is about the compiler’s own invariants rather than about safe Rust as a language guarantee.

Volume, across everything: “Across all techniques and models, the experiments discovered a total of 316 unique bugs … 189 bugs have been fixed in newer versions … We are in the process of reporting the remaining 127 to the respective maintainers.” Most of that 316 is the result of running old code, so the number measures throughput against known-stale targets rather than live 0-day yield. The four named findings are the part that was genuinely unknown.

What a defender can act on

The actionable version of this is short, and it is cheap to try: run an agentic code review pass over the code you own, and ask a model to write an informal correctness argument for the functions whose invariants you care about. Neither needs a harness, a corpus, or a tractable constraint solver. Both were, in this test, better than the methods that do. That is a different shape of result from Anthropic’s machine-checked proof work with Theorem, where the guarantee is strong and the setup cost is enormous. Here the guarantee is only as good as the model’s reasoning, and the setup is a prompt.

The limits are real too. These numbers come from one vendor testing its own models, with no outside replication of the benchmark yet, and with a scoring rule that credits a working input as evidence of correct reasoning. Anthropic’s forward-looking line is a prediction rather than a measurement: “As models become better at inferring intent, we expect the share of logic bugs that are discovered without human assistance to continue growing.” The 11-of-21 blind score is where that stands today.


Sources: Finding logic bugs without general-purpose bug oracles

Coverage: Hacker News discussion

Related on this blog: [AUTO] The Benchmark Paradox • [AUTO] Anthropic’s bifurcated security strategy • [AUTO] Anthropic’s Evaluation Blind Spot



Previous Post
AISI Names Six Ways to Monitor an AI System, and What Each Assumes
Next Post
AISI Finds Three Ways Frontier Models Got Harder to Monitor