What does the future hold for encryption?

Alllex/Getty Images

AI has taken over mathematics this year, solving hard problem after hard problem, but for months cryptographers have been puzzled – where are all the breakthroughs in cryptography? Here, solving a hard maths problem can lead to breakdown to the world’s security, but the AI firms have been oddly silent, even as rumours festered about AI posing an unprecedented threat to encryption.

Now, that threat seems to have arrived, but the details are limited. The US National Security Agency (NSA) said on 2 December that AI firms had shared “recent discoveries that impact the security of some cryptographic systems currently in use,” and advised that companies accelerate their transition to a new kind of encryption called post-quantum cryptography (PQC). Other agencies and companies have responded in kind, but we still don’t know exactly which encryption algorithms are under threat – only that it is at least one currently in use.

“We now realise that machines are much smarter mathematicians than humans. What if these smart machines find more efficient algorithms than humans ever have? This is a very realistic possibility and threatens our modern day cryptography,” says Eli Ben-Sasson at StarkWare.

So what might AI do to threaten encryption? To break encryption and steal sensitive data, a hacker must develop an algorithm that can solve the maths problem that underlies an encryption method and be able to run that algorithm in practice. Consequently, choosing a problem that is sufficiently hard is crucial for keeping data secure. Yet, dozens of problems that have eluded generations of mathematicians have recently been solved by AI, changing our notions of what is truly hard. Could some hard cryptographic problems prove manageable for AI?

An illustrative example is a widely implemented encryption method call RSA-2048, which derives its security from conventional computers struggling to break large numbers into their prime factors. A sufficiently large and reliable quantum computer could use a technique called Shor’s algorithm to do this in a short enough time to be dangerous, but we don’t know whether the same is true of an ordinary computer. Steven Bellovin at Columbia University in New York points out that we haven’t found such a classical algorithm after decades of looking. But importantly, there is no firm mathematical proof that such an algorithm is impossible; all we currently know is that human mathematicians have not devised one. So, one scenario is that AI proves that this algorithm – one that can factor larger numbers in a specific amount of time – can exist.

One of the rumours that circulated online in November was that AI firms have done just that. Researchers shorthand this as “factoring in P” where P stands for “polynomial” and means that the amount of time the computer would need would be comparable to the length of a cryptographic key multiplied itself some number of times.

But Bellovin says that proof of ‘factoring in P” by itself would not mean immediate danger. There is a difference between proving that an algorithm can exist and constructing one. If AI proved that the algorithm can exist, it could still take years for someone to determine all its steps and turn it into a recipe that a computer could follow. In the scenario where AI produced a specific algorithm, there would still be the matter of practicality, says Bellovin. This is because polynomial time could mean that time needed is similar to the number of the key’s bits squared or cubed, but it could also be equal to that number multiplied by itself millions of times. In the second case, time to break encryption would be extremely long and render the hack effectively useless, even though it is theoretically possible.

Aran Nayebi at Carnegie Mellon University in Pennsylvania says that some past AI-produced algorithmic breakthroughs have fallen into that category. “We call these “galactic” algorithms, to distinguish them from practical ones that people could feasibly run,” he says. In contrast, Shor’s algorithm is much closer to the scenario where the key length gets cubed, which maintains quantum computers’ status as a credible threat to RSA encryption, says Joe Fitzsimons at Horizon Quantum.

There are other problems underpinning different methods of encryption that an AI could undermine. These include cryptography based on a problem called elliptic curves, which protects cryptocurrencies like bitcoin and some messaging services. There is also the Advanced Encryption Standard, which relies on the mathematics of permuting and substituting numbers in a grid and is used to encrypt online traffic or computer hard drives. Replacing any of these would be a major logistical challenge.

Finally, there is the mathematics of lattices, or points on a grid, which underpin the PQC encryption that the NSA and others are advising we now switch to. On 30 November, AI firm Anthropic reaffirmed the safety of several lattice-based PQC methods except in one case where its AI generated a galactic algorithm.

Perhaps the most alarming scenario is a world in which AI reveals that none of the mathematical problems we use for encryption are actually hard to solve. “At present we rely on cryptography that makes assumptions about certain problems being hard to solve on a computer without an actual proof that this is the case. The worst-case scenario would be where it were discovered that none of these assumptions were true,” says Fitzsimons.

In this world, cryptographic methods would have to be built on something other than mathematical puzzles and the world of quantum physics would be the immediate choice, he says. Methods such as quantum key distribution, already exist and have been tested extensively, including securely connecting the Earth to small satellites, but would be hard to deploy at large scales and quickly. If we find ourselves in this world, there will be no easy solutions.

Source: New Scientist · Karmela Padavic-Callaghan

At a glance

Topic
Science
Country
🇬🇧 GB
Publisher language
EN
Added to Allnira