跳到正文
Palisade Research· Benjamin Weinstein-Raun·精选AI 评分62

Palisade Research 分析 AI 数学突破可能引发的密码学危机

Some background on the possibility of an impending cryptographic disaster

AI 导读

Palisade Research 作者撰文分析 AI 在数学上的快速进步可能瓦解现有密码学基础,导致互联网安全通信、网购和网银等依赖可信通信的场景受冲击。

推荐理由

作者以 Palisade Research 研究者视角分析了 AI 数学进步可能冲击 RSA、格密码等现有密码学基础,并给出个人风险估计与应对建议。

正文 · 原文

tl;dr: Dramatic math advances due to AI (soon, or perhaps already in secret) might result in temporary or even permanent disruptions of secure communication on the Internet, perhaps halting Internet commerce, online banking, and anything else requiring trusted communication.

AI is very good at math. Why care about this? What is the most immediate application of math to the real world? I think it is cryptography: the math we rely on for keeping information safe on the internet.1

Cryptography

Cryptography is a field of computer science and math concerned with “secure communication”: ensuring that information is private among some set of participants, and that participants can trust the provenance of the information, in various senses.

Most of the techniques for doing this rely on certain math problems being “easy to pose2 and difficult to solve” (cryptographers call these one-way functions). For example, it’s easy to multiply two large prime numbers, and (using modern computers and the best of our current knowledge) difficult to factor the resulting number.

But there’s a big problem with this, which is that there are basically no problems that are proven to be easy to pose and difficult to solve, in the relevant ways. There are only problems that are easy to pose, which we suspect might be difficult to solve. Nobody has yet found a way to solve them easily, and in some cases there are heuristic reasons to think that they might be difficult to solve even far into the future, but in principle someone could show up tomorrow with an algorithm that makes them easy.

Turning hard problems practical, makes practical problems hard

As AI gets extremely good at math, it is going to stress-test these problems we’ve been relying on: it’s likely to find ways to solve some of them much more quickly than we’d have expected. If and when that happens to widely-used problems like factoring numbers, it will invalidate security properties we’re trying to use in our communications, especially over the internet.

Here are some widely used problems that AI might (in principle) find fast ways to solve:

  1. Factoring numbers (the basis of RSA): already known to be efficiently solvable if you had a sufficiently powerful quantum computer, via Shor’s algorithm. People are worried (and there have been rumors) that AIs might have already learned that this is easy to do even with “classical” computers.
  2. Discrete log problem and variants (the basis of Diffie–Hellman key exchange and elliptic-curve cryptography): already known to be efficiently solvable if you had a sufficiently powerful quantum computer. AIs might learn fast ways to solve this one with classical computers too.
  3. Lattice problems (“Learning With Errors”): developed as a post-quantum replacement for factoring and discrete log; recently has seen wide deployment on the internet. It appears this week that AI has made substantial theoretical progress on efficiently solving at least some of this class of problems using quantum computers, though the practical implications of this are limited.
  4. Inverting block ciphers like AES: not known to be easily solvable even with quantum computers (the best known quantum attack, Grover’s algorithm, gives only a modest speedup). I’m not aware of rumored AI progress.
  5. Inverting hash functions like SHA-2, which take some data and produce a deterministic fixed-size value from it, such that the original data is very difficult to retrieve from the result: not known to be easily solvable even with quantum computers. I’m not aware of rumored AI progress.

The first three of these problems underlie different schemes for “public-key cryptography”, which mainly concerns how two parties can communicate securely without a preexisting shared secret. Block ciphers are used for “symmetric cryptography”, which allows secure communication between parties who do have shared secrets. Hash functions have too many uses to name here. When you buy something online or send a secure message, you are almost always relying on all three of these types of cryptography.

In addition to this kind of progress in finding fast ways to solve cryptography problems, AI might prove that there either do or do not exist problems with the right structure to allow for secure communications. If such problems do exist, we might be able to adopt them for proven-secure internet communications. If they do not exist, we might be stuck relying on physical security for most of our communication in the future.

