A galactic quantum attack on the lattices behind ML-KEM, found by Claude

Anthropic has released four papers and a Lean proof in which an internal Claude model gives quasi-polynomial-time quantum algorithms for module lattices, the structure under the NIST standards ML-KEM and ML-DSA. Reviewing cryptographers say even 2 to the power 1,000 quantum operations would fall far short of breaking the smallest standard parameters, and advise continuing the move to post-quantum cryptography.

Key points

  • On 30 November 2026 Anthropic published four lattice-cryptography papers with a Lean 4 formalization. It says an internal research Claude model discovered the results and AI models wrote the formal proofs.
  • The main paper claims quantum algorithms that run in quasi-polynomial time on module lattices of small rank over the rings used by ML-KEM and ML-DSA, including random search Module-LWE. No such weakness of module lattices was known.
  • The algorithms are galactic: the Cryptography Incident Review Group says even 2 to the power 1,000 quantum operations would be far below their cost against ML-KEM-512 and ML-DSA-44.
  • The speedup grows with the ring degree, which the standards fix at 256; they gain security by raising the rank instead. The reviewers recommend continuing the migration and choosing the highest security level that fits.
  • The proofs are unrefereed, and whether the Lean statements match the papers has not been independently reviewed. Three companion papers strengthen the foundations of unstructured lattices.
In this article
  1. The news What was announced
  2. Why do we need new locks at all?
  3. What is a lattice, and what is hard about it?
  4. How do you make a lock from a lattice?
  5. What structure do the standards add?
  6. What does the new algorithm achieve?
  7. Where does the speedup come from?
  8. And where does the quantum computer come in?
  9. If the attack is so much faster, why is ML-KEM safe?
  10. What do the other three papers show?
  11. What exactly did Lean check?
  12. Back to the claim What did Claude do?
  13. Where it stands What happens next

The news

What was announced

On the evening of 30 November 2026 Anthropic added a folder called lattices to its public formal-math repository on GitHub. It holds four papers on the lattice problems behind much of post-quantum cryptography, credited only to “Anthropic”, and a Lean 4 formalization of their results. The folder's README says: “The results were discovered by an internal research Claude model. The formalization was written by AI models.” As of 2 December Anthropic has published no blog post about it. Its account on X said the results “do not have practical, real-world consequences for today's security systems.”

papers, with a Lean 4 formalization
4
pages in the main paper
270
main theorems stated and proved in Lean
132
results shared with outside cryptographers
16 Nov

The main paper, 270 pages long, is titled “Galactic quasi-polynomial quantum algorithms for integral and module lattices”. It claims quantum algorithms that solve hard problems on module lattices, the structured lattices used by the NIST standards ML-KEM and ML-DSA, asymptotically far faster than any known method. “Galactic” is a warning, and the abstract spells it out: the algorithms “are not practical for the parameter sets of ML-KEM and ML-DSA.”

Anthropic shared the results on 16 November with members of the Cryptography Incident Review Group (CIRG). Its 21 members serve in a personal capacity and include Dan Boneh, Vadim Lyubashevsky, Daniele Micciancio, Chris Peikert and Vinod Vaikuntanathan. The group's initial assessment, posted on 30 November, calls the attack's scale galactic and recommends that the move to post-quantum cryptography continue.

How can an attack be asymptotically far faster than anything known and still break nothing? The answer depends on what the standards' lattices look like and in which direction they grow, so we start with the lattices.1,2,7,8,9,18

Why do we need new locks at all?

Most public-key cryptography in use today, RSA and elliptic-curve key exchange and signatures, rests on factoring and discrete logarithms. Shor's algorithm solves both in polynomial time on a large enough quantum computer. A replacement must therefore rest on a problem for which no quantum algorithm is known to do much better than classical ones.

In August 2024 NIST standardized two such schemes, both built on lattices: ML-KEM (FIPS 203) for agreeing on keys and ML-DSA (FIPS 204) for signatures. The migration to them has begun. The case for lattices has always been partly an argument from absence: decades of work found no quantum speedup on lattice problems beyond small, generic ones. That absence is what the new paper challenges, for one kind of lattice.12,13

What is a lattice, and what is hard about it?

Take two vectors \(\mathbf b_1,\mathbf b_2\) in the plane and form every integer combination \(a_1\mathbf b_1+a_2\mathbf b_2\). The result is a regular grid of points, a lattice. The same grid has many bases. In the figure the long, skewed pair \(\mathbf c_1,\mathbf c_2\) generates exactly the same points as the short pair, because each pair is an integer combination of the other.

