← Back to blogs

DeepMind AI Proves Signal Encryption With Math

Google DeepMind used AI agents to mathematically prove key security guarantees in Signal's encryption code in four weeks, a first for a widely used protocol.

Google DeepMind has used AI agents to mathematically prove that the code behind Signal's encryption does what it promises. The work, announced on November 10, 2026, is the first time a widely used encryption protocol has been formally verified at the level of the compiled code that runs on real devices.

What DeepMind proved

The project used a new system called AlphaProof Code. It checked libsignal, the open-source library that runs the Signal protocol, the same encryption that protects chats in Signal, WhatsApp and Google Messages. The proof covers the post-quantum PQXDH handshake, which starts a private conversation, and the Triple Ratchet, which changes the encryption key for every message. It confirms four key protections: messages stay secret, the other side is who it claims to be, past messages stay secret even if a key leaks later, and a conversation recovers its security after a compromise. DeepMind says this is the first time the implementation of a widely used protocol has been formally verified by any method, with or without AI.

How AI did it in four weeks

Formal verification is different from testing. A test checks some inputs. A formal proof shows the code meets a written specification for every input, and a machine checks the proof line by line. Human experts worked with AI models to turn Signal's security goals into formal specifications in Lean, a language built for mathematical proofs. A person reviewed every specification. Then teams of agents powered by Gemini Carbon wrote the proofs, producing about 6.5 million lines of Lean code. The agents then audited their own work and flagged about one percent for a second look by a human. The whole job took four weeks for a team of five researchers. By comparison, formally verifying the seL4 microkernel took about 20 person-years, and the verified CompCert compiler took six years.

The test that caught old bugs

To check that the system can tell good code from bad code, the team reintroduced two real bugs that had already been fixed in older versions of Signal. In both cases, AlphaProof Code produced a machine-checked proof that the buggy version was insecure. On the current code, the analysis found no new flaws in the parts it examined. Signal's chief technology officer, Ehren Kret, said the work gives the company even greater confidence in its code's privacy guarantees.

What the proof does not cover

The result is not a certificate that Signal or WhatsApp is unbreakable. The proof covers one-to-one sessions in one version of the library, libsignal v0.105.4, compiled for ARM Linux inside a test harness. Group chats, key generation, the full mobile app and server-side code were not checked. The proof also assumes the low-level cryptographic building blocks are secure, rather than proving that too. DeepMind has open-sourced the specifications and proofs so other researchers can build on them.

Why it matters

The same method could bring elite security assurance to other critical software, from medical device firmware to power grid systems. DeepMind says the next step is to apply the technique earlier, during the software design process, and to move beyond cryptographic protocols to code in general. As AI-driven attacks get faster and cheaper, proving that important code is correct may matter as much as writing it in the first place.

Sources

- Google DeepMind - https://deepmind.google/blog/introducing-alphaproof-code/ - The Register - https://assets.theregister.com/2026/11/10/20266/

Source: Google DeepMind ↗

LET'S CONNECT

Start a conversation.

See our Privacy Policy.

Your inquiry will be saved for the Histic team to review.

EVENT REGISTRATION

See our Privacy Policy.