Hacker News

Eve's Revenge: What If AI Breaks RSA?

Over the past week, a rumor has spread that an AI lab has found a fast way to factor large numbers, which would break RSA and much of the public-key cryptography that secures the internet.

Nothing of the kind has been demonstrated, and the person whose comment started the rumor has asked people to stop citing him for it.

This post covers where the rumor came from, what has actually been shown, what a real break would expose, and how prepared the industry is for one.

In cryptography's standard cast, Alice and Bob are the two parties trying to talk, and Eve is the eavesdropper. Since 1976, when Diffie and Hellman showed that two strangers could agree on a secret over a line she is tapping, Eve's role has been to listen to the whole exchange without being able to work out the secret. The question behind the rumor is what happens if she finally wins a round.

Fifty years of Eve, abridged

Where the rumor came from

Within a few days this month, OpenAI and Anthropic each posted a proof of a long-open conjecture in complexity theory, OpenAI posted a paper claiming the exact exponent of matrix multiplication, and Google published six machine-produced papers, two of them on factoring.

The computer scientist Scott Aaronson titled his post about the OpenAI results with two words, repeated four times, that I'll let you look up.

The rumor came from a comment Aaronson left on his blog the night before, late on November 24. He wrote that he had heard many rumors that one or both labs had a method for factoring large numbers that is efficient in theory (polynomial time, in the jargon), and that he didn't know how much to credit them. He added that he was all but certain the labs held unpublished results that matter for cryptography.

Most people who repeated the comment repeated only the factoring part. Within a day he had added a note asking people to stop citing him as an authority on that claim, because "a rumor is a rumor is a rumor," and the part he was confident about falls well short of it.

By November 27 he was more specific: he expects the labs to release a major result in theoretical cryptanalysis that puts no deployed cryptosystem in imminent danger. By then other rumors had joined the first, about elliptic curves and about the lattice math behind the new post-quantum standards.

How Alice and Bob keep a secret

Most people hear "encryption is broken" and picture every password and file on Earth becoming readable at once, but public-key cryptography does only part of the work of keeping data secret.

Public-key cryptography rests on math that is easy in one direction and extremely hard in the other. Multiplying two enormous primes takes your laptop less than a millisecond. Recovering the two primes from the product, at the 2048-bit size in use today, is far beyond any factoring that has been demonstrated.

That asymmetry lets Bob publish the product for everyone to see while keeping the primes to himself. The usual picture is a padlock: Bob hands out open padlocks, anyone can snap one shut on a box, and only Bob has the key.

RSA is built on this factoring problem and elliptic-curve cryptography on a different one, so a shortcut for one may leave the other standing.

On the internet, that trick does two jobs:

  • Agreeing on a secret in public. Your browser and a server you have never met settle on a shared key while Eve watches the whole exchange.
  • Signing. A website, a software update, or a payment proves it came from who it claims, and anyone can check that proof.

Eve attacks the first job. She only listens, recording the exchange in the hope of working out the key.

The second job has its own adversary in the standard cast, Mallory, who takes an active part: she places herself between Alice and Bob, poses as each of them to the other, and can alter what they send. Signatures are what stop her, because she cannot produce one that checks out as Bob's.

Once those two jobs are done, public-key math steps aside. The actual data is scrambled with a symmetric cipher, usually AES, which is a different kind of machine with no factoring involved.

What has actually been shown

Four questions help in judging a headline about broken cryptography:

  • Which problem? Factoring, elliptic curves, lattices, or something that merely sounds adjacent?
  • At what size? A toy, a retired key size, or the sizes actually deployed?
  • With what access? Only the public key, or a device that will sign whatever the attacker hands it?
  • Run or estimated? Did someone break a real key, or publish a formula?

Applied to November's results:

Result and problem At what size With what access Run or estimated
OpenAI (Nov 24): the matrix multiplication exponent, which is not a cryptosystem n/a n/a A proof, part of it not yet machine-checked
Google (Nov 25): two papers on factoring Asymptotic, with no speedup over existing methods Public key only A proof
Google DeepMind (Nov 6): RSA signature forgery and batch factoring 1024-bit, which NIST disallowed for new signatures after 2013 The forgery needs a device that signs raw inputs One faster rerun of an existing attack; the rest are estimates
Zhejiang University (Nov 24): elliptic-curve discrete log Asymptotic, with no effect seen on the 256-bit curves in use Public key only A conditional proof, not peer reviewed
The rumor: fast factoring Unknown Unknown Unverified

Most of these results are asymptotic, which means they describe how cost grows as the numbers involved head toward infinity. Real keys have a fixed size. An algorithm can be a landmark in theory and still be slower than the one already running on your laptop at every size that fits in this universe.

A real threat needs a practical shortcut against a specific deployed problem at a deployed size, and it has to work with only what an attacker can reach. The attack DeepMind reran forges a signature only after about four billion requests to a device that signs raw inputs, which is a much narrower threat than factoring a public key.

The record for factoring an RSA challenge number moved this September to 896 bits. That run used the same number field sieve that has held the record since the 1990s, ported to GPUs with an AI model's help, and its author says it did not meaningfully improve the algorithm. It shows that the old 1024-bit size is coming within reach of anyone with a data-center fleet of GPUs, while a 2048-bit key remains, by the standard estimates, billions of times harder than that.

A real break would be cheap to prove, because RSA-2048 is a 617-digit number that has been public since 2001, and anyone who can factor it can end the debate by posting two primes, which would be shorter than most of what has been written about the rumor. So far nobody has.

If the rumor were true

