IT Brief Australia - Technology news for CIOs & IT decision-makers
Australia
AWS launches Project C2 to spot rare software bugs

AWS launches Project C2 to spot rare software bugs

Thu, 3rd Dec 2026 (Today)
Joseph Gabriel Lagonsin
JOSEPH GABRIEL LAGONSIN News Editor

AWS has launched Project C2, an artificial intelligence service designed to find rare software bugs, and is opening it to a limited number of customers.

Project C2, short for Project Code Confidence, combines large language models with automated reasoning, a branch of computer science that uses mathematical logic to analyse system behaviour. AWS has already used the approach on 22 open-source software projects, finding more than 800 bugs and sharing fixes with maintainers.

AWS is also using the technique internally on services including Amazon Aurora, Amazon DynamoDB and Amazon Elastic Block Store. The aim is to improve the resilience of systems that run at large scale, where unlikely errors can still occur frequently because of the volume of operations.

How it works

The system is intended to address bugs that often escape conventional testing and code review, including race conditions, thread-safety issues and failures in distributed systems, where the order of events across multiple machines can produce faults that are difficult for developers to predict.

Standard tools typically rely on known patterns or model judgement, which can miss unusual edge cases. Project C2 instead reads code and related documentation, builds a view of how a system is meant to behave, and then tries to prove whether the implementation matches that intent across many possible execution paths.

If the system detects a mismatch, it either revises its understanding of the intended behaviour or identifies a bug. It then creates a test to reproduce the issue in the real implementation and can assess the bug before developing and testing a fix.

The technique also uses mathematical proof tools including the Lean theorem prover. This allows it to reason across millions or billions of possible cases without testing every sequence one by one.

Open-source findings

AWS gave several examples from its work on open-source software. In one case, it examined a performance profiling library used by Rust developers and found nine local thread-safety bugs, including one that could cause the reporting thread to panic and lead to later data loss.

It also described a flaw in a widely used in-memory database involving failed attempts to write data durably to disk. A background retry process could clear an error flag and allow new writes to continue even though earlier data might still not have been written properly. If the server later rebooted, that gap could lead to data loss.

Another example involved an open-source distributed key-value store built on the Raft consensus protocol. The bug centred on the handling of leases by a server that had lost its leadership role but continued processing a batch of expired leases using outdated information. In some cases, that could allow actions to be taken on resources that had already been reassigned under a new leader.

AWS said this type of error could create conflicting activity in a managed cluster. It gave the example of a setup expected to have one payment processor ending up with two, creating a risk of customers being charged twice.

Scale problem

AWS argued that the difficulty in finding such faults comes from the sheer number of possible states in concurrent and distributed software. Even a protocol involving agreement between three machines can produce more than 90,000 unique orders in a single round, with that figure rising sharply when packet loss, retries and duplicates are introduced.

That makes these bugs both rare and persistent. They often sit in code paths that handle errors and failures, which are used less frequently but are critical when systems are under stress or infrastructure components break down.

AWS also linked the issue to the wider use of AI agents in operations. As more organisations automate routine tasks, reducing bug density and improving software reliability becomes more important because software faults can be repeated at scale.

Marc Brooker, Distinguished Engineer and Vice President, AWS, and Soonho Kong, Principal Applied Scientist, AWS, said: "Our point isn't to pick on these high-quality projects. It's to highlight the subtlety of these bugs. We have run this on hundreds of codebases and found similar bugs in nearly all of them."