On November 10, Google DeepMind announced that, with AI's help, it had produced formal proofs of selected security properties of the real implementation of the Signal protocol. The team examined more than the encryption design on paper: it tied the proofs to the machine instructions of a program compiled from the libsignal library. In the environment described, the program should preserve message secrecy and authenticity even after certain kinds of key compromise. That bridges an important gap where a sound protocol design can fail in the code or during compilation.
When we recently wrote about agents looking for paths to root access in Linux, the task was to find particular bugs. AlphaProof Code instead helps show that selected protections work in compiled code. The authors set out the proof's scope in their technical paper.
From the first key to the next message
When Alice wants to write to Bob while he is offline, she obtains his public keys from a server. An initial PQXDH exchange derives a shared secret from those keys and fresh values. The subsequent Triple Ratchet uses it to produce new keys for later messages. An old key is discarded after use; stealing the current state should not, by itself, reveal all earlier messages retroactively. After stored session keys leak, protection for future messages may recover if a fresh, honest key exchange takes place and the attacker does not actively interfere with it.
Earlier formal analyses mostly examined a mathematical description of the protocol or code modified to make verification easier. Here the authors used the unmodified libsignal-protocol 0.105.4 and spqr 1.6.0 libraries. They connected them to a small command-line program that starts a connection and sends or receives a message, then compiled it with an ordinary Rust compiler for AArch64 Linux, the 64-bit ARM architecture. The proof follows what this particular program does with inputs, outputs, and stored state. It therefore need not assume the Rust compiler translated the source code without error; it checks the result.
Consider a normal sequence: Bob publishes public keys, Alice sends him a first encrypted message, Bob receives it and replies. The attacker then tries to deliver the first message again. The authors ran such a scenario both on the real program and in their processor model, and report the same outcome, including rejection of the replayed message. The test helps check whether the model underlying the broader proof matches the program's observed behaviour.
This matters especially for messages that arrive out of order. The library must retain older session state and deferred keys, process serialised data, and reject a forged message. Bugs can arise in those details even when the key-exchange scheme is sound. The verification therefore also asks whether a rejected operation leaves the stored state unchanged. The authors say they tracked the program from input to termination, including this handling; some low-level cryptographic operations and other called functions, however, were replaced with assumed contracts describing their behaviour.
Agents write the proof; people decide the question
AlphaProof Code first needs a specification: a precise statement of how the program may behave and a definition of the attacker it should withstand. Agents helped draft it from earlier research and the actual libsignal implementation; other agents critiqued the drafts. People decided what should be proved and approved both the wording and changes to assumptions. Teams of agents then produced proofs in Lean, whose small checking kernel verifies each logical step. A separate checking process also compares the proposition being proved against the version people approved, so an agent cannot quietly weaken it to make the job easier. The team additionally checked that the propositions' conditions can occur during honest communication. Otherwise, a proof might be logically valid while saying nothing about any real conversation.
According to the technical paper, the work produced approximately 6.5 million lines of proofs. Length alone does not establish security: what matters is whether Lean checked the right proposition. Around 26,000 lines of specifications and processor description form a trusted base whose correctness people must assess. The authors say five researchers worked on the project for four weeks. That is their figure for this attempt, not an independently measured cost or timeframe for verifying another application.
There are two forms of proof. The symbolic model treats cryptographic building blocks as ideal and, for the defined executions, establishes properties including key secrecy, authentication of the other party, and protection against disclosure of earlier messages. It also covers a scenario in which an attacker later breaks the classical key exchange; subject to further conditions, the post-quantum part of PQXDH should protect the initial secret. The computational model, by contrast, deals with bytes and the probability that a classical attacker succeeds. It asks, for example, whether the attacker can tell which of two chosen messages of equal length the program encrypted, or get a forged message accepted as genuine. Its guarantee depends on the security of the cryptographic algorithms used and a bounded number of interactions. The paper does not prove post-quantum recovery of the Triple Ratchet after a break of classical key exchange.
The authors tested whether their specification could detect known bugs. They reintroduced two previously fixed flaws into an isolated copy of the code and, according to the study, proved in Lean that the modified program fails the symbolic security claim in both cases. In one, processing a message from an older session led to storage of a weak new state containing a secret key; in the other, a public-key check was missing when establishing a session. The experiment tests the specification's strength against historical, repaired bugs.
What the result says about Signal
The work verifies communication between two parties in the described libsignal-cli program, under specified conditions for key management, memory, and inputs. Cryptographic algorithms, some library functions, and output operations enter the proof through assumed contracts; the symbolic model also allows an exception when values collide. Group conversations, multiple devices, server behaviour, protection of the phone itself, and the final builds of the Android or iOS apps are not directly covered. The authors also explicitly flag limitations of their models for some forged initial messages and long sessions.
The researchers have published the proofs and specifications for expert scrutiny. We did not replay the proofs ourselves or independently audit their assumptions. The result shows that AI can handle an enormous volume of formal work over a production library: connect selected protocol security properties to compiled code and have that connection checked by a machine.

