Google DeepMind's AlphaProof Code, a team of AI agents, mathematically proved key security properties of the actual code behind Signal's encryption protocol. Google DeepMind says the work took four weeks, a task that historically takes expert teams years.
Formal verification means mathematically proving that code behaves correctly. Google DeepMind says the agents, powered by Gemini, generated over six million lines of Lean, a computer language whose checker confirms proofs automatically. Humans reviewed every formal specification of Signal's security goals. The agents then audited their own proofs and flagged about one percent of the codebase for human review.
Most protocol verification stops at the design level. Google DeepMind says these agents proved the compiled code meets properties such as keeping messages protected before and after a device is temporarily compromised. It calls this the first formal verification of a widely deployed protocol's implementation by any method.
To test the system, researchers reintroduced two previously fixed real bugs into an isolated copy of Signal's code. In both cases, AlphaProof Code produced a machine-checked proof that the buggy version was insecure. Signal's chief technology officer, Ehren Kret, called the use of AI agents to translate live code into Lean theorems a major breakthrough.
Source: Formal Verification of Signal’s Protocol with Gemini — Google DeepMind.