News

DeepMind’s AlphaProof Code proves Signal’s encryption core down to machine code

Google DeepMind's AlphaProof Code used AI agents to write about 6.5 million lines of Lean proofs for Signal's libsignal, down to compiled AArch64 code. Here is what was proven, how agents were kept honest and what stays out of scope.

Theo · FoxAI World4 min read
18
Theo holds a shield tablet beside glowing messaging and key symbols under the Google DeepMind name.Signal, proven by AI

Conceptual cover created with AI.

Every Signal message, and many WhatsApp and Messenger chats built on related protocol designs, depends on a few thousand lines of cryptographic code doing exactly what the mathematics promises. The design of the Signal protocol had been studied for years. The code that actually runs on devices had never been proven to match it. On 10 November 2026, Google DeepMind said its new system, AlphaProof Code, closed that gap for a core part of Signal’s library.

What exactly was verified

The target was libsignal, Signal’s open-source protocol library, in version 0.105.4. The team checked the PQXDH handshake, the post-quantum key agreement that starts a conversation, and the Triple Ratchet, which combines the classic Double Ratchet with Signal’s post-quantum SPQR component. The proofs do not stop at source code: they refer to the compiled AArch64 machine code of a libsignal-cli test binary built with a standard Rust compiler. The scope is one-to-one sessions.

Theo gestures toward two phones and a lock among security symbols, with a laptop and open book below the Google DeepMind name.
AI-generated conceptual illustration.

How formal verification with Lean works here

Formal verification means proving, step by step, that a program meets a precise mathematical specification, instead of testing a sample of inputs. Lean is a proof assistant: a language in which every proof step is checked by a small trusted kernel. Researchers worked with several AI models to turn Signal’s security goals into formal specifications, and human experts reviewed every one. Agents running on Gemini Carbon then wrote the proofs, about 6.5 million lines of Lean according to the project site. DeepMind says only about one percent of the codebase was flagged for human review, and the whole effort took four weeks, work that has historically taken expert teams years.

Which security properties were proven

The project lists forward secrecy (stolen current keys do not unlock earlier messages), post-compromise security (a session can recover its protection after a temporary compromise), handshake authentication and secrecy, resistance to key-compromise impersonation and session independence. A separate computational proof gives a concrete bound on an attacker’s advantage against message confidentiality and authenticity for classical attackers.

How the team stopped agents from gaming the proof

An automated prover has an obvious shortcut: prove an easier statement. The project blocks that path. Proof agents cannot edit the specification; they can only propose changes, which a critic agent reviews, and changes to trusted assumptions need human approval. A gatekeeper agent compares every theorem statement against a held-out copy and checks that the proof uses only standard axioms. As a test, the team reintroduced two bugs that Signal had fixed in the past. In both cases the system produced a machine-checked proof that the buggy version was insecure.

What the proof does not cover

The result is narrower than a headline might suggest. Group messaging is left for future work. The proofs cover the libsignal-cli harness, not the Signal Android or iOS apps. Cryptographic primitives such as AES-CBC and HMAC are treated as secure building blocks rather than proven, and the computational proof does not cover quantum attackers. The roughly 26,000 lines of trusted specifications and machine semantics still need expert review.

What Signal says and what comes next

Signal’s CTO Ehren Kret said the approach gives the team “even greater confidence in our code’s privacy guarantees.” DeepMind has open-sourced the verification artifacts and plans to pair the method with its CodeMender defence agent and to try it on systems such as medical device firmware and power grid software.

Editor’s assessment

The fact: a widely used cryptographic implementation now has machine-checked proofs down to the instructions a phone executes. The inference: the bottleneck in security assurance shifts from writing proofs to writing correct specifications. That is why the guardrails matter as much as the 6.5 million lines. For you as a user nothing changes overnight, and the app layer remains outside the proof. Which door are we opening? A useful one, as long as the boundary between what was proven and what was assumed stays visible.

Ask AI about this article

Opens in a new tab with the question filled in.

Sources and research

Written by FoxAI World. The cover and illustrations are AI-generated conceptual artwork.

Your favourites

This list stays in this browser on your device. No account is needed, and other visitors cannot see it.

Use a story’s bookmark button to add your first favourite.