Most automated bug hunting depends on a tripwire. Fuzzers and sanitizers catch crashes or invalid memory accesses because those failures look wrong in any program. Logic bugs are different: the software runs smoothly while breaking a rule that only makes sense for that particular code, such as who may change a file or which branch a verifier may skip. In a research post dated December 2, Anthropic argues that language models can stand in for the missing tripwire by inferring what code is supposed to do and then testing that guess.
To measure this, the team assembled 21 publicly disclosed logic bugs from 2016 to 2026 in SQLite, zstd, brotli and image-png. Models received only the unpatched source and had to produce an input that made patched and unpatched versions behave differently, with up to 1,000 attempts per run and no feedback until the end. Each technique ran three times, in a blind setting with no hint about the bug and an informed setting where the violated invariant was supplied.
Four methods were compared using Claude Mythos 5: an LLM writing assertions for an eight-hour fuzzing campaign, an LLM building harnesses for a symbolic execution engine, plain agentic code review in Claude Code, and an informal correctness proof in which the agent writes a proof-style document and turns every claim it cannot justify into a test input. The two simple methods won clearly. Fuzzing and symbolic execution found nothing without hints, and the 13 bugs symbolic execution found in the informed setting came from the model's own reading of the code rather than from the solver. Given the invariant, the best approaches found 20 or 21 of the 21 bugs, which suggests forming the hypothesis is the hard part.
Model generation mattered. In the blind setting Claude Sonnet 4.5 rediscovered one bug and Opus 4.5 five, against 9 to 13 for newer Opus models and 11 to 15 for Mythos models. Anthropic checked for memorization by asking models about the bugs without code: newer models recalled many of the ten bugs disclosed before 2025 but at most one of the eleven later ones, and the generational gap persisted on bugs no model remembered. Across all runs the experiments also produced 316 unique bugs outside the benchmark, 189 of which were already fixed or known.
The company then went looking for unknown flaws. In Caliptra, an audited, Rust-based open-source silicon root of trust, agentic review found a time-of-check-to-time-of-use gap in the ROM firmware update path that could let a compromised on-chip component run firmware that was never verified. In macOS, Claude found CVE-2026-43783 in DesktopServicesHelper, the root helper Finder uses: any process that sandboxes itself could ask it to hand over ownership of files outside System Integrity Protection, enough to obtain a root shell. Apple has patched it. Proof-style analysis of the Linux eBPF verifier yielded more than a hundred soundness bugs that maintainers have been fixing, including CVE-2026-98041, where a 32-bit comparison fooled a null-check shortcut. Applied to the Rust compiler, it turned up several dozen type-safety holes.
Anthropic's conclusion is practical: defenders should try a capable model in a standard agent harness before building specialized tooling. The results also cut the other way, since the same techniques are available to attackers.
The evidence comes from Anthropic's own models, benchmark design and grading, including an LLM judge used to verify and deduplicate the extra findings. Independent replication has not been published, and the company notes that even recent models remain limited in forming hypotheses about intent.