Two questions then become hard in high dimension. The shortest vector problem (SVP) asks for the shortest nonzero lattice point. The closest vector problem (CVP) asks, given a target \(\mathbf t\) off the grid, for the nearest lattice point \(\mathbf v\). With a short, nearly orthogonal basis both are easy: write \(\mathbf t\) in that basis and round the coordinates. With a long, skewed basis, rounding lands far from \(\mathbf v\), and in hundreds of dimensions no known algorithm, classical or quantum, turns a bad basis into a good one in less than exponential time. Cryptography relies on approximate versions, where any answer within a factor \(\gamma\) of the best will do, and the paper's guarantees are stated for such factors.

OriginLong basis vector c1 = 5 b1 + 2 b2Long basis vector c2 = 2 b1 + b2Short basis vector b1Short basis vector b2b1b2c1c2Closest lattice point vTarget t = v + etve
One lattice, two bases. The short vectors \(\mathbf b_1,\mathbf b_2\) (blue) and the long vectors \(\mathbf c_1=5\mathbf b_1+2\mathbf b_2\), \(\mathbf c_2=2\mathbf b_1+\mathbf b_2\) (orange) generate the same points, because the change of basis has determinant 1. The target \(\mathbf t\) lies a small error \(\mathbf e\) away from the lattice point \(\mathbf v\). Rounding the coordinates of \(\mathbf t\) in the short basis finds \(\mathbf v\); in the long basis it does not.

How do you make a lock from a lattice?

Learning with errors (LWE), introduced by Oded Regev in 2005, is a system of linear equations modulo a number \(q\) in which every equation is slightly wrong. Choose a secret vector \(\mathbf s\). Publish a random matrix \(A\) and \[ \mathbf b\equiv A\mathbf s+\mathbf e \pmod q, \] where the error \(\mathbf e\) has small entries. Without \(\mathbf e\), Gaussian elimination recovers \(\mathbf s\). With it, the problem looks like the figure in hundreds of dimensions: the vectors \(A\mathbf s \bmod q\) form a lattice, \(\mathbf b\) is a target a small distance \(\mathbf e\) from one of its points, and finding \(\mathbf s\) is a closest-vector problem.

Why trust it? Regev proved that solving random LWE instances is at least as hard, for quantum algorithms, as solving approximate lattice problems on every lattice. An attacker therefore cannot hope for lucky instances; breaking the average case means breaking the worst case. Encryption follows naturally: the public key is an LWE instance, and a message is hidden under fresh noisy combinations that only the holder of \(\mathbf s\) can strip off.14,15

What structure do the standards add?

Plain LWE is bulky: a key contains a whole random matrix. The standards save space by replacing numbers with polynomials. Work in the ring \(R=\mathbb Z[x]/(x^n+1)\) with \(n=256\). An element is a polynomial with 256 coefficients, and multiplying by it acts on those coefficients as a \(256\times256\) matrix that is fixed by a single row. Module-LWE takes \(A\) to be a small \(k\times k\) matrix of such polynomials, so a lattice of dimension \(kn\) is described by \(k^2\) polynomials rather than \((kn)^2\) numbers. The number \(k\) is the rank.

Does the structure help an attacker? For rank one, the ideal lattices, it does. Quantum algorithms from 2016 and 2017 find short vectors in ideals of certain cyclotomic fields, under number-theoretic hypotheses, within factors of about \(e^{\tilde O(\sqrt n)}\), far better than generic methods, though too coarse to threaten Ring-LWE. For rank two and above, nothing was known. In 2015 Adeline Langlois and Damien Stehlé, who laid Module-LWE's worst-case foundations, wrote: “No weakness is currently known for module lattices of module rank greater than 1. Designing algorithms that exploit this structure is a very exciting research problem.” Until now the fastest attacks on a module lattice of rank \(k\) treated it as an ordinary lattice of dimension \(kn\), at a cost exponential in \(kn\).12,13,16,17,2

Parameters from FIPS 203 and FIPS 204. Every set uses the same ring, of degree 256; higher security comes from a larger rank, that is, more ring components. ML-DSA's matrix is not square.
Parameter setRankModulusNIST category
ML-KEM-512\(2\)3,3291
ML-KEM-768\(3\)3,3293
ML-KEM-1024\(4\)3,3295
ML-DSA-44\(4\times4\)8,380,4172
ML-DSA-65\(6\times5\)8,380,4173
ML-DSA-87\(8\times7\)8,380,4175

What does the new algorithm achieve?