If factoring falls, RSA signatures can be forged, so Mallory can mint a certificate for your bank or sign malware as an operating system update. With a forged certificate she can also sit in the middle of a live connection and read it, however strong the key exchange is. That lasts until verifiers stop accepting RSA signatures.

Eve gets less than you might expect from a factoring break, because TLS 1.3, the current protocol behind HTTPS, never uses RSA to protect the session key, and many older sessions used RSA only to authenticate the server. Recordings of those sessions stay shut.

What opens is older sessions that used RSA key exchange, along with files and email encrypted directly to RSA keys.

If elliptic curves fall, the damage is wider. Mallory can forge the signatures behind most new certificates, passkeys, and cryptocurrency transactions, and Eve can open any recorded session whose key agreement relied on elliptic curves alone.

If both fall, you have the scenario the industry has been planning for since 2016, because that is what a large quantum computer would do.

What stays secure in every case is the symmetric machinery itself. A factoring or elliptic-curve breakthrough would not, by itself, break AES or SHA-256, so hashed passwords, a disk encrypted with a passphrase, and the six-digit codes in your authenticator app are unaffected. Data encrypted with AES can still become readable if the attacker recovers its key through a broken public-key exchange, which is what would happen to recorded traffic.

Encrypted traffic is cheap to store, and well-resourced adversaries have been storing it for years on the bet that they can open it later. The strategy is called harvest now, decrypt later, and what it pays depends on shelf life. The recordings with the longest-lived value are diplomatic cables, medical records, and the source code of systems still in service, whereas the card details from a 2019 Cyber Monday checkout expired long before Eve could read them.

If Eve gets her revenge, it will take the form of a back catalog becoming readable.

Bitcoin and the banks

The loudest claims have been about money: one post on X from a business school professor said the financial system "definitely breaks," and others predicted the end of Bitcoin. Each claim has some truth in it, and how much depends on three things the claims leave out: which algorithm fell, which keys are exposed, and what other controls sit behind the cryptography.

Bitcoin does not use RSA. Its signatures are built on an elliptic curve and its mining on SHA-256, so the rumor as stated, a fast factoring algorithm, would not touch it. An elliptic-curve break would be a legitimate worry, because a signature is the only thing standing between an attacker and the coins, and a transfer cannot be reversed.

Even in that case, a coin is at risk only when its public key is visible on the chain, which Glassnode estimates is true for about 35% of the supply, plus any coin at the moment its owner spends it, because a transaction reveals the key before it is confirmed. The fix is a new signature scheme, and the hard part is getting a decentralized network to agree on one.

Banks hold money as entries in ledgers that they control. If Mallory could forge a bank's certificate, she could impersonate its website, and that would mean real fraud. Banks also have login checks, fraud monitoring, reconciliation between institutions, and the ability to dispute and reverse a transfer, all of which can limit losses and restore records.

A widespread break could still cause serious fraud and disruption, since some of those controls depend on the same cryptography. The outcome would depend on which systems were affected and how quickly trust could be restored.

Card payments mostly rest on symmetric keys. In most chip transactions, the card proves itself to the issuing bank with a code computed from a key the two share, which a break in RSA or elliptic curves would leave alone. The exposed part is offline card authentication, used at places such as transit gates, where the terminal checks the card's public-key signature without contacting the bank.

Paying on a website depends on HTTPS, like everything else on the web, which makes the eve of Cyber Monday an awkward moment for this rumor.

The Bank of England's Financial Stability Report this month says quantum computing could compromise widely used cryptography and calls an orderly transition to quantum-resistant cryptography a priority.

We have done this before

Cryptography is engineered on the assumption that its parts expire, and the internet has retired broken ones several times.

  • DES. In 1998 the EFF built a machine that cracked a 56-bit DES key in 56 hours, and AES replaced it in 2001.
  • SHA-1. A theoretical break landed in 2005. Browsers stopped trusting SHA-1 certificates in early 2017, and the first real collision arrived a few weeks later.
  • RSA key sizes. NIST disallowed 1024-bit keys for new signatures after 2013, thirteen years before this month's results against them. Some old systems still verify with them.

Each of these migrations was slow, and each got done on the mainstream web, with stragglers in legacy systems for years afterward. They worked because breaks usually arrive with warning shots: a theoretical weakness, then a better one, then a demonstration, spread over years.

The rumor describes the other kind, a break with no warning, and a mathematical break could also spread faster than a quantum one. A quantum attack needs specialized hardware that takes years to build. An algorithm is a document, and a practical one would run on computers that already exist.

That is a good reason for a lab to hold a result back for a while. The responsible course for a practical break is the one used for any serious vulnerability: tell the people who maintain the affected systems, ship the fixes, and then publish. The industry kept Spectre and Meltdown quiet for more than six months on that basis.

As of this weekend, 21 cryptographers, including Dan Boneh and Matthew Green, have formed the Cryptography Incident Review Group to advise on how a break should be disclosed. It has not identified any compromised system.

The head start, and its gaps

This time the replacements are already built, and some are already running. Because of quantum computers, cryptographers have spent a decade designing public-key algorithms that avoid both factoring and elliptic curves. NIST finalized the first standards in 2024 and last month published the retirement schedule, under which RSA and elliptic-curve algorithms are deprecated after 2030 and disallowed after 2035.

Chrome turned on a hybrid key exchange in 2023, before any schedule existed, and Signal and iMessage followed. Hybrid means the session key is derived from an elliptic-curve exchange and a post-quantum one together, so Eve has to break both.

Cloudflare's Radar dashboard shows about 73% of human HTTPS requests reaching its network in the seven days ending November 29 using a hybrid exc

Read on Hacker News ↗ ← Back to News

Comments

No comments yet. Start the discussion.