On 30 November 2026 Anthropic released four papers on lattice cryptography, found by unreleased Claude models, with a Lean 4 proof of the results. Within hours my feed was full of people asking whether Claude had broken the post-quantum encryption everyone has been rolling out. Some asked about RSA-2048 too. The short answer is no to both. The longer answer is more useful, because the formal statement is public and you can read exactly what it claims.

I am a software engineer, not a cryptographer. So I did what I would do with any scary dependency advisory: read the actual claim, plugged real parameters into it, then checked what my own servers negotiate. This post is those three steps.

Tip: ML-KEM, ML-DSA and RSA-2048 are not broken. No change to a key size or a protocol is urgent today. If a message tells you to move funds or reinstall a wallet because of this news, it is a scam.

What was released

The release has four PDFs and one Lean project. They do not all point the same way, which most of the headlines missed.

Paper 1, a quantum algorithm, lowers confidence in structured lattices such as ML-KEM and ML-DSA. Papers 2, 3 and 4, which are security reductions, raise confidence in unstructured lattices such as FrodoKEM.

One paper is an attack. Three are reductions that put plain lattice encryption on firmer ground.

  • Paper 1 gives a quantum algorithm that solves certain module-lattice problems in quasi-polynomial time, including some versions of Module-LWE. Its own title calls it galactic.
  • Paper 2 reduces approximate search SVP to SIS and, quantumly, to LWE. Breaking LWE would then mean solving a worst-case search problem.
  • Paper 3 proves a converse of the dual attack and bases Regev's LWE encryption on the worst-case quantum hardness of search CVP.
  • Paper 4 builds public-key encryption from GapSVP with a classical reduction and a smaller approximation factor than before.

Anthropic shared drafts with outside cryptographers on 16 November. That group published its own assessment as the Cryptography Incident Review Group (CIRG). It says the attack on today's NIST standards needs vastly more computation than attacks we already knew, and those were already out of reach. Its figure for scale: 2^1000 quantum operations would be far below the cost against the smallest parameter sets, ML-KEM-512 and ML-DSA-44, even with assumptions that favour the attacker.

CIRG also reports that Anthropic found no improvement in classical attacks on any mainstream lattice system, and none in quantum attacks on unstructured ones.

The structure that gets attacked

Plain LWE hides a secret behind a big random matrix. The matrix is expensive to send, so ML-KEM uses a structured one. Its entries are polynomials modulo x^256 + 1, and each polynomial stands in for a 256 by 256 block.

That saves a lot of space. It also gives the lattice a symmetry: multiplying by x rotates the coefficients and flips one sign. The length never changes. A few lines of Python show both sides of the trade:

structure.py

import random random.seed(1) n, q = 256, 3329 def mul_x(p): # multiply by x in Z[x]/(x^n + 1) return [-p[-1]] + p[:-1] s = [random.choice([-1, 0, 1]) for _ in range(n)] norm = sum(c * c for c in s) seen, p = set(), s for _ in range(n): p = mul_x(p) seen.add(tuple(p)) assert sum(c * c for c in p) == norm print("one short vector gives", len(seen), "short vectors, all squared norm", norm) print("ML-KEM-768 matrix, structured: ", 3 * 3 * n, "numbers") print("same size, unstructured: ", (3 * n) ** 2, "numbers") 

output

one short vector gives 256 short vectors, all squared norm 172 ML-KEM-768 matrix, structured: 2304 numbers same size, unstructured: 589824 numbers 

So structure buys a 256x smaller matrix, and the price is that every short vector arrives with 255 siblings. Paper 1 defines a module lattice by exactly this property: multiplication by x acts as an isometry. The attack uses that ring action to compute something called the canonical filtration, a chain of unusually dense sublattices. For a Module-LWE instance, the paper builds an embedding lattice in which the densest piece contains the secret.

The unstructured version has no such action, so this method says nothing about it. The paper states that plainly: its bounds give no sub-exponential result for ordinary LWE or SIS.

Reading the theorem instead of the headline

The best file in the repo is PaperDefs/P01/Cases.lean. It states eight results in short form. This is the one about recovering keys from schemes like ML-KEM:

PaperDefs/P01/Cases.lean

