DeepMind's AlphaProof Code Formally Verifies Signal's Cryptographic Protocol
Google DeepMind has announced a breakthrough in software security: AI agents guided by researchers have mathematically proven key security properties of the code underlying the Signal protocol, the encryption technology that protects billions of private conversations in apps like Signal and Google Messages [1].
The work was done using AlphaProof Code, a multi-LLM agentic framework that splits formal verification the way a research team would. Human experts collaborate with AI to decide what to prove, then AI agents powered by Gemini Carbon do the actual proofs, generating over six million lines of Lean, a programming language that mathematically proves the accuracy of code [1].
Formal verification, mathematically proving code runs correctly without flaws, is the highest standard of security assurance. It has traditionally been so labor-intensive that most protocol verification stops at the design level. AlphaProof Code went further, proving that the compiled code fulfills key security properties down to the exact code running on devices [1].
The verification process took just four weeks, a task that historically takes expert teams years. After the agents completed the proofs, they audited the work and highlighted areas needing human review, only one percent of the codebase. The Lean checker automatically verified the rest, letting human experts focus their judgment where it mattered most [1].
To confirm that AlphaProof Code 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 [1].
Ehren Kret, Chief Technology Officer of Signal, called the work a major breakthrough. "Using AI agents to translate live code into valid Lean theorems is a major breakthrough. As AI-driven security threats grow, rigorously verifying the Signal protocol implementation gives us even greater confidence in our code's privacy guarantees," he said [1].
The implications extend beyond messaging apps. DeepMind suggests the same techniques could secure medical device firmware, power grid software, and other critical infrastructure. As AI-driven cyber threats grow more sophisticated, the ability to mathematically verify production code at scale may become one of the most important defensive tools available [1].
Sources
[1] Google DeepMind: AlphaProof Code, a breakthrough in verifying complex software at depth