Over the weekend, much of the security world was in a tizzy over the possibility that an AI-assisted research paper describing a new encryption attack meant “It’s the End of the World as We Know It.” Now that the paper has been published, another song comes to mind: “Is That All There Is?”
The unwarranted fear was stoked by hyperbolic headlines and social media posts that suggested a then-forthcoming paper drafted with the help of Anthropic AI models would reveal a practical method for defeating the cryptography systems that the world relies on today. Once it was finally released, the paper described nothing of the sort. Instead, it describes a wildly theoretical attack against a form of post-quantum cryptography known as MLWE, short for module learning with errors. MLWE forms the basis of two current PQC standards: ML-KEM and ML-DSA.
Important, but not for the reasons we were told
To appreciate just how fantastical the attack is, consider this: when applied to ML-KEM-512—the weakest form of ML-KEM—the algorithm produces intermediate mathematical problems with more than 210,400, or roughly 103,131, dimensions. Each dimension represents an independent coordinate in the mathematical space being analyzed. For perspective, the observable universe is estimated to contain roughly 1080 atoms. The requirements for breaking ML-DSA are equally impractical. A panel of researchers said that the cost of 21,000 quantum operations required for an attack “would be far below its cost for the smallest parameter sets (ML-KEM-512 and ML-DSA-44).”
In practical terms, that means the algorithm poses zero danger. If Anthropic had been looking for a way to distract the world from its less-than-spectacular IPO two weeks ago, the pre-announcement of the paper succeeded brilliantly.
“If you had an ML-KEM public key you wanted to break, and infinite compute and time available, you could try every possible private key and you would be done a lot faster than with the Anthropic attack (the end of the universe would catch up with you in either case, but compared to each other, the Anthropic one still takes an eternity),” Sophie Schmieg, a PQC expert at Google, told Ars. “That’s why I’m saying the paper should not have gone through the press cycle.”
None of this, though, is to say that the paper is meaningless. Far from it, the attack exploits unexpected properties of the mathematics involved in MLWE forms of encryption. Specifically, the “hardness”—meaning resistance to attacks—of MLWE may not be as great as mathematicians and engineers thought. What the Anthropic models helped to discover is an algorithm that, in theory, can use a quantum computer to solve MLWE-based problems in what is known as a “quasi-polynomial” time.
Until now, MLWE—like all other encryption algorithms considered safe—was thought to be based on problems that can only be solved in exponential time. That would mean that for every bit added to the key length, a brute-force attack—in which an adversary tries every possible key until landing on the right one—takes twice as long. In essence, the paper shows that as keys for MLWE-based problems increase to astronomical sizes, the doubling eventually stops in attacks using quantum computers. This property is described as asymptotic, meaning that an algorithm scales efficiently as problems grow.
Eli Ben-Sasson, co-founder and CEO of StarkWare and co-inventor of a hash-based PQC cryptosystem, put it this way: “The safety margin on structured lattices just got thinner, and it was an AI that found the crack.”
And that, strictly speaking, means that MWLE problems aren’t as safe in a post-quantum world as previously thought. The entire advantage quantum computing has in breaking RSA and ECC is that Shor’s Algorithm can solve the underlying problems—integer factorization and discrete logarithm respectively—not in exponential time but in polynomial time, in which the time increases by constant increment. The quasi-polynomial time that the Anthropic algorithm requires is a rate of growth that’s faster than polynomial but slower than exponential. Here, the computational work required increases relatively moderately as a problem gets larger, rather than exploding exponentially. For mathematicians, this can be expressed as a running time of npolylog(n).
“For cryptographers, the paper title is pretty self-explanatory, but for those tuning in from home: the upshot is that some of the main forms of ‘post-quantum’ cryptography that people had been switching to, on the advice of standards bodies like NIST, are not really ‘post-quantum’ at all,” encryption expert Scott Aaronson wrote Monday.
He went on to acknowledge that the number of incremental constants in the algorithm made the attack impractical. The findings nonetheless will likely push cryptographers to rethink their use of MLWE and other forms of “structured” lattice encryption, he said. “Unstructured” lattices, which have always been considered to have more hardness than structured ones, remain unscathed.
“As long as it’s ‘merely’ a matter of constants, our experience in CS [computer science] has been that dramatically improving constants is usually just a question of time and effort,” he told Ars. “The point is that we’re no longer protected against future algorithmic advances by the problem inherently requiring exponential scaling for a quantum computer (because it doesn’t).”
Hiding secrets in many-dimensional lattices
Ben-Sasson provided a more detailed explanation of the attack:
In non-technical language: lattice cryptography hides secrets in an enormous, many-dimensional crystal-like structure. To make the new standards fast and compact, their designers built a repeating pattern into that crystal. The AI found a quantum shortcut that exploits the pattern. At the sizes used today, the shortcut is far longer than the normal route, so it’s useless in practice. But it shows the pattern itself can be a point of weakness. To put it more technically, the new quantum algorithm attacks module lattices, and its advantage grows with the ring degree. ML-KEM and ML-DSA keep the ring degree fixed at 256 and add security by adding more modules, which keeps them on the side of the line where the attack is weakest. That’s why its cost against ML-KEM-512 is still beyond 21000 quantum operations. But look at the shape of the findings. The papers lower confidence in structured lattices while raising confidence in unstructured ones. The weak point is the algebraic structure added to make these schemes efficient, and the reviewing cryptographers expect the attack to improve.
In non-technical language: lattice cryptography hides secrets in an enormous, many-dimensional crystal-like structure. To make the new standards fast and compact, their designers built a repeating pattern into that crystal. The AI found a quantum shortcut that exploits the pattern. At the sizes used today, the shortcut is far longer than the normal route, so it’s useless in practice. But it shows the pattern itself can be a point of weakness.
To put it more technically, the new quantum algorithm attacks module lattices, and its advantage grows with the ring degree. ML-KEM and ML-DSA keep the ring degree fixed at 256 and add security by adding more modules, which keeps them on the side of the line where the attack is weakest. That’s why its cost against ML-KEM-512 is still beyond 21000 quantum operations. But look at the shape of the findings. The papers lower confidence in structured lattices while raising confidence in unstructured ones. The weak point is the algebraic structure added to make these schemes efficient, and the reviewing cryptographers expect the attack to improve.
Ali El Kaafarani, CEO and founder of PQShield, agreed that the paper is significant, but added that none of the findings should discourage people from migrating to PQC algorithms, including ML-KEM and ML-DSA. “Ultimately, the real and immediate quantum risk remains with the RSA and elliptic-curve cryptography still widely used today, and we shouldn’t let frontier research distract us from that urgent reality,” he said.
Another takeaway from this event is that the rampant speculation and fearmongering about unreleased research is a massive waste of time and resources. This isn’t the first time this sort of gratuitous panic has preceded the release of a PQC research paper. Sadly, it likely won’t be the last.
“There is no reason to make such a big deal out of that,” Schmieg said of the Anthropic paper. “We have tons of similar papers all the time. We put them on a preprint server and discuss them. The reason this didn’t happen here is either marketing, or the existence of another result, or a bunch of non-cryptographers scaring themselves over things they couldn’t correctly triage.”
