DeepMind team proves Signal secure
Google DeepMind researchers used a multi-agent AI framework to formally verify Signal's post-quantum handshake and Triple Ratchet.
A team of researchers at Google DeepMind has completed a formal verification of Signal's messaging security, a task that required coordinating human-written specifications with machine-generated proofs across 6.5 million lines of Lean code. The work centers on Signal's post-quantum PQXDH handshake and Triple Ratchet, and it validates the design of libsignal's forward secrecy, authentication, post-compromise security, and handshake secrecy.
The effort was conducted with AlphaProof Code, a multi-agent framework for formal software specification and verification. According to the DeepMind team, it marks the first time AI has helped devise a proof that links protocol-level security guarantees to a cryptographic implementation.
How the proof pipeline works
AlphaProof Code is not a single model producing a single answer. It relies on a human-guided agent that writes a Lean specification, assesses machine code semantics, and crafts an agent-authored proof that the Lean kernel checks against the specification.
The process begins with turning Signal's security goals into a human-reviewed mathematical specification. Based on that spec, the researchers assigned Gemini Carbon agents to generate Lean code proving the correctness of the libsignal implementation. After generating 6.5 million lines of Lean code, the agents undertook an auditing pass and flagged bits that required human review.
In this instance, the verification covered Signal's post-quantum PQXDH handshake and Triple Ratchet. The team behind the work includes Swarat Chaudhuri, Andrew Ferraiuolo, Anton Kovsharov, Tej Chajed, Sam Schlesinger, Karn Seth, Jonathan Katz, Charles Sutton, and Pushmeet Kohli.
A challenge issued in April
The Signal verification did not emerge in a vacuum. The Beneficial AI Foundation issued a challenge in April to formally verify the Signal protocol and Signal app with Lean. The DeepMind team's work represents a step toward that goal.
The result is theoretical in that it assumes perfect cryptography and doesn't guarantee the computational secrecy of bytes. But the team frames it as a meaningful assertion of correctness.
It's a system that is fundamentally built for human AI collaboration.
— Swarat Chaudhuri, research scientist at Google DeepMind and a professor at the University of Texas at Austin
The hard part is the specification
Chaudhuri told The Register that traditionally you start proving theorems with well-defined problems formulated by a mathematician that get submitted to an AI agent for proof. In this case, the researchers had to figure out what to prove.
In formal methods, we always had this belief that verification is the hard bit. There's thirty or forty years of work on how to scale up verification. Now we are able to do that. So now the question is what are we verifying? … That process is fundamentally human-in-the-loop, but we devised a process of trying to scale it up to the extent possible with AI.
That shift in emphasis is central to how the team describes its contribution. The researchers note in their paper, "AlphaProof Code: Verifying Signal's Security at the Machine-Code Level," that formal verification used to require heroic efforts. Formally verifying the seL4 microkernel took 20 person-years, while developing the verified CompCert C compiler took six years.
By contrast, the Signal work still took four weeks for a team of five people and, according to Chaudhuri and his colleagues, "quite a few tokens."
What the numbers say
- 6.5 million lines of Lean code generated by Gemini Carbon agents
- 4 weeks of work by a team of 5 people for the Signal verification
- 20 person-years to formally verify the seL4 microkernel
- 6 years to develop the verified CompCert C compiler
- The Beneficial AI Foundation issued its Signal challenge in April
The dream is to scale up
The team believes AlphaProof Code can drastically reduce the cost of formal verification, though the Signal work still required substantial human effort and compute. Chaudhuri described the ambition in broad terms.
The dream is definitely to scale this up. So you know there's been this rise in offensive AI capabilities. There are a lot of insecure systems around the world, and they're going to be exploited.
So what we really need to do is to apply this kind of technology to code at large all over the world and figure out what is it that you want to guard against? How do you write those properties, how do we specify those properties? That's going to be super important, but we have to figure that out.
Pointing to a related DeepMind project, AlphaProof Nexus, which is focused on mathematics, Chaudhuri said the next step is to apply this technology during the software design process – not just to cryptographic protocols but code in general.
We really believe that the next frontier is not going to be proof but specification in this kind of research. And so that's why we took on this domain where that was actually a hard problem. And I think that we have some really good insights now about how to go about this, although not the last word by any means.
What the verification actually covers
The Signal verification is specific to the post-quantum PQXDH handshake and Triple Ratchet, and it validates the design of libsignal's forward secrecy, authentication, post-compromise security, and handshake secrecy. The proof operates at the machine-code level, meaning it connects protocol-level security guarantees to the cryptographic implementation rather than stopping at an abstract model.
The theoretical limits are worth stating plainly: the result assumes perfect cryptography and does not guarantee the computational secrecy of bytes. Those caveats come from the researchers themselves, and they matter for anyone reading the result as a blanket assurance about Signal's security.
The work also involved an auditing pass after the 6.5 million lines of Lean code were generated, with agents flagging bits that required human review. That step is part of the human AI collaboration Chaudhuri described as fundamental to the system.
Human oversight remains in the loop
Despite the volume of code generated by Gemini Carbon agents, the process kept human judgment at several points: writing the Lean specification, reviewing it, and auditing flagged sections after generation. Chaudhuri characterized the specification process as fundamentally human-in-the-loop, with AI used to scale it up to the extent possible.
The researchers' paper frames the prior cost of formal verification as a barrier, citing the seL4 microkernel's 20 person-years and CompCert's six years of development. The Signal work's four weeks for five people is presented as a contrast to those figures, though the team does not claim the approach eliminates human effort.
Why it matters
The Signal result suggests that formal verification, long treated as a heroic effort reserved for a handful of projects, may become more tractable when AI agents generate and audit proofs under human-written specifications. If the cost of verification falls as the team hopes, more software projects could attempt machine-checked proofs of correctness that were previously out of reach. For users of secure messaging, the immediate takeaway is narrower: the libsignal implementation behind Signal's post-quantum handshake and Triple Ratchet now carries a machine-checked argument for its forward secrecy, authentication, post-compromise security, and handshake secrecy, with the caveat that the proof assumes perfect cryptography and does not guarantee computational secrecy of bytes. For the broader industry, the researchers' emphasis on specification over proof suggests that the harder problem may be deciding what to verify, not how to verify it.
Sources
- The Register Original source
Continue Reading
AI backdoors that wake on hardware
CertiK researchers say identical model weights can behave differently on a Mac and on an NVIDIA A100, letting a supplier hide a backdoor that only fires in deployment.
ARTEX AI agent can be tricked into hacking itself
Researchers say a fake DNS record and a phony Bash script were enough to coax the AI pentesting tool into opening a reverse shell on its own host.
AI agents fall for digital decoys
Deception technology is being retooled to trap AI agents by exploiting their persistence and token budgets, experts tell CSO.