· AI dev tools
AWS Project C2 uses LLMs to write proofs, finding 800+ bugs in 22 open source projects
The service, named Project C2, is already credited with uncovering upwards of 800 defects across 22 prominent open-source initiatives, according to AWS.
This new offering leverages large language models to construct formal mathematical proofs concerning code, a capability AWS claims allows it to detect obscure bugs that even the most advanced AI models currently overlook.
AWS revealed this Monday the launch of Project C2, which employs large language models to generate mathematical validations for code, aiming to catch rare errors that even leading frontier models fail to spot today. Beyond open-source contributions, the system is currently being tested against AWS's own infrastructure components, including Amazon Aurora, Amazon DynamoDB, and Amazon Elastic Block Store (EBS). However, access to test personal code with this tool is currently restricted, as only a select group of customers will receive it initially.
Instead of relying on traditional testing, this approach utilizes proofs. Marc Brooker, an AWS Distinguished Engineer, and Soonho Kong, a Principal Applied Scientist who contributed to the initial iterations of the Lean theorem prover at Microsoft Research, explained this concept in the announcement. They pointed out that a single sequence of agreement among three machines operating under the Paxos consensus protocol can unfold in over 90,000 distinct sequences. When incorporating packet drops and retries, this number escalates exponentially, a complexity they argue surpasses the capacity for reasoning by any human developer or current model. They assert, "Just like we can know that a proof of Pythagoras' theorem is correct without trying every possible triangle, the proofs this approach writes can generalize to all orderings without trying them all," they stated.
The mechanism of C2 operates by first assimilating a project's documentation and source code to ascertain the intended function of the system. Following this understanding, the tool attempts to mathematically verify that the code actually performs as intended. Should the proof fail, C2 either refines its grasp of the system's behavior or, if a genuine discrepancy exists, it flags a bug. To finalize the process, the tool then generates a test case designed to trigger the identified flaw, assesses its severity, and drafts a corrective patch which it also proves to be correct. AWS noted that it has dedicated roughly a decade to utilizing automated reasoning within its own operational framework, and earlier this year, it introduced this methodology to developers via Kiro's requirements analysis feature, for instance.
Many of the AI-driven bug detection tools released over the past year have predominantly concentrated on security issues. For example, Anthropic's Claude Security, OpenAI's Codex Security (formerly Aardvark), and Google DeepMind's CodeMender primarily function by having a model reason about code, essentially accelerating the process a security researcher would undertake. C2, however, is pursuing a different avenue, and it is crucial to understand that it targets a distinct category of problems. AWS explicitly clarified that these are not the types of vulnerabilities exploited by malicious attackers, but rather reliability issues that tend to reside within the error-handling and failure-management code paths that rarely execute. A comparable tool might be Antithesis, a startup that runs complete distributed systems within a deterministic hypervisor, injecting faults until a failure occurs. Nevertheless, AWS contends that while testing only examines the specific sequences it explores, a formal proof encompasses every possible sequence. etcd already subjects itself to robustness checks using Antithesis, and one defect AWS highlighted, though without naming the specific project, mirrors an issue Brooker reported against etcd back in early November. This specific issue involves a leader losing its status mid-batch, which can cause it to repeatedly revoke leases that clients had already renewed with the newly established leader. Another example presented by AWS involves an in-memory database that incorrectly cleared a disk-error flag following a successful retry, even though on Linux, such a retry does not guarantee that prior writes have been committed to disk.
The more substantial hurdle might lie on the receiving end—in the capacity to handle the findings. While Anthropic reported disclosing 5,087 vulnerabilities across 680 open-source projects, only 629 of those had been patched as of the beginning of November.
Why it matters
This represents a significant shift in automated code verification, moving beyond simple testing to mathematical proof. For developers, this signals a new frontier in finding subtle, hard-to-reproduce bugs in complex systems.




