Skip to content
by InfinyAI ES

IA en un minutoNewsSecurity

Security

Anthropic finds that AI agent code review detects more logic bugs than fuzzing

IA en un minuto newsroom · Editor: Jon Elgezabal

In 30 seconds

Anthropic has put several ways of hunting logic bugs to the test, and the simplest one won: letting an agent read the program. Claude Mythos 5 hit on 11 of the 21 cases, while fuzzing and symbolic execution stayed at zero. Caliptra, macOS, eBPF and Rust are among the programs with new flaws, and the company warns that some of the old cases could be in the memory of its models.

An AI agent that reviews code has found bugs that other, more complex techniques did not detect. Anthropic reports it in a study published on December 2 about logic bugs, the flaws in which a program contradicts the unwritten rules of how it should work.

They are hard to locate because they rarely cause a sudden shutdown or an improper use of memory, the signs that automatic tools look for. That is why, according to the company, hunting for them has so far depended above all on reviews done by people.

The researchers gathered 21 bugs, all already fixed, from four open-source projects: SQLite, zstd, brotli and image-png. With no hints, the Claude Mythos 5 model, inside Claude Code, rediscovered 11, counting three attempts for each bug. Under equal conditions, the two AI techniques based on fuzzing (generating automatic inputs to trigger failures) and on symbolic execution did not find a single one. When the models were told which rule was being broken, the agent review reached 20 or 21. Another simple technique, in which the agent writes an informal demonstration that the program is correct, gave similar results.

Anthropic points out a limit of the test: models from Claude Opus 5 onward remembered between 8 and 10 of the 10 oldest bugs in the set, so they could know them from training. With the nine that none of the models remembered, they rediscovered between two and five.

The study also describes flaws that were not public knowledge when they were discovered, in macOS, the Rust compiler, eBPF (which runs programs within the core of Linux) and Caliptra, an open-source silicon root of trust. Those in macOS and Caliptra already have a patch. The Rust example has been passed on to its maintainers, who are preparing the fix.

Anthropic advises defense teams to try these simple techniques on their own code first, and only then look for specialized tools. It also admits that its Mythos models can still benefit from human help to work out which rules a program should follow.

Why it matters · analysis and opinion

The value of the result is that it lowers the cost of entry: if the method that works best consists of giving an agent access to the code and letting it run tests, a small team can try it without first building specialized infrastructure. It calls for a cautious reading, because the study is signed by the seller of the model, and memory of old flaws takes some merit away from the main figure. Nor is it known what each finding costs or how many false alarms would have to be discarded in an ordinary project, and that decides whether it pays off. The uncomfortable part is that attackers have the same recipe. A sensible step for anyone who maintains their own software: write down the rules the program must never break and ask the agent to try to break them, with a person confirming each alert.

Official source: Anthropic · Written with the help of AI: how we make the news

AI in your inbox, every day or every Friday

The stories that matter, each one in a minute. With the source for every one.

Choose one or both:

Sign up and you are in: the daily arrives every night and the weekly on Friday mornings. You can unsubscribe from any email.