Galactically far away: what the AI attack on ML-KEM and ML-DSA means
Summary
JP Aumasson, Mari Galicer, Christopher Patton and Bas Westerbaan of Cloudflare explain why the lattice papers Anthropic published on 30 November do not break the post-quantum schemes ML-KEM and ML-DSA in practice. The new quantum algorithm is faster only for growing parameters and costs far more than known attacks at the standardised sizes, yet a group of cryptographers expects further improvements. This article compares Cloudflare's assessment with the paper itself, the statement of the review group CIRG, heise, Golem and two combative blogs, and shows how to check your own SSH and TLS connections.
First the rumour, then the paper
In late November a rumour spread that an AI company had cracked 2048-bit RSA. It began with a blog post by the computer scientist Scott Aaronson on 25 November: according to several reliable sources it was virtually certain that the AI labs were sitting on bombshells in cryptography. The same paragraph said that the specifics were far less clear and that unverified rumours should not be spread. A clarification followed on 27 November: a theoretical breakthrough was coming that would not put any deployed scheme in imminent danger. That is exactly what happened. By then, however, social networks were talking about RSA, the Guardian ran a headline with “global chaos”, and according to Ben Recht Elon Musk endorsed the rumour.
On 30 November Anthropic published four papers on lattice problems, together with a formalisation in the proof assistant Lean. They are not about RSA. They concern the mathematics behind ML-KEM (key exchange, FIPS 203) and ML-DSA (signatures, FIPS 204), the very schemes meant to replace RSA and elliptic curves because of future quantum computers. According to the project description, an internal research model found the results, and AI models also wrote the formalisation.
What “galactic” means
Lattice schemes rely on problems such as Module-LWE: recovering a secret from many slightly noisy linear equations. The main paper describes a quantum algorithm for this with quasi-polynomial running time. For fixed rank it grows roughly like n to the power of log n, faster than any polynomial but much more slowly than exponentially. This holds only as the degree n of the rings grows. ML-KEM and ML-DSA keep n fixed at 256 and raise security through the number of components, the rank k. In that direction, Cloudflare says, the cost grows exponentially.
Algorithms are called galactic when their advantage begins only at unrealistically large inputs. The paper says so itself, even in its title. For ML-KEM-512, the smallest parameter set, intermediate steps can lead to lattices whose rank is greater than 2 to the power of 10,400. The review group CIRG writes that even 2 to the power of 1,000 quantum operations would be far below the cost. For comparison, Cloudflare gives the security target of the smaller ML-DSA variant as 2 to the power of 128. The known classical attacks therefore remain orders of magnitude faster than the new one, and they are far out of reach as well.
Where Cloudflare and the review group differ
Anthropic shared the results with several experts in advance on 16 November. The statement on them comes from the Cryptography Incident Review Group (CIRG), according to heise 21 hastily assembled experts. Both sides reach the same conclusion: the move to post-quantum schemes should continue, because RSA and elliptic curves fall with far fewer quantum resources.
The tone differs, though. Cloudflare sees no sign of a fundamental flaw and stresses the security margins. CIRG considers it reasonable to expect improvements to the attack in the near future. Whether they will lower the cost against real parameters is open. It therefore recommends the highest security level an application can support, hybrids with different mathematical foundations, replaceable schemes and additional standards.
What was not found matters too: no better classical attacks on mainstream lattice schemes and no better quantum attacks on unstructured lattices. The new attack exploits the algebraic structure that makes ML-KEM small and fast. For unstructured lattices, CIRG even regards the results as evidence in favour of their security.
What was already documented: RSA-896, Hawk and AES
The most tangible finding for admins has nothing to do with lattices. On 19 September Stephen Weis factored the number RSA-896 with the help of AI. The AI ported the program CADO-NFS to GPUs; the computation ran for ten days on up to 2,048 GPUs and took about 30 GPU-years. The method itself did not become meaningfully faster, and according to Weis RSA-2048 is not affected. RSA-1024, however, is vulnerable to many actors with GPU fleets at data centre scale. Golem adds a second figure: Eric Lu, who factored RSA-260 with an AI agent, estimates the cost for RSA-1024 at about 30 million US dollars and considers RSA-2048 about a billion times harder.
In July Anthropic reported two more results. One attack halved the effective key length of Hawk, a candidate for post-quantum signatures in the NIST process. A second sped up known attacks on AES by a factor of 200 to 800, but only for a variant reduced from ten rounds to seven. Deployed systems were not affected. According to the new main paper, Hawk was withdrawn from the NIST process in July 2026. This is how review should work: a weak candidate falls before it becomes a standard.
P, NP and RSA: three things that are often confused
Golem places the finding within the wave of AI-generated proofs and asks whether P ≠ NP will soon be settled. For encryption such a proof would be worth less than it sounds. P ≠ NP only says that some problems are hard in the worst case. Cryptography needs problems that are hard on average, that is, for practically every randomly chosen key. Conversely, factoring, on which RSA rests, could be easy even if P ≠ NP holds. It is considered unlikely to be NP-complete.
The Golem article sees the greater risk in the pace. Standards are designed for the historical speed of progress, and new standards and their rollout take time. AI could also help find side channels in specific implementations. According to Golem, Bruce Schneier remains calm and trusts in generous safety margins.
Two dissenting voices: Ben Recht and geohot
On the blog arg min, Ben Recht calls the finding a nothing result. Useful quantum computers do not exist, the argument goes, and Peter Shor's algorithm against RSA has been known for 32 years without the world ending. The accusation is aimed at the communication: an embargo was unnecessary and only allowed the rumours to grow.
On 1 December George Hotz, known as geohot, called tongue in cheek for a ban on fearmongering and vagueposting, because otherwise a sysadmin might lose sleep over RSA keys. The demand is withdrawn right away, since free speech matters more. On the subject itself Hotz stands on the other side: in March geohot wrote that it was only a matter of time before AI finds a fast factoring algorithm, and hoped for its publication. That is an opinion without evidence, but it shows why nobody should rely on a single scheme.
Check for yourself: SSH and TLS
SSH: “ssh -v server true 2>&1 | grep 'kex: algorithm'” shows the negotiated key exchange. On a Debian 13 machine with OpenSSH 10.0 the test returned mlkem768x25519-sha256. This is a hybrid of ML-KEM-768 and X25519 and has been the default since OpenSSH 10.0. From version 10.1 the client warns if the server does not offer a post-quantum scheme.
TLS: “openssl s_client -connect example.org:443 </dev/null 2>/dev/null | grep -E 'group|Temp Key'” shows the group, provided OpenSSL 3.5 or newer runs locally. For cloudflare.com the test showed X25519MLKEM768. If it only says X25519, the connection is secure today but not protected against recording now and decrypting later. The hybrid is also the insurance against news like this: anyone who wants to break it has to break both parts.
Ideas
- The new attack is faster only in the limit, not at standardised key sizes.
- ML-KEM raises security through the rank, while the attack benefits from the ring degree.
- Algebraic structure saves bytes and computing time but gives attackers extra points of attack.
- Hybrid schemes hold as long as one of the two combined schemes holds.
- Recorded traffic makes key exchange more urgent than signatures.
- A proof of P ≠ NP would not secure a single cryptographic scheme in use today.
- RSA-1024 can be attacked classically with enough GPUs, without any quantum computer.
Insights
- An attack can be mathematically significant and have no practical consequences; only the parameters decide which kind of news it is.
- Diversity is the only safeguard that also helps against unknown attacks: different assumptions, replaceable schemes, hybrids.
- Anyone who stays with RSA for fear of lattice attacks chooses the scheme for which a more practicable quantum attack has been known since 1994.
Quotes
- “AI doesn’t change whether a cryptographic system is secure. It changes how quickly we understand its exact security level” (Cloudflare)
- “It is reasonable to expect that the attack will be improved in the near future.” (CIRG)
Facts
- The main paper has 283 pages; it explicitly does not treat the Module-SIS parameters of ML-DSA.
- According to Cloudflare, 73 percent of human traffic to Cloudflare is already post-quantum encrypted.
- OpenSSH has offered post-quantum key exchange by default since version 9.0 (April 2022).
- The German BSI guideline TR-02102-1 (version 2026-01) recommends ML-KEM-768 and ML-KEM-1024, both as hybrids with a classical scheme.
- The same guideline lists FrodoKEM (unstructured lattices) and Classic McEliece (error-correcting codes) as alternatives.
References
- Cloudflare: Post-quantum cryptography is still safe
- CIRG: Initial Assessment of Anthropic’s Findings on Lattice Cryptography
- Anthropic: Galactic quasi-polynomial quantum algorithms for integral and module lattices (PDF)
- GitHub: Four papers on lattices with a Lean formalization
- heise: Anthropic cracks post-quantum encryption only on paper (German)
- Golem: Will P != NP soon be settled, and would that be good? (German)
- Ben Recht: Cryptopocalypse
- geohot: Get in losers, we’re building AI
- geohot: Polynomial Time Factoring Algorithm
- OpenSSH: Post-Quantum Cryptography
- BSI: TR-02102-1, Cryptographic Mechanisms, version 2026-01 (PDF, German)
- Scott Aaronson: post of 25 November 2026
- Scott Aaronson: post of 27 November 2026
- Stephen Weis: RSA-896
- Anthropic: Discovering cryptographic weaknesses, July 2026
- Golem: AI labs said to be withholding an explosive breakthrough (German)
Critique
- Cloudflare sets the billions of logical qubits required against today's “thousands” without saying that the latter are physical qubits. One logical qubit needs many physical ones, so the gap is even larger than the text suggests.
- The Golem article of 1 December still reports astonishment that there are no AI publications on cryptography. It does not mention the lattice papers of the previous day.
Remarks
- Cloudflare sells services with post-quantum encryption and has an interest in reassuring news. Its main message, however, agrees with the paper and with CIRG.
- Lean checks whether a proof matches the formal statement. Whether that statement says the same as the text is, according to the project description, for readers to judge.
Recommendations
- Keep planning the move to post-quantum key exchange and do not switch off existing hybrids because of this news.
- Use the two commands above to check first those servers whose data must still be confidential in ten years.
- Check whether an old KexAlgorithms line in sshd_config excludes the post-quantum schemes.
- Replace 1024-bit RSA keys now and note where RSA, ECDSA or X25519 are hard-wired.
Found a mistake or have something to add? Get in touch.
Links to the original source and the Web Archive open in a new tab.