AIFeed

Some background on the possibility of an impending cryptographic disaster

Summary

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. [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 those 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 pose [2] and difficult to solve" (cryptographers call these one-way functions ). For example, it's easy to multiply two large prime numbers, and 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 ca…

Original text(via LessWrong)

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. [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 those 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 pose [2] and difficult to solve" (cryptographers call these one-way functions). For example, it's easy to multiply two large prime numbers, and 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:

  • 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.
  • 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.
  • 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 progress on efficiently solving at least some of this class of problems.
  • 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.
  • Inverting hash functions like SHA-2: not known to be easily solvable even with quantum computers. I'm not aware of rumored AI progress.

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 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. But consider what really happens in the most-surprising world, where P=NP, i.e. 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 be that there are problems that are:

  • "easy to pose" (practically speaking: they can be checked with ordinary computer hardware), but
  • "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 that AI will find easy solutions to most or all of the cryptographic problems we currently rely on, and that this might 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, and I recommend doing the same.

  • ^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.
  • ^In this post I use the word "pose" somewhat loosely, to include checking proposed solutions to the problem

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by LessWrong
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