The cryptographic disaster scenario

I think the worst practical case here is something like: we wake up one day (or learn over the course of a month) to a world where we cannot rely on the internet for secure communications. Any time you open a web page, that page might have been tampered with. Any time you send private information over the internet, that information might be read by someone you didn’t intend to read it. Maybe a hostile government with access to the network hardware, or a criminal sitting within wifi range.

In such a world, people might quickly stop using the internet for things requiring mathematically-guaranteed secure communications, and fall back on more traditional assumptions. People used to rely on physical security and the law when they needed secure communications. Mail tampering was illegal and people could go to jail for doing it. Wire fraud was illegal and people could go to jail for doing it. In the pre-internet world, the cryptography of the time (now considered primitive) was mostly used for military communications, where physical security and law were clearly insufficient for secure communication.

If we lost all cryptographically secure communications, you might no longer be able to buy things online. You might no longer be able to use online banking. You might be less able to trust that your email is really from the person it says it’s from. You might not be able to trust software you download. The internet would probably still be quite useful, and its physical security might be trustworthy enough as long as you didn’t mind the government and your ISP seeing your communications. But a lot of its current value would probably be lost.

How screwed are we?

Personally I would be very surprised if we ended up fully in this world. My sense, from reading and talking to knowledgeable people, is that it would be very surprising if we totally lost hash-based or symmetric cryptography. Even if the problems we’re currently using turn out to be easy to solve, surely there are some problems that are hard to solve.

Sometimes people talk about “complexity classes” like P, BQP, and NP, which describe how worst-case problem difficulty scales with problem size. When discussing the possibilities for cryptography, people often speak as though results from complexity theory would have major implications for practical cryptography, and that is very possible. But there are two reasons complexity results alone, like the possibility (which would be shocking to most computer scientists) that P=NP, are not a major crux for me: First, basically none of the problems above are known (or, I think, even strongly believed) to be NP-hard. And second, what really happens in the most dramatic and surprising possible world of forthcoming complexity theory results, where P=NP? This would mean that there are no problems that are:

  • “easy to pose” (theoretically speaking: they take only a polynomial amount of time to check as the problem gets bigger), and
  • “hard to solve” (theoretically speaking: they cannot be solved in a polynomial amount of time).

Even if we’re in this world, which I think most computer scientists would be shocked by, it may still be that there are problems that are:

  • “easy to pose” (practically speaking: they can be checked with ordinary computer hardware), and
  • “hard to solve” (practically speaking: they cannot be solved with even astronomical amounts of computer hardware).

Donald Knuth, one of the most famous computer scientists in the world, has even indicated that he thinks we are probably in this world, where P=NP but many problems have huge exponents and can’t be practically solved. (Algorithms like this, which are fast in theory but useless in practice, are sometimes called “galactic algorithms”.)

On the other hand, it is much more plausible to me (subjectively, maybe 20% likely?) that AI will find easy solutions to most or all of the cryptographic problems we currently rely on, and if that happens it seems likely to result in a period of severe uncertainty, insecurity, and general shakeup on the internet. I am planning to spend some time this week making sure that I could survive for at least a bit of time, in case supply chains break down temporarily as a result of this kind of cryptographic disaster alongside other AI-driven cybersecurity risks, and I’d recommend doing the same.

Acknowledgements

John Salvatier and Julia Hurley offered helpful feedback on this post. Claude Fable 5.2 wrote about 10 of the words in this post (mostly in parentheticals) and chose most of the links. Claude Fable 5.2 and GPT-6.2 Astra checked over it for errors and didn’t find major ones though they both have some quibbles with takeaways.

Originally published on LessWrong.

  1. To be clear, I think there are much much bigger reasons to care about AI being superhuman at math; this is just the most immediate one right now. ↩

  2. In this post I use the word “pose” somewhat loosely, to include checking proposed solutions to the problem ↩

来源:Palisade Research · palisaderesearch.org