Measure cost against the ring degree \(n\). The previous attacks took time \(2^{\Theta(kn)}\), exponential in \(n\). The new quantum algorithms take quasi-polynomial time, \(n^{O(\log n)}=2^{O((\log n)^2)}\), for any rank up to a power of \(\log n\); CIRG summarizes the cost as \(n^{\mathrm{poly}(k)\log n}\). The exponent drops from linear in \(n\) to quadratic in \(\log n\). As \(n\) grows, that is an enormous gain.

With that running time, paper 1 claims the following for module lattices over \(\mathbb Z[x]/(x^n+1)\), \(n\) a power of two: approximate SVP, CVP and the related shortest-independent-vectors problem within factors \(O(kn)\); random instances of search Module-LWE with short secret and error, for prime moduli between about \(Cd\sigma^2 n\) and \(2^n\); and, for NTRU lattices whose key is short, the dense piece of the lattice that contains the key. The same machinery also finds an orthonormal basis of any rotated copy of \(\mathbb Z^m\), splits lattices into orthogonal pieces, and samples discrete Gaussians on duals of integral lattices.

The paper is just as explicit about what it does not claim. Without ring structure, the case \(n=1\), its bounds are exponential and “give no sub-exponential bound for LWE and SIS”. The Module-LWE theorems cover the search version, not the decision version, and the Module-SIS problem in ML-DSA is not treated. CIRG reports that Anthropic found no improvement in classical attacks on any mainstream lattice system.2,7

Where does the speedup come from?

The paper turns the question around. Instead of “where is the short vector?” it asks “which part of the lattice is unusually crowded?” Measure the density of a lattice \(X\) of rank \(r\) by its normalized determinant \(\mathrm{nd}(X)=(\det X)^{1/r}\), the side of a cube holding one point's share of volume. A small value means tightly packed points. Every sublattice has its own value. If no sublattice is denser than the whole, the lattice is called semistable. If one is, there is a largest densest sublattice. Divide it out and repeat, and you get a chain called the canonical filtration, studied by Stuhler and Grayson in the 1970s and 1980s as the lattice version of a construction from algebraic geometry.

Why should that reveal an LWE secret? Append the target \(\mathbf t\) to the lattice as one more basis vector, a trick due to Kannan. If \(\mathbf t\) lies very close to a lattice point \(\mathbf v\), the new lattice contains the very short vector \(\mathbf t-\mathbf v\). Now the ring matters. Multiplying by \(x\) shifts a polynomial's coefficients cyclically, flipping one sign, without changing their length. So one short vector brings \(n\) equally short ones, \(\mathbf e, x\mathbf e,\dots,x^{n-1}\mathbf e\), which span an \(n\)-dimensional block far denser than the rest of the lattice. That block is the first term of the canonical filtration. Compute the filtration and you have the error, and with it the secret.

In a plain lattice a short vector is a lone line; in a module lattice the ring copies it into a dense block that a density-based method can detect. That is the kind of structure Langlois and Stehlé hoped someone would exploit, and its absence is why the method gives nothing for unstructured LWE.2

And where does the quantum computer come in?

Finding the canonical filtration is itself hard: the best general method approximates it in time \(2^{O(kn)}\). The paper's Theorem A computes it exactly for module lattices over these rings, and returns a certificate that an ordinary computer can check in polynomial time. It needs one resource: a supply of discrete Gaussian samples, random lattice points drawn with probability proportional to \(e^{-\pi\|\mathbf y\|^2/s^2}\). From these it builds integer-valued quadratic forms on tensor constructions of the lattice and improves them step by step, recursing down a tower of subrings.

The quantum computer supplies the samples. Part 1 prepares a “class state”, a superposition over the bases of a lattice, labelled by their class modulo a sublattice. The state hides a group of the lattice's symmetries, a hidden-subgroup problem of the family that includes Shor's algorithm. Combining copies of the state, in a way the paper compares to Kuperberg's sieve, reveals the group's generators; these give a decoder that takes the place of the LWE oracle in Regev's quantum reduction, and repeating that step yields shorter and shorter dual vectors and finally the Gaussian samples. For a lattice of rank \(m\) the sieve needs about \(2^{O(\log^2 m)}\) copies, which is one reason the time is quasi-polynomial rather than polynomial.

We have read the paper's overview and outlines, not its proofs. The proofs have not been refereed. The formal check described below is, for now, the main evidence that they are correct.2

If the attack is so much faster, why is ML-KEM safe?

