# Anthropic: simple agentic code review beat fuzzing at finding logic bugs, and found flaws in eBPF and macOS

Anthropic says Claude, run as a coding agent with no hints, rediscovered 11 of 21 known logic bugs, while LLM-guided fuzzing and symbolic execution found none. The same approach found a macOS root flaw and over a hundred eBPF verifier bugs.

By [AI Security Times](https://aisecuritytimes.com/authors/ai-security-times) · Published 2026-12-03T04:29:00Z
Canonical: https://aisecuritytimes.com/ai/anthropic-logic-bugs-agentic-code-review

Anthropic's Frontier Red Team has published research on using AI models to find logic bugs: flaws where software does something its designers never intended, without crashing or corrupting memory. Its main finding is that the simplest approach worked best. "We therefore recommend that defenders start by applying the simple techniques discussed below to their own codebases before investing in specialized tooling," the authors write.

The post, published on Dec 2, also describes flaws the approach found in the Linux kernel's eBPF verifier, a macOS system service, the Caliptra hardware root of trust and the Rust compiler.

## Why logic bugs are hard to find

Tools such as fuzzers find memory-safety bugs because a crash or an invalid memory access is a bug in any program. Logic bugs break rules that are specific to one program, and often unwritten, so there is no general check that flags them. That has left them mostly to human code reviews, which "do not scale to large codebases".

## The benchmark

Anthropic built a benchmark of 21 logic bugs that have since been fixed: 9 in SQLite, 3 in zstd, 1 in brotli and 8 in image-png, disclosed between 2016 and 2026. Each technique got only the unpatched source code and had to prove it had found a bug by submitting an input that triggers it.

Using Claude Mythos 5, the team compared four approaches: LLM-written checks for a fuzzer, LLM-driven symbolic execution, agentic code review (Claude Code given the source and the ability to run test inputs), and "informal correctness proofs", where the agent writes a proof that the code is correct and turns every claim it cannot back up into a test input.

With no hints about the bugs, agentic code review "rediscovered 11 out of 21 bugs"; "the more complex techniques rediscovered none in the same setting." When the agent was told which rule each bug breaks, it found 20 to 21 of the 21, so the hard part is working out the rules from the code.

Newer models did better. Without hints, Claude Sonnet 4.5 rediscovered one bug and Claude Opus 4.5 five, against 11 to 15 for the Claude Mythos models. Because some older bugs may be in the models' training data, Anthropic checked what each model remembered and also reported results for the nine bugs no model recalled. The trend held.

The runs also turned up 316 other bugs in the outdated versions tested. Anthropic says 189 have since been fixed or were already known, and it is reporting the remaining 127.

## Bugs found in current software

- **macOS (CVE-2026-43783, now patched).** In DesktopServicesHelper, a root helper that Finder uses, a sandboxed caller could ask the service to "repair permissions" on any path. Anthropic says the flaw "allows any local user, including the unprivileged nobody account, to take ownership of any file on the system that isn't protected by System Integrity Protection (SIP)", which can be used to get a root shell without a password.
- **eBPF.** Using the proof technique, the team "identified over a hundred soundness bugs in the eBPF verifier", the kernel component that checks user-supplied eBPF programs before they run. All have been reported and are being fixed. One, CVE-2026-98041, comes from a rule added in 2020 that ignored the width of 32-bit comparisons, and "allows a userspace program to achieve local privilege escalation".
- **Caliptra (CVE-2026-11835, patched).** In this open-source silicon root of trust, written in Rust and reviewed by product security teams and external auditors, Claude found a time-of-check-to-time-of-use bug in the firmware update flow. It "allows a compromised component on the same chip to make the root of trust execute firmware it never verified."
- **Rust compiler.** The proof technique found "several dozen type safety issues", including a program the compiler accepts even though it uses freed memory. Anthropic describes these as bugs rather than security vulnerabilities.

## What Anthropic recommends

The authors argue that tooling gaps no longer limit the search for bugs beyond memory safety. Their advice to security teams: "Before looking for specialized tooling, we therefore recommend that defenders first apply agentic code review and informal correctness proofs to their own codebases."

Related: [Chrome update fixes 229 security bugs, with 68 credited to Anthropic researchers and OpenAI's Codex Security](/tech/chrome-158-229-security-fixes-ai-researchers) · [UK AI Security Institute warns that frontier AI agents are getting harder to monitor](/ai/aisi-ai-agents-harder-to-monitor)

## Sources

1. [Anthropic: Finding logic bugs without general-purpose bug oracles (Dec 2, 2026)](https://www.anthropic.com/research/finding-logic-bugs) (Research)

Topics: [AI agents](https://aisecuritytimes.com/topics/ai-agents), [Vulnerabilities](https://aisecuritytimes.com/topics/vulnerabilities)
