Google DeepMind 研究人员如何构建一个新的智能体框架,对 Signal 加密协议的代码进行形式化验证——这长期以来一直被视为一项宏大的安全挑战
今天,我们分享了一项在软件安全领域长期被视为宏大挑战的里程碑式成果:Google DeepMind 的研究人员指导 AI 智能体对支撑 Signal 协议的实际代码的关键安全属性进行了数学证明。Signal 协议是保护 Signal 和 Google Messages 等应用中数十亿次私密对话的技术。
这一突破性发现是通过 AlphaProof Code 实现的,这是一个用于形式化验证的新型智能体框架,其验证深度前所未有,结合了人类专家与 AI 智能体的优势。形式化验证——即通过数学方法证明代码无误运行——是最高级别的安全保障标准;然而,它既困难又往往需要耗费大量人力。
我们的工作首次展示了 AI 以如此深度用于形式化验证一个广泛部署的加密协议。这也是首次通过任何方法(无论是否使用 AI)对像这样广泛部署的协议的实现进行形式化验证。
我们如何验证 Signal
AlphaProof Code 是一个多大型语言模型(LLM)智能体框架,它将形式化验证的工作拆分得像研究团队一样运作:人类专家与 AI 合作决定要证明什么,而一组 AI 智能体负责执行证明。
首先,我们的研究人员与多种模型协作,将 Signal 的安全目标转化为正式数学规范,并由人类专家逐一审查。在此基础上,由 Gemini Carbon 驱动的智能体进行证明,生成了超过六百万行的 Lean 代码。Lean 是一种计算机语言,用于从数学上证明代码的准确性。
接下来,智能体对证明过程进行了审计,并标出了需要人类二次检查的区域——仅占整个代码库的百分之一,极大地节省了时间。由于 Lean 会自动检查其余部分,我们的专家可以将审查重点放在最需要人类判断力的地方。
加密协议支撑着几乎所有的数字通信,从在线银行到网页浏览,一个单一的漏洞就可能同时暴露数百万人的信息。这就是为什么专家们花了数十年时间来形式化分析这些协议的原因。
但大多数协议验证仅停留在设计层面。我们的智能体更进一步,证明了编译后的代码能够满足关键的安全属性——例如在设备暂时受到侵害前后保持消息受保护——直至设备运行的确切代码。由于现实世界中的漏洞往往隐藏在设计实现之间的差距中,弥合这一差距使得这些证明变得极其复杂。
即便面对如此高的复杂度,我们的验证过程仅用了四周时间——而历史上这需要专家团队花费数年时间——这证明了 Signal 的核心加密代码确实提供了我们专家所指定的安全防护。
为了确认 AlphaProof Code 能够区分正确代码和有缺陷的代码,我们将两个真实存在且已修复的漏洞重新引入到 Signal 代码的一个隔离版本中。在这两种情况下,系统都生成了经过机器检查的证明,表明有缺陷的版本是不安全的。
How Google DeepMind researchers built a new agentic framework that formally verified the code of Signalâs cryptographic protocol â long considered to be a grand security challenge
Today, weâre sharing a milestone in software security long considered to be a grand challenge: Google DeepMind researchers guided AI agents to mathematically prove key security properties of the actual code underlying the Signal protocol, the technology that protects billions of private conversations in apps like Signal and Google Messages.
This breakthrough discovery was made using AlphaProof Code , a novel agentic framework for formal verification at unprecedented depth that combines human expertise with AI agents. Formal verificationâmathematically proving code runs correctly without flawsâis the highest standard of security assurance; however, it is difficult and often labor-intensive.
Our work marks the first time AI has been used to formally verify a widely deployed cryptographic protocol at this depth. It's also the first time the implementation of a widely deployed protocol like this has been formally verified by any method, with or without AI.
How we verified Signal
AlphaProof Code is a multi-LLM agentic framework that splits the work of formal verification the way a research team would: human experts work with AI to decide what to prove, and a group of AI agents does it.
First, our researchers collaborated with a mix of models to translate Signalâs security goals into formal mathematical specifications, with human experts reviewing every one. From there, agents powered by Gemini Carbon did the proofs, generating over six million lines of Lean, a computer language that mathematically proves the accuracy of code.
Next, the agents audited the proof and highlighted areas that needed a second look by a human â just one percent of the codebase, a massive time savings. Because Lean automatically checks the rest, our experts could focus their review where human judgment matters most.
Cryptographic protocols underpin nearly all digital communication, from online banking to web browsing, and a single flaw can expose millions of people at once. That's why experts have spent decades formally analyzing them.
But most protocol verification stops at the design level. Our agents went further, proving that the compiled code fulfills the key security properties â such as keeping messages protected before and after a device is temporarily compromised â down to the exact code running on devices. Because real-world vulnerabilities often hide in the gap between design and implementation, bridging this gap makes these proofs vastly more complex.
Even at this complexity, our verification process took just four weeks â a task that historically takes expert teams years â proving that Signal's core cryptographic code delivers the security protections our experts specified.
To confirm that AlphaProof Code can tell correct code from buggy code, we reintroduced two real, previously fixed bugs into an isolated version of Signal's code. In both cases, the system produced a machine-checked proof that the buggy version was insecure.
| 刊期 | 得分 | 排名 | 结果 |
|---|---|---|---|
| 2026-11-22 | 9.4 | 19 | 入选 |
| 2026-11-21 | 9.4 | 31 | 未入选 |
| 2026-11-20 | 9.4 | 28 | 未入选 |
| 2026-11-19 | 9.4 | 36 | 未入选 |
| 2026-11-11 | 11.45 | 16 | 入选 |