The first reason is size. “Quasi-polynomial” hides enormous exponents. For ML-KEM-512 the algorithm must compute the canonical filtration of a module lattice of rank 5, and some of its sampling steps act on lattices of dimension greater than \(n^{52\cdot5^2}=2^{10400}\). The Lean statement for square Module-LWE bounds the time by \(2^{c\,k^8(\log_2 n)^2}\) for an unnamed constant \(c\); at \(n=256\) and \(k=2\) that is \(2^{16384c}\), while a generic attack's exponent grows like \(kn=512\). The paper gives a cleaner example for rotated copies of \(\mathbb Z^m\): at \(m=1024\) a single run of its decoder prepares about \(2^{840}\) quantum states, against a heuristic classical cost near \(2^{150}\), and the quantum method only wins above \(m\approx 8800\). CIRG, which used AI models to optimize the attack and estimate its cost, puts it this way: “even (say) \(2^{1000}\) quantum operations would be far below its cost for the smallest parameter sets (ML-KEM-512 and ML-DSA-44), even under assumptions favorable to the attacker.”

lower bound on the dimension of some sampling lattices, for ML-KEM-512
\(2^{10400}\)
quantum operations, “far below” the attack's cost on the smallest standard parameters
\(2^{1000}\)
ring degree from which the Lean statements on scheme-like families apply; the standards use 256
\(2^{29}\)

The second reason is direction. The speedup appears as the ring degree \(n\) grows. The standards fix \(n=256\) and reach higher security by raising the rank, as the table above shows. In CIRG's words, “if these standards were scaled up in a certain way, their quantum security would increase much more slowly than previously believed.” The paper defines families that extend ML-KEM and ML-DSA to growing \(n\); the Lean statements about such schemes apply from \(n\ge 2^{29}\) or \(2^{30}\). For the actual ML-DSA parameter sets, the paper's bound on the failure probability exceeds 1, so its theorem guarantees nothing there.

The third reason is hardware. The attack needs a large fault-tolerant quantum computer, which does not exist. A machine able to run it could break RSA and elliptic curves with Shor's algorithm using far fewer resources, which is why CIRG warns that delaying the migration would prolong reliance on systems that are much easier to break.2,6,7

What do the other three papers show?

They point the other way. Papers 2 to 4 strengthen the reductions that make unstructured LWE and SIS, the versions without ring structure, at least as hard as worst-case lattice problems. Stronger reductions mean an attacker must solve a harder, better-studied problem to break the scheme. CIRG reads them as “meaningful evidence in support of the post-quantum security of mainstream unstructured-lattice systems.”2,3,4,5,7

The four papers, summarized from their abstracts. Papers 2 to 4 contain no attacks.
PaperMain claimBearing on cryptography
1. Galactic quasi-polynomial quantum algorithmsQuantum algorithms in time \(n^{O(\log n)}\) for module lattices of small rank, including random search Module-LWEAsymptotic weakness of structured lattices; no effect on today's parameters
2. Approximate search SVP reduces to SIS and LWEFinding an approximately shortest vector reduces classically to SIS and quantumly to LWE with Regev's parametersAnswers a question of Lyubashevsky and Micciancio; SIS and LWE schemes rest on search SVP
3. A converse of the dual attackAny distinguisher for noise modulo a lattice yields, quantumly, a short dual vector; LWE at small noise rates is quantumly equivalent to approximate SIVPAny way of telling such noise from uniform implies the short dual vector that the known dual attack uses; LWE-based encryption rests on worst-case search CVP
4. Public-key encryption from GapSVP within Õ(n), classicallyClassical reduction from GapSVP within factors near \(n\) to decision LWE with exponential modulusClassical security of Regev-style encryption from smaller factors than the previous \(\tilde O(n^2)\)

What exactly did Lean check?

The formalization states 132 main theorems under their printed numbers and 190 intermediate statements. The published results that the proofs cite are formalized with their proofs too, so no outside theorem is assumed. Algorithms are programs for a quantum random-access machine defined in about 1,000 lines, and running time is the number of its steps; a further 63 theorems tie that machine to Turing machines and circuits and recover the standard classes P, BPP, PSPACE and BQP. The Comparator tool checks that the proofs establish exactly the stated theorems from Lean's three standard axioms, and replays them in Lean's kernel and in the independent nanoda kernel. A build takes a little over an hour on 12 cores.

What the check cannot settle is whether the Lean statements say what the papers say. The README is direct about it: “That the statements say what the papers say is for the reader to judge; AI readers have compared them with the text.” A separate file lists the departures: running times counted in the machine's steps, which shifts some bounds by logarithmic factors; explicit values for “sufficiently large”; and one hypothesis of the paper, on Gaussian sampling, proved rather than assumed. We have not built the formalization, and we found no report of an independent build. CIRG's statement does not say that its members checked the proofs.1,6,7

