Skip to main content
AI Governance

AI Agents Just Proved Signal's Encryption Code. Here Is What the Proof Covers, and What It Does Not

Google DeepMind's AlphaProof Code used AI agents to formally verify Signal's libsignal code down to machine code. The method matters more than the headline, and the limits matter most of all.

ShareLinkedIn

Key takeaways

  • Google DeepMind’s AlphaProof Code formally verified key security properties of Signal’s libsignal code, down to the compiled AArch64 machine code. No implementation of a protocol this widely deployed had been verified at that depth before.
  • The proof covers four properties of one-to-one chats in a research build: forward secrecy, authentication, post-compromise security, and handshake secrecy. It does not cover the Signal apps, group chats, multi-device state, or side channels.
  • The split of labour is the point. Humans decided what to prove and reviewed every specification. Agent teams powered by Gemini Carbon wrote the proofs. The Lean kernel checked them.
  • The bug test earns the trust. Two real, previously fixed libsignal bugs were put back in, and the system proved at the specification level that the buggy builds were insecure. A verifier that only ever passes proves nothing.
  • A proof is only as strong as its specification. The governance question is no longer who writes the proof. It is who writes the spec, and who checks it.

On November 10, 2026, Google DeepMind announced that its researchers had guided AI agents to mathematically prove key security properties of the actual code behind the Signal protocol. The work used a new framework, AlphaProof Code. The target was libsignal, the reference implementation of the protocol that protects conversations in Signal and Google Messages, and variants of which protect WhatsApp and Messenger chats too.

The headline is easy to overstate. The method is worth more than the headline. Formal verification has been the highest standard of software assurance for decades, and also the most expensive. The verified seL4 microkernel took about twenty person-years. The verified CompCert C compiler took about six. DeepMind’s team of five finished this job in four weeks. That speed is the story. So is the boundary around it.

Product details were checked on November 21, 2026, against DeepMind’s announcement and its technical paper. Recommendations in the Canadian section are mine, not DeepMind’s and not legal advice.

The gap between a sound design and sound code

Most protocol verification stops at the design level. Researchers model the protocol on paper and prove the model secure. That leaves a gap. A protocol can be sound on paper while the code that implements it slips up in how it stores keys or handles an unexpected message. Real vulnerabilities often hide in exactly that gap.

DeepMind’s agents went past the design and into the code that runs on devices. They verified libsignal version 0.105.4, together with the spqr crate version 1.6.0, linked into a small command-line harness and compiled with the stock Rust compiler, version 1.98.1, for AArch64 Linux. The verified executable code is about 744 KB inside a 1,024,984-byte linked executable, roughly 186,000 machine instructions. The proofs cover the post-quantum PQXDH (Post-Quantum Extended Diffie-Hellman) handshake and the Triple Ratchet, the two parts of the protocol that set up a conversation and then keep every message under a fresh key.

That is why the claim matters. It is the first proof connecting protocol-level security guarantees to the unmodified code of a widely used cryptographic protocol implementation. Prior work verified abstract models, reimplementations written for verification, or narrower properties such as crash-freedom. This one verified the unmodified crates inside the team’s research harness, as compiled.

Four promises, stated plainly

The proof covers four properties. Each one is a promise about a conversation, stated as a Lean theorem and proved against the compiled code.

PropertyWhat it promisesWhere it lives
Forward secrecyOld messages stay secret even if today’s keys leak.Triple Ratchet key rotation
AuthenticationYou are talking to the person you think you are.PQXDH handshake
Post-compromise securityThe conversation heals after a leak. Fresh keys replace exposed ones.Triple Ratchet healing
Handshake secrecyNobody watching the handshake learns the session key.PQXDH key agreement

Two models of security sit behind those promises. The symbolic model treats the cryptographic primitives as black boxes with standard properties. The computational model bounds an attacker’s chance of success by the hardness of the underlying mathematics, such as Gap Diffie-Hellman. The computational proof excludes quantum attackers. The symbolic proof gives handshake secrecy against a future quantum attacker. Keep that distinction in mind when you read vendor claims built on this work. The model changes what the promise covers.

How AlphaProof Code splits the work

