Will AI Break Cryptography This Week?
Rumors are swirling about some cryptanalytic breakthrough from one of the AI frontier models.
Meanwhile, the newly formed Cryptography Incident Review Group (CIRG) will review any cryptanalytic results discovered by AI systems. The list of names implies that the sorts of results they are expecting are more related to public-key cryptography than to symmetric cryptography.
I have no inside knowledge—annoyingly!—but here are my thoughts:
One, there is a big difference between a publishable cryptanalytic result, even one that is a bombshell to the field, and a result that breaks operational traffic. Cryptographers are very conservative algorithm designers. We assume cryptanalytic breakthroughs when we design algorithms.
Two, public-key algorithms are more vulnerable than symmetric algorithms: block and stream ciphers and hash functions. Former Bletchley Park cryptanalyst Ian Cassels once said, “Cryptography is a mixture of mathematics and muddle, and without the muddle the mathematics can be used against you.” Public-key cryptography has a much higher math-to-muddle ratio—making it an easier target for superhuman mathematical research techniques.
Three, of those, the new post-quantum lattice-based algorithms are easier targets than algorithms that have been around since the 1970s like RSA and Diffie-Hellman. The security of lattice systems is still a relatively new field of study, unlike factoring and the discrete log problem. Elliptic curve systems are somewhere in the middle.
Moxie Marlinspike has a good commentary about why he thinks factoring is not suddenly about to become easy:
I think this is one of the major things that is changing with LLMs. LLMs can draw on knowledge across more specialties than any individual human, so it is possible for LLMs to connect different areas of understanding in order to yield new results. While I am very much not a mathematician, my sense is that this is a part of what is happening with new AI math results: connecting ideas across several previously-specialized areas of math to develop new constructions.
Factoring, however, presents a different research environment. Its basic challenge (recovering the prime factors of a large composite number) is extremely simple to state and very widely understood. It has attracted attention for centuries, and its importance to cryptography has highlighted the incentive to look for shortcuts for decades. To me, this means that it may offer fewer opportunities created by neglected connections between fields, just because it is so much more likely that someone could already conclude “oh, factoring!” after an incremental advance in an unrelated specialty.
Four, we’ve been here before. I wrote this in 2018, in response to fears that quantum computing will break public-key cryptography. The point still stands:
If that happens, we will face a world without strong public-key cryptography. That would be a huge blow to security and would break a lot of stuff we currently do, but we could adapt. In the 1980s, Kerberos was an all-symmetric authentication and encryption system. More recently, the GSM cellular standard does both authentication and key distribution—at scale—with only symmetric cryptography. Yes, those systems have centralized points of trust and failure, but it’s possible to design other systems that use both secret splitting and secret sharing to minimize that risk. (Imagine that a pair of communicants get a piece of their session key from each of five different key servers.) The ubiquity of communications also makes things easier today. We can use out-of-band protocols where, for example, your phone helps you create a key for your computer. We can use in-person registration for added security, maybe at the store where you buy your smartphone or initialize your Internet service. Advances in hardware may also help to secure keys in this world. I’m not trying to design anything here, only to point out that there are many design possibilities. We know that cryptography is all about trust, and we have a lot more techniques to manage trust than we did in the early years of the Internet. Some important properties like forward secrecy will be blunted and far more complex, but as long as symmetric cryptography still works, we’ll still have security.
[…]
While there are several mathematical theories that underpin the one-wayness we use in cryptography, proving the validity of those theories is in fact one of the great open problems in computer science. Just as it is possible for a smart cryptographer to find a new trick that makes it easier to break a particular algorithm, we might imagine aliens with sufficient mathematical theory to break all encryption algorithms. To us, today, this is ridiculous. Public-key cryptography is all number theory, and potentially vulnerable to more mathematically inclined aliens. Symmetric cryptography is so much nonlinear muddle, so easy to make more complex, and so easy to increase key length, that this future is unimaginable. Consider an AES variant with a 512-bit block and key size, and 128 rounds. Unless mathematics is fundamentally different than our current understanding, that’ll be secure until computers are made of something other than matter and occupy something other than space.
But if the unimaginable happens, that would leave us with cryptography based solely on information theory: one-time pads and their variants. This would be a huge blow to security. One-time pads might be theoretically secure, but in practical terms they are unusable for anything other than specialized niche applications. Today, only crackpots try to build general-use systems based on one-time pads—and cryptographers laugh at them, because they replace algorithm design problems (easy) with key management and physical security problems (much, much harder). In our alien-ridden science-fiction future, we might have nothing else.
Against these godlike aliens, cryptography will be the only technology we can be sure of. Our nukes might refuse to detonate and our fighter jets might fall out of the sky, but we will still be able to communicate securely using one-time pads. There’s an optimism in that.
Subscribe to comments on this entry
Leave a comment
Blog moderation policy