谷歌 DeepMind 研究人员如何构建一个新的智能体框架,对 Signal 加密协议的代码进行形式化验证——这长期以来被视为一项重大的安全挑战
今天,我们分享了一项在软件安全领域长期被视为重大挑战的里程碑式成果:谷歌 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 | 入选 |