关于 AI 对加密的潜在威胁,你需要知道这些
MIT Technology Review 解读栏目:让我们的作者为你梳理复杂而混乱的科技世界,帮助你理解接下来会发生什么。你可以在这里阅读该系列的更多文章。
有传闻称,某家前沿实验室正握有一项数学突破,能让大数分解变得远比此前认为的容易。若属实,这将对加密、数据安全和地缘政治产生巨大影响。该消息让整个计算机科学界在周末陷入疯狂猜测,Elon Musk 也对此发表了评论,还有人警告称金融数据可能面临风险。也有一些人呼吁,在缺乏任何证据的情况下应保持谨慎。
上周,颇具影响力的计算机科学家兼博主 Scott Aaronson 发帖称,他“几乎可以确信”,前沿 AI 实验室 Anthropic 和 OpenAI 掌握着一项或多项可能与密码分析学(即破解密码的研究)相关的“重磅消息”。他说自己的分析基于多个可靠信源。
此事很快发酵,并在 Elon Musk 等人的推波助澜下,逐渐汇聚成一个传闻:AI 在将数字分解为其最小质因数的难题上取得了突破。例如,15 的质因数是 3 和 5。
对小数来说这很容易做到,但随着数字变大,难度会迅速上升:以现有技术和可用的最佳算法,分解标准 RSA 密钥所用的 617 位数,所需时间将超过宇宙的年龄。而这种情况可能即将改变。
大数分解的难度是 RSA 加密的关键,而 RSA 加密支撑着许多在线系统的安全。简单来说,它的运作方式是这样的:每个 RSA 密钥都始于两个保密的大质数,两者相乘生成公钥。公钥可以用来锁定消息,但只有知道原始质数的人才能解锁这些消息,或生成有效的数字签名。把两个数相乘很容易,但从乘积倒推找出这两个数却极其困难。正是这种不对称性保护着大量在线数据。
数学家区分了能在“多项式时间”内解决的问题——即其难度以可控且可预测的速度增长——和无法在多项式时间内解决的问题。已经有一个算法——Shor 算法——能在多项式时间内完成分解,但它需要一台尚未被造出的量子计算机。
安全专家长期以来一直在警告“Q-Day”——一场量子末日:加密失效,在线系统变得脆弱,国家机密流入公共领域。也有传闻称,一些国家行为体一直在囤积加密数据,寄希望于未来的量子计算机能破解它们。
从理论上说,能在多项式时间内完成大数分解,意味着无需等待量子硬件足够成熟,RSA 加密就可能被破解。还有传闻称,另一种广泛使用的加密形式——椭圆曲线密码学——也可能面临威胁。更广泛地说,如果 AI 能在多项式时间而非“指数时间”内解决像分解这样的问题,那就意味着许多其他数学问题可能比此前认为的要容易解决得多。
很可能。最近几周,AI 在数学领域取得了一些惊人的突破。最引人注目的是,黎曼猜想——可以说是数学界最重要的未解难题——被 Anthropic 聘用的一位数学家 Levent Alpöge 与 Claude 合作解决了。而传言也并非空穴来风:今年 9 月,Anthropic 的一位工程师 Steve Weis 用 Claude 帮忙分解了一个 270 位的数字——不过他不是发现了新算法,而是用 AI 来协助协调算力。
本月早些时候,Google DeepMind 的研究人员报告称,在人类监督下工作的 AI 智能体在 1024 位 RSA 系统中发现了两个弱点。所以这显然是前沿实验室正在投入资源的领域。
正在发生的事情也可能与 RSA 加密完全无关。另一种传言认为,在一些后量子密码系统中被用作 RSA 替代方案的格密码(lattice-based cryptography),可能正面临威胁。
现在下结论还为时过早,但有几个理由不必恐慌。即便 AI 真的发现了某种能在多项式时间内完成因数分解的算法——而目前除传言外并无任何证据——也未必意味着该算法真能足够快地分解大数并具有实用价值。它可能仍然需要当今最强超级计算机数千年的计算时间,而这——无意冒犯——没人会拿来破解你的 Instagram 私信。
更重要的是,由于 Shor 算法带来的威胁,如今大部分网络流量已经切换到不依赖因数分解的后量子密钥交换。iMessage 和 WhatsApp 等大型通讯平台也不依赖 RSA。
AI 也有可能让破解支撑后量子加密的数学变得更容易,但目前还没有令人信服的证据。最后,如果传言属实,前沿实验室似乎相对负责任,没有向公众发布该算法。
这可能只是开始。证明因数分解可以在多项式时间内求解,可能会打开闸门,催生更高效的因数分解算法,这些算法无需访问庞大的算力即可运行。密码学的其他基础也可能走上同样的道路。
国家资助的网络攻击和黑客入侵可能会变得容易得多,我们可能会走向一个后安全世界,在那里很难相信你收到的信息来自你认为的地方。任何一直在囤积加密数据的情报机构,都可能突然能够读取这些数据,而无需等待量子计算机。
许多系统已经从 RSA 升级,这应该能争取一点时间,但有些系统无法如此轻易地现代化:医院网络、关键基础设施、空中交通管制。不过,这一切都极具推测性——而在数学领域开辟新天地的同一批 AI 系统,也可能帮助设计出更有效的数据保护方法。
Anthropic 和 OpenAI 尚未对这些传闻置评,也没有发布任何证实其真伪的确认信息。近期其他关于数学突破的传闻,通常都会由相关人士迅速证实。周日,用 Claude 分解 RSA-896 的 Anthropic 软件工程师 Steve Weis 发布了新成立的 Cryptography Incident Review Group 的网站链接,该组织由 21 位密码学家组成,“旨在审查并帮助应对密码分析领域的进展”。网站上有一个指向即将发布的声明的链接,该声明尚未发布。Weis 随后澄清,该组织与 Anthropic 没有官方关联,他的发帖也无意宣布任何事情。
周一,巴黎的密码学家 Nadim Kobeissi 声称看到了一份 Anthropic 计划在未来 24 小时内发布的密码分析成果的副本。他在 X 上发帖称,该成果“意义非常重大”,但与 RSA 无关。
译文由英文原文机器翻译,术语按行业惯例统一,可在文末展开原文核对。
查看英文原文(Here’s what you need to know about AI’s potential threat to encryption)
MIT Technology Review Explains: Let our writers untangle the complex, messy world of science and technology to help you understand what’s coming next. You can read more from the series here.
A frontier lab is rumored to be sitting on a mathematical breakthrough that makes factoring large numbers far easier than previously thought. If true, this could have huge implications for encryption, data security, and geopolitics. The report sent the computer science world into a frenzy of speculation over the weekend, drawing comment from Elon Musk and warnings that financial data could be at risk. Others have urged caution in the absence of any evidence.
What happened?
Last week, the influential computer scientist and blogger Scott Aaronson posted that he was “virtually certain” the frontier AI labs Anthropic and OpenAI had one or more “bombshells” that could be relevant to cryptanalysis, the study of breaking codes. He said his analysis was based on multiple reliable sources.
The story soon picked up steam, amplified by Elon Musk and others, and coalesced into a rumor that AI had made a breakthrough in the challenge of breaking numbers down into their smallest prime factors. For instance, the prime factors of 15 are 3 and 5.
This is easy to do with small numbers, but it grows rapidly more difficult as the number gets bigger: With current technology and the best algorithm available, factoring the 617-digit numbers used in standard RSA keys would take longer than the age of the universe. That could be about to change.
Why does this matter?
The difficulty of factoring large numbers is the key to RSA encryption, which underpins the security of many online systems. In simple terms, it works like this: Every RSA key starts with two large secret prime numbers, which are multiplied together to create a public key. That public key can be used to lock messages, but only someone who knows the original prime numbers can unlock those messages or create valid digital signatures. Multiplying two numbers together is easy, but working backwards from the product to find them is exceptionally hard. It’s this lopsidedness that protects much online data.
Mathematicians make a distinction between problems that can be solved in “polynomial time”—meaning that they grow harder at a manageable and predictable rate—and those that cannot. There is already an algorithm—Shor’s algorithm—that can do factoring in polynomial time, but it requires a quantum computer that has not yet been built.
Security experts have long been warning about “Q-Day”—a quantum apocalypse where encryption breaks down, online systems become vulnerable, and state secrets spill out into the public domain. There have also been rumors that state actors have been stockpiling encrypted data in the hopes that a future quantum computer could crack it.
Factoring large numbers in polynomial time would, theoretically, mean that RSA encryption could be broken without waiting for quantum hardware to be good enough. It’s also been rumored that elliptic curve cryptography, another widely used form of encryption, could be under threat. More broadly, if AI can solve a problem like factoring in polynomial time rather than “exponential time,” it suggests that many other mathematical problems could be much more easily solvable than previously thought.
Is this credible?
Probably. There have been some astonishing mathematical breakthroughs in AI in recent weeks. Most notably, the Riemann hypothesis—arguably the most important unsolved problem in math—was solved by a mathematician employed by Anthropic, Levent Alpöge, in partnership with Claude. And the rumors didn’t come from nowhere: In September, an Anthropic engineer named Steve Weis used Claude to help factor a 270-digit number—although he did it not by discovering a new algorithm but by using AI to help coordinate computing capacity.
Earlier this month, researchers at Google DeepMind reported that AI agents working under human supervision had found two weaknesses in 1,024-bit RSA systems. So it’s clearly something the frontier labs are putting resources behind.
What’s going on could also be something entirely unrelated to RSA encryption. Another rumor suggests that lattice-based cryptography, which has been used as a replacement for RSA in some post-quantum cryptography systems, could be under threat.
How bad is this?
It’s too early to tell, but there are a few reasons not to panic. Even if AI has discovered an algorithm that can solve factoring in polynomial time—and right now there’s no evidence of that beyond rumors—it doesn’t necessarily mean the algorithm will actually be able to factor large numbers quickly enough to be useful. It could still take thousands of years of computing time on the world’s best supercomputer, which—no offense—no one is going to be deploying to crack into your Instagram DMs.
What’s more, because of the threat posed by Shor’s algorithm, much of today’s web traffic has already switched over to post-quantum key exchange, which doesn’t rely on factoring. Large messaging platforms like iMessage and WhatsApp don’t rely on RSA either.
It’s possible that AI could make breaking down the math underpinning post-quantum encryption easier too, but there’s no compelling evidence of that just yet. Finally, if the rumors are indeed true, it seems the frontier labs are being relatively responsible and not releasing the algorithm to the public.
But on the other hand …
This could be only the beginning. Proving that factoring can be solved in polynomial time could open the floodgates to more efficient factoring algorithms that can be run without access to huge computing power. The other foundations of cryptography could follow the same path.
State-sponsored cyberattacks and hacks could become a lot easier, and we might move toward a post-security world where it’s difficult to trust that the messages you receive are coming from where you think they are. Any intelligence agency that has been stockpiling encrypted data might suddenly be able to read it, without waiting for a quantum computer.
A lot of systems have been upgraded from RSA, which should buy a bit of time, but some systems cannot be modernized so easily: hospital networks, critical infrastructure, air traffic control. This is all extremely speculative, though—and the same AI systems that are breaking new ground in mathematics could help design even more effective methods for securing data.
What will happen next?
Anthropic and OpenAI are yet to comment on the rumors or release any confirmation that they are true or false. Other recent rumors about mathematical breakthroughs have generally been confirmed quickly by the people involved. On Sunday, Steve Weis, the Anthropic software engineer who used Claude to factor RSA-896, posted the link to the website for the newly formed Cryptography Incident Review Group, a group of 21 cryptographers “aiming to review and help navigate cryptanalytic advances.” There’s a link on the site to a forthcoming statement, which has not yet been published. Weis later clarified this group is not officially linked to Anthropic and that his post was not intended to be an announcement of anything.
On Monday, Nadim Kobeissi, a cryptographer in Paris, claimed to have seen a copy of a cryptanalytic result that Anthropic plans to publish in the next 24 hours. He posted on X that it was “very significant” but did not concern RSA.
正文保留英文原文,标题与摘要由机器翻译。
原文发布于 MIT Technology Review(Here’s what you need to know about AI’s potential threat to encryption),标题、摘要与正文由机器翻译,术语按行业惯例统一,未经人工逐句校订。