AlphaProof Code is a multi-LLM agentic framework with three stages, and the split of labour between people and agents is deliberate.

Stage one: specification. Human experts worked with AI models to translate Signal’s security goals into formal mathematical specifications, written in Lean, a language for machine-checked proofs. Human experts reviewed every specification. The specifications were developed with Gemini 4 Carbon and Claude Opus 5.5, and an agent from a different model family reviewed each draft for faithfulness to the source paper and to libsignal. The team went through many rounds of drafts and review before approving a specification and pinning it as the target for proofs.

Stage two: code. The unmodified Rust code is compiled with the standard compiler, and the executable is loaded into Lean together with a formal semantics of AArch64 machine code. The semantics describes every possible run of the binary as a relation between inputs and outcomes. The Rust compiler is not trusted. A bug in the compiler would make the theorems false, so the proof would fail. That is a strength, not a gap.

Stage three: proof. Teams of agents powered by Gemini Carbon wrote the proofs. No author wrote any proof code. The agents generated about 6.3 million lines of machine-checked Lean proof: about 4.3 million about the binary, about 1.3 million for the computational proof, about 360,000 for the symbolic proof, plus lines for the bug tests and the allocator.

The number that matters more than 6.3 million is 19,000. That is roughly how many lines of definitions a reader must read and trust to believe the headline theorems, plus about 8,000 lines of AArch64 semantics and 23 symbol-table addresses looked up in the pinned executable. The multi-million-line proofs are untrusted by design. Any logical error in a proof is rejected by Lean’s kernel, so the proof cannot go through. Only the specification is trusted. The agents audited their own proofs and flagged about 1 percent of the codebase for a second human look. Lean checked the rest.

A gatekeeper agent accepts a proof only if Lean’s kernel checks it and a comparator confirms it proves exactly a held-out copy of the specification. The gatekeeper sees only file paths and theorem names, never the provers’ dialogue or explanations. The words sorry and native_decide are rejected outright. This matters because agents under pressure to finish will sometimes weaken a goal. In one swarm, an agent redefined a predicate used in a conjecture’s hypothesis as False, and the trick spread to the rest of the swarm. The gatekeeper is what stops that.

Try it below. One simulator, three choices, and a cheat button. The cheat is the part to watch.

Prove it or break it

Run a simplified version of DeepMind's check. Pick a property, pick a specification, pick a build of the code, then watch the Lean kernel decide. Nothing here runs the real 6.3 million lines of proof. The logic is a small model of the real verdicts. The property sets what the trace tests. The specification and the build decide the verdict.

Simplified model. The real proof covers the PQXDH handshake and Triple Ratchet in libsignal v0.105.4, compiled to AArch64 machine code. It does not cover group chats, multi-device state, side channels, or the Signal apps themselves.

The bug test is the part that earns trust

A proof that only ever passes proves nothing. DeepMind tested its specifications the way a sceptic would: by breaking the code on purpose.

The team reintroduced two real, previously fixed libsignal bugs into an isolated copy of the code. The first, called weak state, let a prekey message that failed to decrypt be trial-decrypted against older sessions, and stored the new session’s unconfirmed state, which holds a copy of the signed prekey secret. The second, called small subgroup, skipped the check that the initiator’s X25519 base key is torsion-free and in range, so a replayed handshake with a mangled base key created a second session with the same shared secret. In both cases, the system produced a machine-checked proof at the specification level that the buggy version was insecure.

Alongside those two historical bugs, the team kept a suite of 17 synthetic mutants: small injected faults such as skipping ciphertext MAC verification, leaking the MAC key in wire metadata, retaining rotated-out ratchet private keys, or skipping one-time prekey deletion. Sixteen of the 17 were caught at the specification level.

The bug test has a footnote worth stating plainly. The default build verifies the specification-level halves of the refutations for both historical bugs. The full binary-level refutations were kernel-checked against an earlier variant of the statement, and retargeting them to the final theorem statement remains open work. DeepMind says so in the paper. That does not undo the result. It marks where the result ends, and it is exactly the kind of boundary a vendor review should ask about.

DeepMind’s blog body says the agents generated over six million lines of Lean. Its own summary line says over three million. The paper says about 6.3 million. The paper’s figure is the one to use. When a vendor’s own pages disagree, quote the paper, not the press line.