def KeyRecoveryInFamiliesTheorem : Prop := ∃ program : QuantumProgram, ∃ c : ℕ, ∀ p ∈ parameterSets, ∀ n ≥ 2 ^ 29, n.isPowerOfTwo → ∀ q ∈ Set.Icc (13 * n) (2 ^ n), q.Prime → program.SolvesAllInstancesButFraction (keyRecovery p n q) (told := [n, p.rank]) (time := 2 ^ (c * n.log2 ^ 2)) (fraction := 2 ^ (-(n : ℝ) / 2 ^ 17)) 

You do not need Lean to read it. There is one quantum program and one constant c. For each of the three ML-KEM parameter sets, for every power of two n from 2^29 up, and for every prime q of at least 13 n, the program finds the secret key for almost all keys in 2^(c (log n)^2) steps.

Two things jump out. c exists but has no value, so you cannot turn the bound into a number. And n starts at 2^29. The real standard fixes n at 256.

Ring degree n on a log scale. ML-KEM and ML-DSA use n = 256. The Lean theorem about ML-KEM-like key recovery applies from n = 536,870,912, which is 2,097,152 times larger.

The promise in the Lean statement begins about two million times above the degree used in practice.

Warning: A threshold in a theorem says where the guarantee starts. It is not a proof that the method fails below it. The evidence that it is useless at n = 256 is the cost, which comes next.

Plugging in the real parameters

The paper also has a general result, Theorem 9.1, with explicit conditions on the modulus and the noise. In Lean they are two inequalities:

PaperDefs/P01/Cases.lean

largeModulus : 2 * (10 * (log x.n + 2)) ^ x.k ≤ (x.q : ℝ) ^ ((x.d * x.m : ℝ) / x.k) smallNoise : 3 * x.σ * √(x.k * x.n) ≤ (x.q : ℝ) ^ ((x.m : ℝ) / x.k) 

Here d is the rank of the secret, m the number of samples, and k = d + m. Every other value is in FIPS 203 and 204, so I checked all six sets:

check_params.py

from math import log, sqrt # name, n, q, d (secret rank), m (samples), sigma^2 of the secret/error coefficients sets = [ ("ML-KEM-512", 256, 3329, 2, 2, 1.5), # centered binomial, eta = 3 ("ML-KEM-768", 256, 3329, 3, 3, 1.0), # eta = 2 ("ML-KEM-1024", 256, 3329, 4, 4, 1.0), ("ML-DSA-44", 256, 8380417, 4, 4, 2.0), # uniform on [-2, 2] ("ML-DSA-65", 256, 8380417, 5, 6, 20/3), # uniform on [-4, 4] ("ML-DSA-87", 256, 8380417, 7, 8, 2.0), ] print(f"{'set':12} {'largeModulus':>13} {'smallNoise':>11} log2(lhs/rhs) of each") for name, n, q, d, m, var in sets: k = d + m l1 = log(2, 2) + k * log(10 * (log(n) + 2), 2); r1 = d * m / k * log(q, 2) l2 = log(3 * sqrt(var) * sqrt(k * n), 2); r2 = m / k * log(q, 2) print(f"{name:12} {'ok' if l1<=r1 else 'fails':>13} {'ok' if l2<=r2 else 'fails':>11} {l1-r1:+.1f} {l2-r2:+.1f}") 

output

set largeModulus smallNoise log2(lhs/rhs) of each ML-KEM-512 fails fails +14.2 +1.0 ML-KEM-768 fails fails +20.9 +1.0 ML-KEM-1024 fails fails +27.5 +1.2 ML-DSA-44 fails ok +4.9 -3.9 ML-DSA-65 fails ok +6.9 -3.9 ML-DSA-87 fails ok +8.7 -4.2 

No real parameter set meets the conditions of Theorem 9.1. For ML-KEM-768 the modulus condition misses by a factor of about 2^21. The margin also grows with the security level inside each family. ML-DSA has a further problem: its public key is rounded, and Theorem 9.1 does not cover rounded samples at all.

Theorem C is the more general version, and the paper uses it to cover the scaled-up families. For the real ML-KEM-512 it gives a concrete sense of cost: some steps would run a Gaussian sampler on lattices of rank above 256^(52 x 25), which is 2^10,400. The observable universe has roughly 2^266 atoms.

The same remark gives a formula, n^(52 k^2), where k is the rank of the lattice the filtration is computed on (d + m + 1). The first row below is the paper's number and the other two are mine from the formula:

