AWS Project C2 Finds 800+ Bugs AI Models Miss

AWS Project C2 bug-finding technique combining AI models and automated reasoning

AWS Project C2 is a new bug-finding service from Amazon Web Services that pairs large language models with automated reasoning, a branch of computer science that uses mathematical logic to prove or disprove how a system behaves. AWS says it has found more than 800 bugs across 22 popular open source projects, and it is now opening access to a limited group of customers.

The company calls the project Code Confidence. Its target is a class of bugs that even the strongest AI models tend to miss.

What the 800 bugs look like

The bugs range from complex race conditions to thread-safety problems. AWS says the effects run from losing a few bits of data to taking an entire system offline. It shared fixes with the maintainers of the projects it scanned.

One example is a performance profiling library popular in the Rust community. Project C2 found nine local thread-safety bugs there, including one that could make the reporting thread panic and lose later data. AWS reports similar bugs in widely used open source database and storage engines, sometimes on a single machine and with no failures occurring.

AWS is also pointing the technique at its own business-critical services, including Amazon Aurora, Amazon DynamoDB and Amazon Elastic Block Store.

Why rare bugs get worse at scale

AWS says a one-in-a-million error showed up a few times a second on its infrastructure back in 2015. Even a one-in-a-million event happens a thousand times when it gets a billion chances. A little over ten years later, the company says those errors occur thousands of times a second, and it expects AI agents to push the number up further.

These aren’t the vulnerabilities attackers use to break in or steal data. They still matter. AWS says they cluster in error-handling and failure-recovery code. That code runs rarely, but distributed systems exist precisely to tolerate failures, so it carries the core promise of the software when it does run.

Why models alone fall short

AWS argues that distributed, concurrent and multithreaded systems behave like a shuffled deck of cards. There are about 8×10^67 ways to order 52 cards. Paxos, the protocol that gets multiple machines to agree on a value, can run one round of agreement between three machines in over 90,000 distinct orders. Allow for lost packets, retries and duplicates, and the count grows exponentially.

No human reviewer can consider all of those orderings. AWS says that even with frontier models, agents can’t reliably diagnose and fix subtle distributed-systems bugs, because there are too many variables and sequences to weigh. Existing tools mostly rely on known patterns, as static analysis and security scanners do, or on a model’s raw judgment, as AI code review does.

How the approach works

Project C2 reads the code and supporting documentation to build a picture of what the system is supposed to do. It then tries to prove that the code as written matches that intent. A mismatch means one of two things: the inferred intent was wrong and needs another pass, or there is a real bug.

When it finds a bug, it builds a test that triggers it in the actual implementation, so the finding isn’t just a misunderstanding. It rates the severity. Then it develops and tests a fix, and tries to prove the fix correct.

The proofs rely on mathematical tools such as the Lean theorem prover. AWS compares this to knowing the Pythagorean theorem holds without testing every triangle: a model-written proof can cover all orderings without running each one. The company says it has applied automated reasoning at scale for more than ten years and added retries, guardrails and parallelization to make the service efficient.

Who can use it

AWS says you don’t need expertise in AI or automated reasoning, and that the service can examine anything from a single library to a whole distributed system. Interested customers can sign up for access, and AWS plans to widen availability as it onboards companies.

The company says it chose a gradual rollout on purpose. For maintainers of open source projects, the immediate effect is a batch of reported fixes. For everyone else, the open question is how well the technique holds up outside AWS’s own systems once more customers run it on their code.

Source: Amazon News

Written by

Saksham Bhargava

Saksham Bhargava runs Alteroid and has been writing about consumer technology for over five years, covering iPhone, Android, Windows, AI tools and gaming. With an MCA and six years of hands-on web development experience, he tests the features he writes about on his own devices and focuses on clear, practical guides that solve real problems. Away from the screen, he enjoys travelling to places most tourists skip.