AWS describes Project C2, an AI tool that finds rare code bugs
In short
- What it is: on 30 November 2026 Amazon Web Services (AWS) described Project Code Confidence, or Project C2, a service that looks for bugs in software by pairing AI models with automated reasoning, a branch of computer science that uses mathematical logic to prove or disprove how a system behaves.
- The result: AWS says it found over 800 bugs across 22 popular open source projects, from race conditions (two parts of a program acting on the same data at once, in an unlucky order) to thread-safety errors, and shared fixes with the maintainers.
- Access: AWS is opening C2 to a limited number of customers who sign up, and says it is also using it on Amazon Aurora, Amazon DynamoDB and Amazon Elastic Block Store (EBS).
- The catch: the 800 count is AWS's own. The post does not name the 22 projects or list the bugs.
800+ bugs found, AWS says; 22 open source projects scanned; 9 thread-safety bugs in one Rust profiling library; 1 in a million odds of the kind of error C2 hunts
Why rare bugs matter at cloud scale
AWS opens with an argument about odds. In 2015, its engineers saw a one-in-a-million error happen a few times a second on AWS. The odds were not miscalculated: in AWS's words, "even a one-in-a-million occurrence can happen a thousand times if given a billion chances." Roughly ten years on, it says, such errors happen thousands of times a second, and AI agents running more operations will push that higher.
AWS says these bugs are not the security holes attackers use to steal data. They are subtler faults, and they tend to sit in the code that handles errors and failures, which runs rarely but matters most when it does. Left alone, the post says, they can be as minor as losing a few bits of data or as serious as taking a system offline.
Why AI models alone miss them
The post's case is about counting. A distributed system, one that runs on many machines that must agree, can play out in a huge number of orders. AWS says one round of the Paxos agreement protocol between three machines can happen in over 90,000 unique orders, and the number grows exponentially once lost packets, retries and duplicates are allowed. A person cannot check all of them, and AWS says that, in its experience, even frontier models cannot reliably diagnose such bugs.
Existing tools, it says, either match known patterns (static analysis, security scanners) or rely on an AI model's judgment (AI code review, coding agents). Both can miss edge cases when billions of cases need covering.
How does AWS's tool find hidden bugs?
AWS describes a loop in plain steps:
- C2 reads the code and its documentation to build a picture of what the system should do.
- It tries to prove that the system as built does that.
- A mismatch means one of two things: C2's picture of the intent was wrong and it loops back to improve it, or it has found a real bug.
- For a real bug it builds a test that triggers the bug in the actual code, so it is not just a misunderstanding.
- It rates the severity, then writes and tests a fix, and tries to prove the fix correct.
The mathematics comes from tools such as the Lean theorem prover. The point, AWS says, is not to try every ordering but to have a model write a proof of what can happen under every possible ordering, the way a proof of Pythagoras's theorem holds without testing every triangle. AWS says it built on more than ten years of applying automated reasoning at scale, and added retries, guardrails and parallel runs to use compute efficiently.
What it found
AWS gives one count and two worked examples. It says it scanned a performance-profiling library popular with Rust programmers and found nine local thread-safety bugs, including one that could make the reporting thread crash and later data be lost. It also says it found similar bugs in popular open source database and storage engines, sometimes on a single machine and with no failure happening.
- An in-memory database. The database writes its log and asks the operating system to save it to disk. If that fails, it sets an error flag and refuses further writes. C2 found a case where a background process retries the save, succeeds, and clears the flag. On Linux-type systems the second success only means that data written after the failed first try is on disk, not everything, so after a reboot critical data may be lost.
- A distributed key-value store built on the Raft protocol. A leader machine revokes expired leases (time-limited claims on a resource). It checks it is still the leader once per batch, not before each action. If it loses leadership mid-batch, it can keep revoking leases the new leader has already handed to new owners. AWS says this could leave a cluster expecting one payment processor with two, double-charging customers.
AWS adds that it has run C2 on hundreds of codebases and found similar bugs in nearly all of them, and that each report it sent came with a reproduction (often an automated test) and a tested patch.
Who can use AWS's bug-finding tool?
C2 is not open to everyone yet. AWS says it will give a limited number of customers access, with plans to widen it as companies are onboarded, and that it can examine anything from a single library to an entire distributed system without the user needing expertise in AI or automated reasoning. Interested customers sign up through AWS's page. AWS also says it will add more automated reasoning techniques "over the coming months", from bug finding to regression testing. The post gives no price.
What is not shown
AWS's results come from its own scans. The post names no project and no bug report, so outsiders cannot yet check how many of the 800-plus bugs maintainers accepted or fixed. Its claim that frontier models miss these bugs is also AWS's experience, not a published comparison. We have not seen an outside test of C2.
Terms in plain English
- Automated reasoning: using mathematical logic, run by software, to prove or disprove that a system behaves as intended (AWS's definition).
- Race condition: a bug that appears only when two parts of a program act on shared data in an unlucky order (our wording).
- Thread safety: whether code that runs in several threads at once stays correct (our wording).
- Lean: a theorem prover, software that checks mathematical proofs.
Official channels of AWS: Website · LinkedIn · X · YouTube
Sources
- Project C2: new AWS technique spots the rare bugs the most advanced models miss, Amazon, 30 November 2026
Sources
Related stories
- AWS unveils AI agent chips, servers and guard rails at re:Invent
- AWS says Nitro v7 cards give preview C9gn servers up to 600 Gbps
- AWS highlights its 192-core Graviton5 Arm chip at re:Invent 2026
- AWS releases AWS Context, a map of company data for AI agents
- Amazon launches Discovery Labs to find new materials with AI
- AWS says Amazon Athena queries run up to 2x faster on DuckDB
More from AI Research Labs
- SpaceX renames its AI coding app Cursor as Grok Build
- Belfort releases Bel-0, a chatbot that works on encrypted prompts
- Anthropic says its AI found an 18-year-old flaw in server boot code
- HRD-Fuse AI predicts platinum chemotherapy response, authors say
- Anthropic says it moved Claude's API from Python to Rust