sampler-rank.txt

ML-KEM-512 k = 2 + 2 + 1 = 5 rank above 2^10,400 ML-KEM-768 k = 3 + 3 + 1 = 7 rank above 2^20,384 ML-KEM-1024 k = 4 + 4 + 1 = 9 rank above 2^33,696 

This shows why the knob matters. The attack's speedup is in n. NIST raises security by adding components while n stays at 256, and the component count is in the part of the exponent that hurts the attacker. That is the reasoning behind CIRG's advice to pick the highest level you can afford.

What about Falcon?

Falcon, the basis of the coming FN-DSA standard, scales the other way: 512 to 1024 is a larger degree at a fixed small rank. I saw posts conclude that Falcon is now the weak one. The paper does not say that. Its NTRU result covers keys of norm below the square root of q, computes the dense submodule and stops before the key, and states that the keys of Falcon are not treated. It is a fair place to watch. It is not a result.

Where RSA-2048 fits in

RSA-2048 is a different problem. It rests on factoring a 2048-bit number, not on lattices, and none of the four papers mention an improvement there. It still belongs in this post, because it is the thing you would be falling back to if you turned ML-KEM off.

It is also probably in your stack right now. The key exchange and the certificate are separate parts of a TLS handshake, and the certificate on my own site uses an RSA-2048 key:

cert-key.sh

$ echo | openssl s_client -connect mahmadmanzoor.com:443 -servername mahmadmanzoor.com 2>/dev/null \ | openssl x509 -noout -text | grep 'Public-Key' Public-Key: (2048 bit) 

So my handshake has a post-quantum key exchange and an RSA-2048 signature. That is a sensible split for now. Recorded traffic can be decrypted years later, so key exchange had to move first. A signature only has to hold at the moment it is checked, so forging one later does not help with an old session.

  • Classical computers: the public factoring record moved to RSA-896 in September 2026, by an Anthropic researcher who used Claude to port the sieve to GPUs, at roughly 30 GPU-years by their own account. One scaling estimate puts RSA-2048 at about 35 billion times that work.
  • Quantum computers: Shor's algorithm breaks RSA-2048 in polynomial time. A 2025 Google estimate needed under a million noisy qubits for about a week. In October 2026 the hardware company Alice & Bob put its own design at 22,593 cat qubits and 3.14 days. Both are projections on paper. No such machine exists.
  • The calendar: the final NIST IR 8547, published on 27 October 2026, lists RSA as deprecated after 2030 and disallowed after 2035. That covers RSA-2048 and every larger size.

Compare the two columns. Against RSA-2048 the best quantum attack is thousands to a million qubits for days. Against ML-KEM-512 the new one is past 2^1000 operations. That gap is why CIRG says delaying the migration prolongs reliance on systems that fall to far fewer quantum resources.

How much does the Lean proof buy you

AI-written mathematics at this scale is hard to referee. Paper 1 alone runs past 270 pages. That makes the formalization the interesting engineering part. I counted what is in the repo at commit 487d559:

line-counts.txt

CryptoDefs 1,035 lines the machine, resources, problems ConsistencyDefs 367 lines Turing machines and circuits it is compared to PaperDefs 6,717 lines the main theorems PaperDetails 13,892 lines 190 further statements proof 870,854 lines everything else sorry: only in Challenge/ (3 files, by design) axiom declarations: 0 

A human reads about 8,119 lines of statements. Comparator checks that the proofs have the same statements and use only three axioms. Two kernels check 870,854 lines of proof.

The design point: shrink what a person has to read, and let a kernel read the rest.

The pattern is worth stealing for any agent output you cannot review line by line. Challenge/ holds each theorem with sorry in place of its proof. Solution/ holds the proved version. A tool called Comparator checks that the statements match, that only propext, Classical.choice and Quot.sound are used, and replays the proof in Lean's kernel and in a second one written independently. The lakefile.toml labels each library as trusted or untrusted in a comment.

What a kernel cannot do is tell you that a Lean statement means what the PDF says. The README is direct about this: that judgment is for the reader, and so far AI readers have compared them. A wrong definition of the quantum machine would make a perfect proof of the wrong thing. The repo answers part of this with 63 theorems tying its machine to standard P, BPP, PSPACE and BQP.