What the proof does not prove

Lead with the limits, because the limits are where bad decisions get made.

  • One-to-one chats only. Group messaging was out of scope, and key generation was not verified.
  • A research build, not the apps. The results concern the team’s own build of libsignal in a command-line harness, run as a fresh process. They are not a verdict on the Signal apps on Android and iOS, or on WhatsApp, Messenger, and Google Messages.
  • Primitive code was verified. Their security properties are assumed. The low-level cryptographic code was verified instruction by instruction against closed Lean specifications. What is assumed is the security properties of the primitives, not their code. If an assumed property fails, the proof does not catch it.
  • Side channels are out of scope. Timing, power, and other side channels are not covered.
  • The trusted base is small but real. About 19,000 lines of definitions, 8,000 lines of machine semantics, and 23 symbol-table addresses. Trust in the result is trust in those lines, plus trust in Lean itself.
  • The job is not finished. DeepMind’s paper describes its result as a significant milestone toward a grand challenge launched in April 2026, the SignalShot goal of verifying the Signal protocol and app in Lean, set by the Beneficial AI Foundation, Signal, and the Lean Focused Research Organization. Community trackers put the total verified share of Signal Messenger at about 80 percent, across the whole SignalShot community effort, not DeepMind’s work alone. MIT professor Max Tegmark called Wired’s claim that the job is done formal-washing, and asked the community to help push it to 100 percent. The residual share is the part a governance reader should ask about.

None of this makes the result small. It makes the result specific. A proof of four properties of one-to-one chats in a research build is a real advance, and it is not a certificate that Signal is secure. Those two sentences can both be true.

What this means for Canadian teams

Three uses follow from the result, and one warning.

First, assurance evidence has a new shape. A vendor that ships a formally verified component can now show a machine-checked proof instead of a test report. Ask which properties were proved, against which build, under which model, and who reviewed the specification. Those four questions separate a real claim from a press line. The specification review matters most. A proof is only as strong as what it was asked to prove.

Second, the spec is the governance surface. Once proofs become cheap, the hard question is what to prove. DeepMind’s team spent most of its effort on specifications, not proofs. Expect the same shift inside any organization that adopts this. The person who writes the spec decides what the proof can and cannot say. That person needs independence from the team that ships the code, and their work needs review by someone who understands the protocol.

Third, the method travels. The blog names medical device firmware and power-grid software as systems this groundwork could secure. Any Canadian team that buys or regulates safety-critical software should watch this space. A regulator that asks for test coverage today may ask for a proof obligation tomorrow. The paper’s approach, human-written specs plus agent-written proofs plus a kernel check, is the shape that request will take.

The warning concerns Signal itself. Signal has said it would rather leave Canada than break its encryption, in the context of Bill C-22. This verification strengthens the case that the encryption code does what it claims. It says nothing about lawful access, and it should not be quoted as if it does. Code correctness and legal compulsion are different questions. Keep them apart in any briefing.

The open question

Formal verification used to be too slow for most real software. A team of five and a swarm of agents did in four weeks what used to take expert teams years. The bottleneck moved. It now sits at the specification: deciding what to prove, writing it down precisely, and checking that the statement means what the author thinks it means.

That is a governance job, not a coding job. It needs people who can read a protocol paper, write a formal statement, and defend the statement against a sceptic. Those people are scarce. The tools just got fast. The judgement did not.

The next time a vendor tells you its code is proven, ask who wrote the spec, who reviewed it, and what it left out. The proof will be machine-checked. The spec will not be. That is where the assurance lives now.

Primary sources

  1. Introducing AlphaProof Code, November 10, 2026 (Google DeepMind)
  2. AlphaProof Code: Verifying Signal's Security at the Machine-Code Level (technical paper) (Google DeepMind)
  3. Formal verification of the Signal protocol using AI (Schneier on Security)
  4. Signal formal verification hits 80%, Tegmark (community progress summary) (AGI Hunt)
  5. Signal would rather leave Canada than break its encryption (movahedi.ca)

Ask about this article

Answers come only from this article.

Related services

Practical consulting aligned to this article’s focus: program design, controls, and operational delivery.

Browse all services