Two days ago I wrote about a rumor that an AI lab had cracked RSA-2048. The public evidence then pointed somewhere else: a renamed MIT workshop panel and guesses about lattice cryptography. On November 30 the answer arrived. It was not RSA. It was the math behind the new post-quantum standards that are meant to replace RSA.
Anthropic released four papers on lattice problems, together with a Lean 4 formalization (machine-checked proofs) of their results. The repository says the results "were discovered by an internal research Claude model." On the same day, a group of cryptographers called the Cryptography Incident Review Group (CIRG) published an initial assessment.
The short version: nothing breaks today, the migration advice stays the same, and one long-held assumption about "structured" lattices just got weaker. This article explains what was found, how big the attack really is, and what you can check in your own TLS, SSH and Java code.
What Anthropic published
The main paper is called Galactic quasi-polynomial quantum algorithms for integral and module lattices. Its abstract says that for module lattices of small rank over power-of-two cyclotomic rings, the algorithms "solve random instances of search Module-LWE with short secret and error." It also covers some NTRU lattices.
The abstract ends with the sentence that matters most for practitioners: "The algorithms are galactic: the bounds on their running times are asymptotic, and the algorithms are not practical for the parameter sets of ML-KEM and ML-DSA."
The other three papers go in a different direction. They connect lattice problems to each other (for example, reductions between approximate shortest vector problems, SIS and LWE). In its post on X, Anthropic said these "raise our overall confidence in unstructured lattices."
Anthropic also wrote that it shared the drafts with outside cryptographers and the US government before release. CIRG says Anthropic shared the results with several of its members on November 16.
Structured and unstructured lattices, in plain words
Most of today's post-quantum key exchange and signatures rest on one family of problems called LWE (Learning With Errors). The idea: you get many noisy linear equations, and you must recover the hidden secret. Without the noise, simple algebra solves it. With the noise, it is believed to be hard even for quantum computers.
Plain LWE works on "unstructured" lattices. It is well studied, but keys and ciphertexts are large. To make keys smaller and operations faster, designers add algebraic structure. Ring-LWE and Module-LWE do the arithmetic in polynomial rings instead of plain numbers. That structure is the reason ML-KEM keys fit easily into a TLS handshake.
Think of structure as a shortcut built for the defender. Every shortcut is also a door an attacker can study. Cryptographers have argued about that door for years. Anthropic's result is a published algorithm that uses it: with a quantum computer, the structure makes some of these problems easier than people expected.
Here is how the NIST standards use that structure. FIPS 203 defines three ML-KEM parameter sets. All three use polynomials of degree n = 256. What changes between them is the rank k (how many polynomial pieces are stacked together):
- ML-KEM-512: n = 256, k = 2
- ML-KEM-768: n = 256, k = 3
- ML-KEM-1024: n = 256, k = 4
Remember the two letters n and k. They explain why the attack is less scary than the headlines.
How big is "galactic"?
The CIRG statement gives the cost in a footnote. Ignoring small factors, the running time is about n to the power of (poly(k) times log n) for module lattices of rank k over power-of-two cyclotomic rings of degree n. For a fixed rank k, that is n to the power of O(log n), which is called quasi-polynomial. It grows faster than any polynomial, but far slower than the exponential growth that was expected before.
Now the two letters matter:
- The speedup applies as n grows. CIRG writes that "the asymptotic speedup applies as the degree n of each structured component grows."
- The standards grow k instead. In CIRG's words, ML-KEM and ML-DSA "reach higher security levels by increasing the number of components (the rank k) while keeping n=256 fixed."
- The cost grows very fast with k. Scott Aaronson, a quantum computing theorist at UT Austin, summarized it this way: the attack is quasi-polynomial for any fixed rank, "it's also exponential in k, and k is large enough in NIST's ML-KEM and ML-DSA standards as to render the attack wildly impractical."
How impractical? CIRG used AI models to estimate the cost. Their example: even 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." For comparison, the best attacks known before this were already far beyond practical reach, and CIRG says the new one "requires vastly more computation" than those for the real standards. It also needs a large quantum computer, which nobody has shown in public.
So for the parameter sets in use, the new attack is slower than the old attacks. Its importance is the shape of the curve, not today's numbers. CIRG: "if these standards were scaled up in a certain way, their quantum security would increase much more slowly than previously believed."
Why cryptographers still care
If the attack is slower than existing ones, why the noise? Three reasons, all from the sources.
Attacks improve. CIRG writes: "It is reasonable to expect that the attack will be improved in the near future. A key question is whether such improvements will actually reduce the cost of breaking the NIST standards." Aaronson puts the same point bluntly: "constants can be and very often are improved!" He adds that whether the standards are "seriously injured or merely lightly bruised now strongly depends on whether or not the rank dependence can be improved."
The structure was the open question. Anthropic itself says the results "lower our long-term confidence in structured lattices, on which both schemes rely." Martin Albrecht, a cryptography professor at King's College London, told WIRED: "It gives us the signal that we don't understand the hardness of these problems as well as we think we do."
Who found it. The repository says an internal Claude model found the results. Aaronson's comment on NPR captures the mood: "I think we are in a period of enormous volatility for cryptography." If AI systems keep producing new cryptanalysis at this pace, the time between "theoretical curiosity" and "practical concern" may shrink.
What did not change
It is easy to miss the parts of the statement that are good news.
- No classical speedup. Anthropic said it found no improvement in classical (non-quantum) attacks on mainstream lattice systems of either kind. If you worry about attackers with normal computers, nothing moved.
- Unstructured lattices held up. No improvement in quantum attacks on unstructured lattices either. CIRG calls the other findings "meaningful evidence in support of the post-quantum security of mainstream unstructured-lattice systems."
- RSA and elliptic curves are still the weak point. A future quantum computer breaks them with Shor's algorithm, at a far lower cost than this new attack. That is why CIRG says delaying the move to post-quantum crypto "would prolong reliance on existing systems that can be broken with far fewer quantum resources than this new attack requires."
- For people using the internet, nothing to do. Albrecht told WIRED: "For a lay person, there's nothing they need to immediately worry about." MIT's Vinod Vaikuntanathan told NPR the attack "is only relevant in a world where there are quantum computers larger than the Earth or more."
The official advice from both Anthropic and CIRG is to keep going: continue the transition, use hybrid setups, and build systems that can swap algorithms quickly.
What the hybrid in your TLS and SSH actually protects
Most real deployments of ML-KEM today are hybrids. Aaronson notes that these systems "apparently aren't used in isolation even when they're currently used." Some examples:
- Chrome switched its hybrid key exchange from Kyber to ML-KEM (ML-KEM768 plus X25519) in Chrome 131, per Google's security blog.
- OpenSSL 3.5 changed its default TLS key shares to offer X25519MLKEM768 and X25519.
- OpenSSH 10.0 uses mlkem768x25519-sha256 by default.
- Java's JEP 527, delivered in JDK 27, puts X25519MLKEM768 first in the default TLS 1.3 group list.
Here is a detail that is easy to get wrong. A hybrid like X25519MLKEM768 combines one classical algorithm and one post-quantum algorithm. The OpenSSH 9.0 release notes, written for the earlier NTRU Prime hybrid, describe the classical half as "a backstop against any weaknesses" in the post-quantum half, so that the combination is "at least as good security as the status quo."
My reading of what that means: the backstop covers classical attacks and implementation bugs in the new algorithm. It does not give you a second post-quantum algorithm. Against an attacker with a large quantum computer, X25519 falls to Shor's algorithm, so the whole exchange then rests on ML-KEM alone. CIRG's wording goes further than "use a hybrid." It encourages "hybrids that combine schemes based on different mathematical foundations."
For most systems, today's X25519 plus ML-KEM hybrid is still the right default. The new paper is a reason to plan for more choice later. Nothing needs to be ripped out.
A checklist for your systems
1. Find out what you negotiate today. For SSH, ssh -Q kex lists what your client supports, and a verbose connection shows what was chosen:
ssh -v git@github.com 2>&1 | grep "kex: algorithm"
On an Ubuntu 24.04 server with OpenSSH 9.6, that command against github.com printed:
debug1: kex: algorithm: sntrup761x25519-sha512@openssh.com
That is the older hybrid from OpenSSH 9.0 (Streamlined NTRU Prime plus X25519). The same server's OpenSSL is 3.0.13, which has no ML-KEM at all. Long-term support distributions often lag behind, so check what you actually run instead of what the latest release notes say.
For TLS, OpenSSL 3.5 or newer can show the group a server picks. The s_client tool prints a "Negotiated TLS1.3 group" line:
openssl s_client -connect example.com:443 -groups X25519MLKEM768 </dev/null 2>&1 | grep "Negotiated"
2. Choose the highest level each system can afford. CIRG recommends that teams adopting the NIST standards "choose the highest security level each application can support." Since the attack's cost grows very fast with the rank k, a higher rank is the direction to lean. In Java (JDK 24 added ML-KEM and ML-DSA), the defaults are the middle levels: ML-KEM-768 and ML-DSA-65. You ask for the top level by name:
import java.security.*;
import java.util.Arrays;
import javax.crypto.KEM;
import javax.crypto.SecretKey;
public class PqcLevels {
public static void main(String[] args) throws Exception {
for (String level : new String[] {"ML-KEM-768", "ML-KEM-1024"}) {
KeyPair kp = KeyPairGenerator.getInstance(level).generateKeyPair();
KEM kem = KEM.getInstance("ML-KEM");
KEM.Encapsulated sent = kem.newEncapsulator(kp.getPublic()).encapsulate();
SecretKey received = kem.newDecapsulator(kp.getPrivate())
.decapsulate(sent.encapsulation());
System.out.printf("%s: encapsulation %d bytes, keys match: %b%n",
level, sent.encapsulation().length,
Arrays.equals(sent.key().getEncoded(), received.getEncoded()));
}
for (String level : new String[] {"ML-DSA-65", "ML-DSA-87"}) {
KeyPair kp = KeyPairGenerator.getInstance(level).generateKeyPair();
Signature s = Signature.getInstance("ML-DSA");
s.initSign(kp.getPrivate());
s.update("hello".getBytes());
byte[] sig = s.sign();
Signature v = Signature.getInstance("ML-DSA");
v.initVerify(kp.getPublic());
v.update("hello".getBytes());
System.out.printf("%s: signature %d bytes, verified: %b%n",
level, sig.length, v.verify(sig));
}
}
}
Running it with java PqcLevels.java on JDK 25 printed:
ML-KEM-768: encapsulation 1088 bytes, keys match: true
ML-KEM-1024: encapsulation 1568 bytes, keys match: true
ML-DSA-65: signature 3309 bytes, verified: true
ML-DSA-87: signature 4627 bytes, verified: true
The cost of the higher level is size: 480 more bytes per encapsulation (the public key grows too) and about 1.3 KB more per signature. For most backend services that is fine. For constrained devices or very chatty protocols, measure first.
For TLS in JDK 27, JEP 527 also adds SecP384r1MLKEM1024 (P-384 plus ML-KEM-1024), but it is not enabled by default. You can change the list with the jdk.tls.namedGroups system property. Put it first and keep X25519MLKEM768 and x25519 after it, so peers that do not support the new group can still agree on one of the others.
3. Make algorithms a setting, not a code change. CIRG recommends "designing agile systems so that individual schemes can be replaced quickly." In practice: keep algorithm names in configuration, store which algorithm produced each key or signature next to the data, and have a tested path to rotate keys. If a better attack lands next year, you want a config deploy, not a rewrite.
4. Know the alternatives on different math. CIRG asks NIST and other bodies to standardize "additional public-key cryptosystems based on diverse designs, even at some cost in efficiency." Some already exist or are in progress:
- HQC, a code-based KEM. NIST selected it in March 2025 as a backup for ML-KEM "based on different math," with a final standard expected in 2027.
- FrodoKEM, a KEM on unstructured LWE. Its site says it is standardized by ISO and recommended by Germany's BSI for long-term confidentiality.
- SLH-DSA (FIPS 205), a hash-based signature scheme that does not use lattices at all. Its signatures are larger and slower to make.
5. Start with data that must stay secret for decades. The main quantum risk to key exchange is "harvest now, decrypt later": record traffic today, decrypt it when a quantum computer exists. Albrecht told WIRED: "For encrypted data you want to still be secure in 30 years, maybe that time horizon has already passed." Those are the systems where the highest level and extra algorithm diversity are worth the bytes.
Open questions
A few things are not answered by the public material, and I will not guess at them:
- The abstract includes a result on some NTRU lattices. The CIRG statement and Anthropic's post do not discuss what this means for NTRU-based schemes such as Falcon.
- The module-lattice results are stated for power-of-two cyclotomic rings. The sntrup761 hybrid in OpenSSH uses a different ring. Whether the methods carry over is not addressed in the statements.
- Nobody knows yet how far the rank dependence can be pushed down. That single question decides whether ML-KEM and ML-DSA are "lightly bruised" or worse.
CIRG also asked frontier AI labs to share more than results: "what they tried, which systems resisted attack, and how much effort they devoted to each." Negative results like "we tried to break X and could not" are useful evidence too.
What I think
The useful lesson here is not "lattices are broken." They are not. The lesson is that the margin for structured lattices is now less certain than it looked a month ago, and the tools that found this will keep looking.
That does not argue for waiting. Waiting leaves RSA and elliptic curves in place, and those fall to a much smaller quantum computer. It argues for the boring work. Know what each system negotiates. Where the bytes are affordable, pick the higher parameter set, and turn swapping algorithms into a configuration change. If HQC or another scheme on different math becomes the right answer in two years, the teams that did that work will be able to switch quickly.
Do you know which key exchange your production services negotiate today, and how long it would take you to change it?
Top comments (1)
Excelente articulo, gracias por difundir.