后量子密码学仍然安全

11 月 30 日,Anthropic 发表了几篇关于基于格的密码学的数学论文。主论文揭示了新的策略,可能有助于攻克支撑广泛使用的后量子密码算法 ML-DSA 和 ML-KEM 的格数学难题。这项研究纯属理论性质,不会影响已部署密码系统的安全性。你的加密数据和互联网连接仍然安全,由 Cloudflare 保护的基础设施同样安全。我们始终致力于迅速推动互联网向后量子密码迁移:我们于 2019 年启动迁移,2022 年为所有网站和 API 启用了后量子加密,截至本文发布之日,流向 Cloudflare 的人类流量中有 73% 已采用后量子加密。
Anthropic 的这项研究出炉之际,围绕我们从 RSA 到椭圆曲线密码学再到格密码等几乎所有依赖的密码学的可靠性,正流传着大量传言。然而,没有任何迹象表明存在实际威胁。Anthropic 的密码分析工作属于一项由来已久的研究传统,其作用是增强人们对密码系统的信心。
AI 辅助研究加快了我们发现攻击的速度。密码学研究中的新型 AI 辅助方法,若配合负责任的漏洞披露,能帮助业界比恶意行为者更快地发现并应对潜在风险。
在今天的文章中,我们将深入探讨目前已知的研究结果,并解释为何我们依然确信,基于格的后量子密码标准背后的核心数学技术仍然稳固。
Anthropic 的研究描述了用于求解 ML-KEM 加密与 ML-DSA 签名方案安全性背后问题的量子算法,即 Module-LWE(带误差学习)和 Module-SIS(短整数解)。这些是在被称为格(lattice)的数学结构上定义的计算问题,你可以在我们的初学者指南中了解更多。一个高效的 Module-LWE 或 Module-SIS 求解器将削弱 ML-DSA 的安全性,而 ML-KEM 仅依赖 Module-LWE。
Anthropic 的研究针对的是数学家和密码学家数十年来一直钻研的核心格问题。但有两件事使这些量子攻击不切实际,从风险角度看也几乎无关紧要。
第一,硬件并不存在。这些算法需要一台规模极其庞大的量子计算机,仅一个直接实现就至少需要数十亿个逻辑量子比特(qubit)。相比之下,如今的量子计算机只有数千个量子比特量级,而要破解经典密码学,还需要 10 倍到 100 倍的规模扩展。这意味着,量子计算机更有可能先破解椭圆曲线和 RSA,而不是格。
第二,计算运行时间难以想象。尽管从理论角度看它似乎有些高效,但实际的加速只有在极大规模下、或者说在渐近意义上才会显现,对于现实中的实例并不实用。这被称为星系算法(galactic algorithm)。就本例而言,在实践部署所用参数上执行该算法,所需的资源超过我们银河系所能提供的资源。当 ML-KEM 和 ML-DSA 的安全级别提升时,其复杂度甚至算不上真正的准多项式,而是指数级的。
具体而言,使用这种新攻击方法攻击 ML-DSA 或 ML-KEM,会比使用已知最佳经典(非量子)攻击慢上若干个数量级。根据论文的估算,攻击 ML-DSA 的实际复杂度大约为 2^x 量级,其中 x 大于一千,而较小的 ML-DSA 实例的目标安全级别是 2^128。
从更宏观的视角看,这篇论文的结果因其新颖的数学技巧而令人兴奋,这些技巧把不同领域的方法应用到了新的语境中。这可能标志着新一轮 AI 辅助研究的开端,即把量子算法应用于格问题,并最终可能推动实现层面的优化,类似于离散对数电路(椭圆曲线密码学所依赖的困难问题)上取得的半自主进展。
理解现代 AI 系统的一种方式,是将其视为人类知识的聚合器。从 Navier-Stokes 到黎曼假设,我们所见 AI 最擅长的是在不同研究群体之间建立联系。没有人能读完每一篇数学或密码学论文,但 AI 可以;这将使我们能够发现那些我们原本不知道存在的想法。
AI 辅助研究将推动密码分析领域的最先进水平,改进已知攻击并发现新的攻击。随着时间推移,更多研究将增强我们对密码系统的信心。但与软件安全不同,“情况在变好之前会先变得更糟”这句老话可能并不适用。
我们相信,存在一些计算上困难的问题,我们可以依靠它们来构建任何攻击者——无论是否拥有量子计算机——都无法攻破的密码学。尤其是,Anthropic 的结果并不表明 ML-KEM 或 ML-DSA 存在根本性缺陷。AI 辅助的密码分析可能会削去一点安全强度,但标准的制定刻意留有安全余量,以经受时间的考验和不断改进的攻击。如果某个密码系统在根本上是安全的,那么任何 AI 或量子计算机都永远无法攻破它。
AI 并不会改变一个密码系统是否安全,它改变的是我们多快能弄清楚该系统面对经典攻击和量子攻击时的确切安全水平。
最后,我们想提一下 Anthropic 的其他贡献,其中包括在基于格的密码学方面令人鼓舞的结果:
这些结果刚刚发布,专家们还需要一些时间才能充分解读。到目前为止,它们似乎构成了密码分析领域的一次重大进步,无疑将同时影响未来的攻击手段和新的密码系统。
译文由英文原文机器翻译,术语按行业惯例统一,可在文末展开原文核对。
查看英文原文(Post-quantum cryptography is still safe)
On November 30, Anthropic published several math papers about lattice-based cryptography. The main paper uncovers new strategies that may help tackle the lattice-based math problems that underpin widely used post-quantum cryptography algorithms, ML-DSA and ML-KEM. This research is purely theoretical, and does not impact the security of deployed cryptosystems. Your encrypted data and Internet connections are still safe, and so is your infrastructure protected by Cloudflare.
We remain committed to swiftly upgrading the Internet to post-quantum cryptography: we began our migration in 2019, enabled post-quantum encryption for all websites and APIs in 2022, and as of the date of this post, 73% of human traffic to Cloudflare is post-quantum encrypted.
Anthropic’s research comes amidst a flurry of rumors around the reliability of virtually all cryptography we depend on, from RSA to elliptic curve cryptography to lattices. However, nothing indicates a practical threat. Anthropic's cryptanalysis work is part of a longstanding tradition of research that strengthens confidence in cryptographic systems.
AI-assisted research accelerates the rate at which we find attacks. New, AI-assisted methods in cryptographic research, when paired with responsible disclosure, helps the industry find and address potential risks faster than malicious actors.
In today’s post, we’ll dig into what we know so far about the results and explain why we remain confident that the core mathematical techniques behind lattice-based, post-quantum cryptography standards remain robust.
The main result: theoretical quantum solvers of lattice problems
Anthropic's research describes quantum algorithms for solving problems behind the ML-KEM encryption and ML-DSA signature scheme’s security, namely Module-LWE (learning with errors) and Module-SIS (short integer solutions). These are computational problems over math structures called lattices, which you can learn more about in our beginner’s guide. An efficient solver for Module-LWE or Module-SIS would undermine ML-DSA’s security, while ML-KEM only relies on Module-LWE.
Anthropic’s research tackles the core lattice problems that mathematicians and cryptographers have been studying for decades. But there are two things that make these quantum attacks impractical, and of little relevance from a risk perspective.
First, the hardware does not exist. The algorithms require a quantum computer of humongous size, with at least billions of logical quantum bits (qubits) for a straightforward implementation. In comparison, today’s quantum computers have of the order of thousands of qubits, and a 10× to 100× scaling is necessary to break classical cryptography. Which means quantum computers are far more likely to break elliptic curves and RSA before lattices.
Second, the computational runtime is difficult to fathom. Although it appears somewhat efficient from a theoretical angle, the actual speed-up only materializes at a very large scale, or asymptotically, and is impractical for realistic instances. This is known as a galactic algorithm. In the present case, executing the algorithm on parameters deployed in practice would require more resources than are available in our galaxy. It isn’t even really quasi-polynomial, but exponential, when scaling up the security level of ML-KEM and ML-DSA.
Specifically, attacking ML-DSA or ML-KEM using the new attack would be orders of magnitude slower than with the best known classical (non-quantum) attacks. Based on the paper’s estimates, the actual complexity to attack ML-DSA would be of the order of 2x, for values of x greater than a thousand, whereas the target security level is 2128 for the smaller ML-DSA instance.
From a broader perspective, the results of this paper are exciting for their novel mathematical techniques, which apply techniques from different fields in a new context. It could mark the start of a wave of AI-assisted research into applying quantum algorithms towards lattice problems, and may eventually drive implementation-level optimizations similar to the semi-autonomous advances on discrete logarithm circuits (the hard problem underlying elliptic curve cryptography).
Understanding the impact of AI on cryptography
One way to think of modern AI systems is as aggregators of human knowledge. From Navier-Stokes to the Riemann Hypothesis, what we have seen AI do best is connect dots between different research communities. No human can read every math or cryptography paper, but AI can; and this will allow us to uncover ideas we didn't know were there.
AI-assisted research will push the state of the art in cryptanalysis, improving known attacks and discovering new ones. Over time, more research reinforces the confidence in our cryptosystems. But unlike in software security, the adage “it will get worse before it gets better” may not apply.
We believe there are computationally hard problems that we can rely on to build cryptography out of reach by any attacker, quantum or not. In particular, Anthropic's results don't indicate a fundamental flaw in ML-KEM or ML-DSA. AI-assisted cryptanalysis may shave off a bit of security, but standards are deliberately chosen with security margins to withstand the test of time and improved attacks. If a cryptosystem is fundamentally secure, no AI or quantum computer will ever break it.
AI doesn’t change whether a cryptographic system is secure. It changes how quickly we understand its exact security level, against classical and quantum attacks.
An exciting future for lattice cryptography research
Finally, we’d like to mention Anthropic’s other contributions, which include encouraging results for lattice-based cryptography:
- Better foundations for the LWE and SIS problems, with a more accurate description of their connection with worst-case lattice problems.
- Faster algorithms for other lattice problems, which do not extend to the current post-quantum crypto standards.
- Foundations for constructing cryptographic primitives, including:
- Fully homomorphic encryption, an advanced cryptosystem that allows computing on encrypted data with several promising applications.
- Publicly deniable encryption, a form of encryption that does not fully bind ciphertext to a plaintext.
- Attribute-based encryption, from lattices. We used a pre-quantum version of this system in an early version of our regionalization services.
- Indistinguishability obfuscation, a sort of "holy grail" cryptographic primitive, mainly of theoretical interest.
These results just dropped, and it will take some time for experts to properly unpack them. So far they appear to constitute a significant step forward in cryptanalysis that will undoubtedly influence future attacks and new cryptosystems alike.
正文保留英文原文,标题与摘要由机器翻译。
原文发布于 Cloudflare Blog(Post-quantum cryptography is still safe),标题、摘要与正文由机器翻译,术语按行业惯例统一,未经人工逐句校订。