Did Claude break ML-KEM or RSA-2048? I read the Lean theorem and checked my own TLS
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. 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. 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 largeModulussmallNoiselog2(lhs/rhs) of each
ML-KEM-512 fails fails+14.2+1.0
ML-KEM-768 fails fails+20.9+1.0
ML-KEM-1024fails fails+27.5+1.2
ML-DSA-44failsok+4.9-3.9
ML-DSA-65failsok+6.9-3.9
ML-DSA-87failsok+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-512k = 2 + 2 + 1 = 5rank above 2^10,400
ML-KEM-768k = 3 + 3 + 1 = 7rank above 2^20,384
ML-KEM-1024 k = 4 + 4 + 1 = 9rank 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
CryptoDefs1,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
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 X25519MLKEM768SecP384r1MLKEM1024
mahmadmanzoor.comyes 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.
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
Comments
No comments yet. Start the discussion.