When you send an encrypted message, you trust code that you will never see. The Signal protocol, named after the well-known messaging app, protects billions of conversations every day, in Signal but also in other applications such as Google Messages. But how can you be sure that this code does exactly what it promises, and nothing else?
On Tuesday 10 November, Google DeepMind offered a spectacular answer. Its AI agents mathematically proved several security guarantees of Signal's cryptographic core, in around four weeks. Work that, according to DeepMind, would have taken teams of experts years.
Verifying is not testing
Usually, software is checked by testing it: thousands of situations are tried, and you watch whether it behaves correctly. But a test proves nothing for the cases you have not tried. A flaw can hide in case number one million.
Formal verification works differently. It proves, as in mathematics, that a property holds in every possible case. Each step of the reasoning is checked by a program, here Lean, which lets no approximation through. The problem is that these proofs are extraordinarily long and difficult to write. That is why, until now, they were reserved for small pieces of software.
From blueprint to reality
The most important contribution of this work lies elsewhere. Until now, the protocol was most often verified on paper, that is, its design. Yet between the blueprint and the code actually installed on phones, errors can creep in. DeepMind's proofs cover the compiled code running on devices. They bridge this gap between theory and practice.
Among the properties proved, DeepMind cites for example the protection of messages before and after a device has been temporarily compromised.
Who does what?
| Party | Its role |
|---|---|
| The human experts | They decide what needs to be proved and translate Signal's security goals into mathematical statements, which they review one by one |
| The AI agents | They write the proofs, then audit them themselves and flag around 1% of the code to the humans for review |
| Lean | It mechanically checks everything else, trusting no one |
This division of labour is essential. The AI does not decide what matters: the humans set the rules of the game. It does the longest work, and Lean checks that it has not made a mistake.
The reintroduced-flaw test
To make sure their system really detects problems, the researchers reintroduced into an isolated copy of the code two real flaws, discovered and fixed in the past. In both cases, the system produced a machine-checked proof that the modified version was not safe.
"Using AI agents to translate real code into valid Lean theorems is a major step forward," said Ehren Kret, Signal's chief technology officer. According to Google, the work was carried out with Gemini 4 Carbon, its most powerful model.
The protocol was designed in 2013 by the American cryptographer Moxie Marlinspike and by Trevor Perrin, for an app that would become Signal. Since 2018, the messaging service has been run by a non-profit foundation, set up with Brian Acton, one of the co-founders of WhatsApp, who endowed it with 50 million dollars. Its protocol has since been adopted by many other applications, making it one of the most widely used encryption systems in the world.
What needs qualifying
It is not the whole application. The proofs cover the cryptographic core of the protocol and certain selected guarantees, not every line of the Signal application.
The figures vary. The agents produced several million lines of proof in Lean. The DeepMind page refers at times to more than three million lines, at times to more than six million.
The "firsts" are claimed by DeepMind. The company presents this work as the first verification of this scale for such a widely used protocol. It has, however, published its specifications and its proofs, which will allow independent specialists to examine them.
Why it matters
On Sunday, we reported how DeepMind AI agents had shaken an old internet lock, RSA 1024 bits. This week, other agents from the same company are proving the soundness of a modern encryption system. Both stories tell the same thing: AI is becoming a central player in computer security, for attacking as well as for defending.
DeepMind already imagines applying the method to other critical software, such as that of medical devices or power grids. For now these are only leads. But if they materialise, we could move from a world where we hope the code is safe to a world where we demonstrate it.