Note: I read the statements and scanned the sources for sorry and axiom. I did not rebuild the proofs. The README puts a full build at a little over an hour on 12 cores, 12 GB of memory and 21 GB of disk, and compiling Lean runs its macros with your user's rights, so use a throwaway machine.

Check what your own server negotiates

CIRG's advice for the rest of us is four items: keep moving to post-quantum, use the highest level you can, use hybrids, and make schemes replaceable. The first question is what you run now. OpenSSL 3.5 or newer can ask for one key exchange group at a time:

probe.sh

$ echo | openssl s_client -connect example.com:443 -servername example.com \ -groups X25519MLKEM768 -brief 2>&1 | grep -iE 'negotiated|alert' $ echo | openssl s_client -connect example.com:443 -servername example.com \ -groups SecP384r1MLKEM1024 -brief 2>&1 | grep -iE 'negotiated|alert' 

A Negotiated TLS1.3 group line means yes. A handshake failure alert means the server refused that group. I ran both against five hosts on 1 December 2026:

results.txt

host X25519MLKEM768 SecP384r1MLKEM1024 mahmadmanzoor.com yes refused vercel.com yes refused cloudflare.com yes refused google.com yes refused github.com refused refused 

My site gets hybrid for free because Vercel terminates TLS. Nobody in the list offers the ML-KEM-1024 hybrid on the public web, so for browser traffic "choose the highest level" is not a switch you hold today. Where you run both ends, it is.

An X25519 secret and an ML-KEM secret both feed a key derivation function that produces the session key, so an attacker has to break both.

Hybrid is the reason a surprise in lattice theory is news and not an incident.

Turn it on where you control both ends

In Node the group list is one option. I tested this on Node 24.21 (OpenSSL 3.6.4), and ecdhCurve takes the names in order of preference:

server.mjs

import https from 'node:https'; import { readFileSync } from 'node:fs'; https.createServer({ key: readFileSync('k.pem'), cert: readFileSync('c.pem'), minVersion: 'TLSv1.3', ecdhCurve: process.env.TLS_GROUPS ?? 'X25519MLKEM768:SecP384r1MLKEM1024:X25519', }, (req, res) => res.end('ok')).listen(8444); 

I probed it locally, one group at a time:

probe output

X25519MLKEM768 TLSv1.3 Negotiated TLS1.3 group: X25519MLKEM768 SecP384r1MLKEM1024 TLSv1.3 Negotiated TLS1.3 group: SecP384r1MLKEM1024 X25519 TLSv1.3 ok (no post-quantum part) secp256r1 handshake failure, not in the list 

For service-to-service traffic, put SecP384r1MLKEM1024 first and drop the plain X25519 fallback once every client is upgraded. A fallback left in place means an old client still gets a classical handshake, and recorded classical traffic is what a future quantum computer reads. The list comes from an environment variable so that the next surprise is a config change.

Cost is small. An ML-KEM-768 public key plus ciphertext is 1184 + 1088 bytes. ML-KEM-1024 is 1568 + 1568. FrodoKEM, the unstructured option that the new papers support, is about 15.6 KB in each direction at a comparable level to ML-KEM-768. That gap is the real price of dropping structure.

Application encryption: make the algorithm a field

TLS gets swapped for you. Data you encrypt yourself does not. Backups, sealed tokens and end-to-end messages stay in whatever scheme you picked. This is a hybrid envelope on Node's built-in crypto (encapsulate needs Node 24.7 or newer), with the suite name stored in every message:

hybrid.mjs

