Skip to content

Can The Machines That Cracked Riemann Crack Your Bank Account?

“Codes are a puzzle. A game, just like any other game.” Alan Turing, The Imitation Game

The people who break codes tend to be the ones who write the next ones. Alan Turing helped crack Enigma at Bletchley Park. Three decades later, Clifford Cocks, a young mathematician at Bletchley’s successor GCHQ, quietly devised the public-key method that we now know as RSA, years before the three Americans whose initials it carries. His work stayed classified until 1997.

RSA rests on a simple bet. Multiplying two very large prime numbers is easy, but working backwards from the answer to find those two primes is so hard that in theory it would take today’s computers longer than the age of the universe. That bet protects your bank login, your card payments and much of the plumbing of the financial system.

This week the bet started to look less safe. the University Oxford’s Marcus du Sautoy, a number theorist who wrote The Music of the Primes, told the Times of London that “everything that depends on mathematics is up for grabs. That includes our entire security system.” He said he was astonished more attention was not being paid to it. So if AI can now crack maths problems that defeated the greatest minds for centuries, can it crack the codes as well?

OpenAI’s mathocalypse and the mathematicians who wept

Mathematics has had an extraordinary autumn. In September OpenAI said it had solved a version of the Navier-Stokes problem, one of the seven Millennium Prize Problems. Then on 6 October it released 722 manuscripts claiming solutions to hundreds of open problems, posted in bulk on GitHub. Mathematicians called it the mathocalypse.

For some it felt like a bereavement. Hugo Duminil-Copin, a Fields medallist, said: “Tuesday night, I cried and it woke up my daughter.” OpenAI, he said, had “annihilated my field of research”. Albane Théry at the University of Warwick said some of the solutions made her “really feel heartbroken”. Imagine spending thirty years on a single question, only to find it answered overnight by a machine that does not know your name.

And yet the answers did not bring much understanding with them. NPR reported that humanity had learned very little from the Navier-Stokes solution. The machine had the answer, but nobody yet understood how it got there.

Does the Riemann hypothesis proof break encryption?

Then came the big one. On 20 November, the day after Anthropic’s record stock market debut, Levent Alpöge, a mathematician on its technical staff, posted a four-page note on his website. He believed, he wrote, that working with Claude he had found a proof of the Riemann hypothesis. Bernhard Riemann set out the problem in 1859. It concerns how the prime numbers are spread along the number line, and it has a $1 million Clay prize attached.

This time the proof came as computer code that can be checked line by line, around 17 million lines of it in a language called Lean. Within a day the Lean and Mathlib communities said they had “full confidence” that the proof was correct. James Maynard, a Fields medallist at Oxford, had called it, if correct, “a historic milestone”.

With prime numbers and an AI company involved, it is easy to see why the headlines leapt to bank accounts. But Riemann is about the pattern in which primes appear. It does not tell you which two primes were multiplied to make a particular RSA key. As one security analysis put it plainly, a proof gives an attacker no shortcut. For now, the bank vault stays locked.

How AI is making RSA keys cheaper to crack

Meanwhile, AI is making the slog of codebreaking much cheaper. On 3 September Eric Lu of the start-up Cognition factored RSA-260, an 862-bit number from the old RSA challenge, using AI agents running on spare GPUs. Sixteen days later Stephen Weis, also at Anthropic, went further with RSA-896, now the largest challenge number factored in public. Weis was clear that the 2048-bit keys in wide use today are unaffected. Older 1024-bit keys, he said, are now within reach of any organisation with a data centre full of GPUs. On 6 November Google DeepMind reported two weaknesses in legacy 1024-bit RSA, found by AI working under human direction.

Then there is the rumour that has the maths world on edge. On 25 November Scott Aaronson, the University of Texas computer scientist and a former OpenAI researcher, wrote that he was “virtually certain, from multiple reliable sources, that the AI labs are now sitting on one or more bombshells” in cryptography. The talk is of a fast method for splitting huge numbers into their primes. Aaronson has also made clear that he never confirmed an RSA break and does not know what the results are. This morning the Times reported that Fields medallists fear such discoveries are being kept quiet.

Cryptographers are divided. Matthew Green at Johns Hopkins put the chance that we lose confidence in today’s public-key systems at around 15 per cent. Bruce Schneier, author of Applied Cryptography, points out that cryptographers build in an enormous safety margin. RSA has survived shocks before, mostly by switching to longer keys.

The new job for mathematicians

So will the mathematicians who wept in October become the next Turings? Du Sautoy is a good place to look for an answer, because he has lived both halves of the story. In October he told Radio 4’s Today programme, alongside Timothy Gowers, that AI tools had helped him disprove a 40-year-old conjecture he had worked on since his PhD. His verdict: “I think it an exciting time to be entering mathematics.” The same man now warns that our entire security system is up for grabs. He has seen what these machines can do at close quarters.

Turing never had to wonder which problem mattered. Britain was at war and Enigma had to be broken. His more lasting contribution came later, in a 1950 paper that asked whether machines could think, and what that would mean for the rest of us. Mathematicians now face their own version of that question. Someone still has to decide which problems deserve a machine’s attention, check what comes back, and explain the result in a way that other mathematicians can learn from and build on. Melanie Wood of Harvard described October’s flood as “the beginning, not the completion, of the process of human understanding”.

The codes will need rebuilding too. Governments are already moving to new “post-quantum” encryption, designed to survive quantum computers. But Daniel Shiu of the University of Manchester warns that AI is a significant risk to the less mature of those new methods. The people best placed to test the next generation of codes are exactly those whose life’s work the machines have just swept away.

The 48-hour test every board should run

For business leaders, waiting for the mathematicians to settle it is not a plan. Hise Gibson, a former US Army officer who teaches technology and operations management at Harvard Business School, argues that the familiar VUCA framework (volatile, uncertain, complex, ambiguous) no longer fits. In a Working Knowledge piece he proposes BANI instead: brittle, anxious, nonlinear and incomprehensible. “VUCA told leaders to prepare,” he writes. “BANI tells them that preparation itself may not be enough.”

His first rule is to assume a breach is inevitable. His test for the next board meeting is a blunt one: “Can your business run for 48 hours without digital systems?” To that I would add a question of my own. Does anyone in your organisation know where your old 1024-bit keys still sit? Data stolen today and decrypted tomorrow is still your data. “The greatest risk,” Gibson warns, “is leaders who never saw it coming.”

It is worth remembering how the last great leap in cryptography came to light. Clifford Cocks’s invention at GCHQ stayed secret for 24 years. If someone has now found a fast way to split large numbers into their primes, the first public sign may not be a paper or a press release. It may simply be a change in the keys that governments and banks choose to use. Boards would be wise not to wait for the announcement.

Interested in this topic? You might also like…

Leave a Reply