AlphaProof 代码
AlphaProof Code

原始链接: https://deepmind.google/blog/introducing-alphaproof-code/

Google DeepMind 使用 AlphaProof Code 这个多 LLM 智能体框架,正式验证了 Signal 协议实际编译代码(而非仅设计)的关键安全属性。人类专家与 AI 将安全目标翻译为形式化规范;Gemini Carbon 智能体生成了超过六百万行 Lean 证明;Lean 检查了大部分,人类审查了约 1% 被标记部分。这耗时四周,而非数年。这是 AI 对广泛部署的密码协议进行如此深度形式化验证的首次,也是任何方法首次在实现层面进行验证。它证明了包括入侵后安全性在内的保护。该系统通过重新引入两个真实错误并证明存在错误的版本不安全来验证。这提高了软件安全保证的标准。

Hacker News 上一篇帖子链接到 DeepMind 的 AlphaProof Code,获得 24 分和五条评论。评论者推测成本,询问形式化证明与停机问题的关系,称赞 Signal 的代码库形式化安全及其工程师,提到 Sundar Pichai 被感谢,并开玩笑说 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 security 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.

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.

联系我们 contact @ memedata.com