Back to the claim

What did Claude do?

Very little is public. The README's two sentences are the whole account: the results were discovered by an internal research Claude model, and AI models wrote the formalization. The papers name no human authors. Anthropic has not said which model it was, how people directed it, or how much computation it used. The Riemann hypothesis proof announced on 20 November came with a note in which a named mathematician described his part; nothing comparable exists here.

The disclosure itself was handled the way cryptographers ask for. Anthropic sent the results to outside experts two weeks before publication, and, according to its post on X as reported by CNBC, to the U.S. government as well. CIRG says it welcomes “cryptographic research of this kind by frontier AI labs, with responsible disclosure of the results.” It also asks for more: labs should share “what they tried, which systems resisted attack, and how much effort they devoted to each.” For a search run by an AI model, the negative results, which lattice systems held up, are as informative as the attack.1,7,18

Where it stands

What happens next

CIRG's advice is to keep migrating. Those adopting the NIST standards should choose the highest security level each application can support, such as ML-KEM-1024 rather than ML-KEM-512, combine schemes built on different mathematics, and design systems so that a scheme can be swapped out quickly. The group also urges NIST and others to standardize more public-key systems of diverse design, “even at some cost in efficiency”, and expects the attack to improve: “A key question is whether such improvements will actually reduce the cost of breaking the NIST standards or other practical structured-lattice systems.”

The result is separate from another recent line of work. CIRG notes that classical, slightly subexponential attacks on structured lattices have followed OpenAI's claimed refutation of the Exponential Time Hypothesis; the new algorithm is quantum, and CIRG describes it as separate from them.

For quantum computing the paper changes a long-standing picture. Structured lattices were chosen in part because nothing suggested that quantum computers attack them better than classical ones. Asymptotically, if the proofs hold, they do: hidden-subgroup methods, the source of Shor's algorithm, reach the lattices of the post-quantum standards. In practice the gap between asymptotic and actual cost is, for now, galactic.7,10

What to ask

  • Will independent cryptographers confirm the 270-page proof, and will anyone rebuild the Lean formalization and compare its statements with the papers?
  • Can the exponents be cut far enough to matter at ring degree 256, or does the attack fundamentally need a growing ring?
  • Does the method extend to decision Module-LWE, to Module-SIS, or to rings other than the power-of-two cyclotomic ones?
  • Which other systems did the Claude model try to attack, and how much effort went into each?

Sources & further reading

  1. Anthropic formal-math: lattices (README, papers and Lean formalization) ↗
  2. Anthropic: Galactic quasi-polynomial quantum algorithms for integral and module lattices (paper 1, PDF) ↗
  3. Anthropic: Approximate search SVP reduces to SIS and SIVP and, quantumly, to LWE and GapSVP (paper 2, PDF) ↗
  4. Anthropic: A converse of the dual attack, and a quantum equivalence of SIVP and LWE at small noise rates (paper 3, PDF) ↗
  5. Anthropic: Public-key encryption from GapSVP within Õ(n), classically (paper 4, PDF) ↗
  6. Anthropic formal-math: where the Lean statements differ from the papers ↗
  7. Cryptography Incident Review Group: Initial assessment of Anthropic's findings on lattice cryptography (30 November 2026) ↗
  8. Cryptography Incident Review Group: members ↗
  9. i10x: Anthropic lattice attack: what it means for ML-KEM (quotes Anthropic's post on X) ↗
  10. ShiftDelete.Net: Cryptographers: Anthropic's lattice attack doesn't break ML-KEM (1 December 2026) ↗
  11. Unite.AI: Anthropic's Claude discovers lattice algorithms with practical limits ↗
  12. NIST FIPS 203: Module-Lattice-Based Key-Encapsulation Mechanism Standard ↗
  13. NIST FIPS 204: Module-Lattice-Based Digital Signature Standard ↗
  14. Oded Regev: On lattices, learning with errors, random linear codes, and cryptography ↗
  15. Oded Regev: The learning with errors problem (survey) ↗
  16. Langlois and Stehlé: Worst-case to average-case reductions for module lattices ↗
  17. Cramer, Ducas and Wesolowski: Short Stickelberger class relations and application to Ideal-SVP ↗
  18. CNBC: Anthropic says cryptography standards are vulnerable, but it poses no immediate threat (1 December 2026) ↗