import crypto from 'node:crypto'; // One entry per suite. A break means adding a line here and re-wrapping, not editing call sites. const SUITES = { 'x25519+ml-kem-1024': { classical: 'x25519', pq: 'ml-kem-1024' }, }; const DEFAULT = 'x25519+ml-kem-1024'; const raw = (key) => key.export({ type: 'spki', format: 'der' }); export function newRecipient(alg = DEFAULT) { const { classical, pq } = SUITES[alg]; return { alg, c: crypto.generateKeyPairSync(classical), p: crypto.generateKeyPairSync(pq) }; } // Both secrets go in, plus everything public, so neither half can be swapped. const derive = (alg, ssC, ssP, ...transcript) => Buffer.from(crypto.hkdfSync('sha512', Buffer.concat([ssC, ssP]), Buffer.alloc(0), crypto.createHash('sha256').update(Buffer.concat([Buffer.from(alg), ...transcript])).digest(), 32)); export function seal(to, plaintext) { const { classical } = SUITES[to.alg]; const eph = crypto.generateKeyPairSync(classical); const ssC = crypto.diffieHellman({ privateKey: eph.privateKey, publicKey: to.c.publicKey }); const { sharedKey: ssP, ciphertext: kem } = crypto.encapsulate(to.p.publicKey); const key = derive(to.alg, ssC, ssP, raw(eph.publicKey), kem, raw(to.c.publicKey), raw(to.p.publicKey)); const iv = crypto.randomBytes(12); const aes = crypto.createCipheriv('aes-256-gcm', key, iv); const body = Buffer.concat([aes.update(plaintext), aes.final()]); return { alg: to.alg, eph: raw(eph.publicKey), kem, iv, body, tag: aes.getAuthTag() }; } export function open(me, m) { if (!SUITES[m.alg] || m.alg !== me.alg) throw new Error(`unsupported suite ${m.alg}`); const ephPub = crypto.createPublicKey({ key: m.eph, type: 'spki', format: 'der' }); const ssC = crypto.diffieHellman({ privateKey: me.c.privateKey, publicKey: ephPub }); const ssP = crypto.decapsulate(me.p.privateKey, m.kem); const key = derive(m.alg, ssC, ssP, m.eph, m.kem, raw(me.c.publicKey), raw(me.p.publicKey)); const aes = crypto.createDecipheriv('aes-256-gcm', key, m.iv); aes.setAuthTag(m.tag); return Buffer.concat([aes.update(m.body), aes.final()]); } 

output

x25519+ml-kem-1024 | opens: backup key | kem bytes: 1568 tampered kem: Unsupported state or unable to authenticate data 
  • Both secrets feed one KDF. Losing ML-KEM leaves X25519, and the reverse. Using only one of the two, chosen by a flag, is not a hybrid.
  • The public values go into the KDF too. Ciphertext, ephemeral key and both recipient keys are bound, so an attacker cannot mix parts from two messages.
  • alg is checked against an allow list and the recipient's own key. An algorithm field that the sender controls and nobody checks is how downgrade bugs happen.
  • Rotation is re-sealing. Keep the data key small and wrapped, and moving to a new suite touches kilobytes instead of the whole bucket.

Warning: This shows the shape. For production, use a reviewed construction such as X-Wing or HPKE with a hybrid KEM, and have someone who does this for a living look at it.

What I would do this week

  • Run the two probes on every public hostname you own and write the result down.
  • List anything encrypted today that must stay secret past 2035. That list decides your order of work, and it was already the right list last month.
  • Grep for hard-coded ml-kem, kyber, x25519 and secp256r1 outside one module. Each hit is a place you cannot change quickly.
  • Prefer ML-KEM-1024 and ML-DSA-87 for new internal systems where an extra kilobyte or two does not matter.
  • Leave AES-256, SHA-256 and your password hashing alone. None of these papers touch them.
  • Do not roll back ML-KEM. Going back to plain X25519 trades a theoretical concern for a known one, since a quantum computer breaks elliptic curves with far fewer resources.

The part I keep thinking about is the process. A lab's model found a real asymptotic result, the lab gave outside experts two weeks, the limits were printed next to the claim, and anyone can open a Lean file and see n ≥ 2 ^ 29. The first version of an attack is rarely the best one, and CIRG expects improvements soon. If you build so that one line of config changes the algorithm, you can read that next paper with interest.

Frequently asked questions

Did Anthropic break ML-KEM?

No. The algorithm is asymptotic, needs a large quantum computer, and costs far more than 2^1000 operations on the smallest ML-KEM set according to CIRG. Known attacks are cheaper, and those are already infeasible.

Did Claude break RSA-2048?

No. The lattice papers have nothing on factoring. The largest RSA number factored in public is RSA-896, and RSA-2048 is far beyond that for classical machines. A large quantum computer would break it, which is why NIST deprecates it after 2030 and disallows it after 2035.

Is RSA-2048 safer than ML-KEM-768 now?

Not against a quantum computer. RSA-2048 falls to Shor's algorithm with published estimates und...