How did AI agents prove Signal's encryption code is mathematically sound?
Google DeepMind researchers used a new agentic framework called AlphaProof Code to formally verify the core cryptographic implementation of the Signal protocol. The system generated over six million lines of Lean proofs in four weeks, a task that historically takes expert teams years, and the artifacts are being open-sourced for community use.
What the system actually verified
Signal's protocol protects billions of private conversations in apps like Signal and Google Messages. Until now, formal verification of such protocols stopped at the design level — mathematical models of how the protocol should work. AlphaProof Code went further. It proved that the actual compiled code running on devices fulfills key security properties, including keeping messages protected before and after a device is temporarily compromised.
The gap between design and implementation is where real-world vulnerabilities often hide. Bridging that gap makes the proofs vastly more complex.
How the verification worked
AlphaProof Code is a multi-LLM agentic framework. Human experts collaborated with models to translate Signal's security goals into formal mathematical specifications, reviewing every one. Agents powered by Gemini Carbon then did the proofs, generating over six million lines of Lean. Lean is a computer language that mathematically proves the accuracy of code.
The agents audited their own work and highlighted areas needing a second look by a human — just one percent of the codebase. Because Lean automatically checks the rest, experts could focus their review where human judgment matters most. The entire process took four weeks.
What the bug tests showed
To confirm the system can distinguish correct code from buggy code, researchers reintroduced two real, previously fixed bugs into an isolated version of Signal's code. In both cases, the system produced a machine-checked proof that the buggy version was insecure.
This demonstrates the framework does not simply rubber-stamp whatever code it receives. It actually verifies the implementation against the specification.
What this means for other software
Cryptographic protocols underpin nearly all digital communication, from online banking to web browsing. A single flaw can expose millions of people at once. Verifying Signal's core cryptography lays groundwork to secure other vital systems — medical device firmware, power grid software, critical infrastructure.
Scaling these techniques requires continued research. Paired with automated defense agents like CodeMender, formal verification can help counter the speed and scale of modern cyber threats to create software with mathematical proof that its protections work. The formal verification artifacts are being open-sourced for community use.
The sources this article was written from
- "DeepMind blog post: Introducing AlphaProof Code: a breakthrough in verifying complex software at depth
https://deepmind.google/blog/introducing-alphaproof-code/"