Das Böse Büro

Tra voi e la felicità c’è un muro fatto di codardia. La vostra.

No, Post-quantum doesn't mean more secure

There is a major security flaw in the way the current cryptographic panic is spreading. The press, and now the NSA too, are telling everyone to upgrade to "post-quantum" cryptography. Almost nobody mentions that the label covers a set of very different methods, and that they are not all equally robust.

There is also a second, subtler problem. The news of the past few weeks is not about a quantum computer breaking something. It is about an AI finding a mathematical shortcut where none was thought to exist. Calling this the "post-quantum era" is misleading: if anything, we are in the post-AI era, or if you prefer, post-Anthropic, post-OpenAI. It is the era in which the fastest-moving variable is not hardware, but mathematical discovery.

To understand what I mean, let's ask ourselves: fine, but what exactly is this "post-quantum"? The first mistake you might make is to believe these are harder standards in general, based on harder problems in general. In other words, to believe that a cipher is more secure simply because it is "post-quantum". That is not always the case.

What exactly is post-quantum?

"Post-quantum" does not denote a mathematical property. It only means that an algorithm resists known quantum attacks, essentially Shor's algorithm, which would do serious damage to RSA and elliptic curves. It says nothing about attacks nobody has found yet.

A quick note for those unfamiliar with the acronym. FIPS stands for Federal Information Processing Standards: the standards that NIST, the metrology institute of the US Department of Commerce, publishes for federal government information systems. They are mandatory only for federal agencies, but anyone who wants to sell to those agencies must comply, so in practice they become the de facto standard for the industry worldwide.

Cryptography entered the picture in 1977 with DES, developed by IBM with input from the NSA, which fuelled suspicions of backdoors for years. With AES (FIPS 197, 2001) NIST changed its approach: it ran a public competition, where anyone could propose an algorithm and anyone could try to break it. The post-quantum process started the same way in 2016, with dozens of candidates, and after eight years of elimination rounds it produced the first three standards in 2024. It is a good method, but it selects algorithms that resist the mathematical attacks we know of, not the ones still to come.

Above all, post-quantum is not a monolith. Under the same label, NIST has placed different mathematical families:

Standard Algorithm Mathematical basis Status
FIPS 203 ML-KEM (Kyber) Structured lattices (Module-LWE) Final, August 2024
FIPS 204 ML-DSA (Dilithium) Structured lattices (Module-LWE/SIS) Final, August 2024
FIPS 205 SLH-DSA (SPHINCS+) Hash functions Final, August 2024
FIPS 206 FN-DSA (Falcon) Structured lattices (NTRU) Draft
FIPS 207 (expected number) HQC-KEM Error-correcting codes In preparation, final expected in 2027
SP 800-208 (not a FIPS) LMS/HSS, XMSS Hash functions, stateful Approved

Look at the "Mathematical basis" column. Three of the four post-quantum FIPS for asymmetric cryptography rest on the same family: structured lattices. They are also the ones everybody is implementing, because they are fast and have reasonable key sizes. The hash-based and code-based alternatives are slower or bulkier, and precisely for that reason they get ignored.

The problem is that "newer" does not mean "harder". Factoring has been studied for centuries; structured lattices as a cryptographic foundation for about twenty years. Hash-based signatures, by contrast, rely on a minimal assumption: that the hash function holds. And if SHA-2 falls, we have far bigger problems than signatures.

What actually happened

In 2026, frontier AI models produced at least two cryptanalytic results against lattice-based schemes, both independently verified.

July 2026, HAWK. Anthropic published a key-recovery attack against HAWK, a lattice-based signature scheme that was a candidate in the NIST process, attributing it largely to Claude Mythos Preview. Cryptographers confirmed it on the NIST PQC forum within hours, and the next day the authors withdrew the scheme. HAWK was not a standard, and the attack does not affect Falcon or ML-DSA. But it is the first case of a post-quantum scheme eliminated by a discovery made by an AI.

November 30, 2026, the four papers. Anthropic published four theoretical papers, with formally verified proofs in Lean 4, whose results were discovered by an internal Claude model. The main result is a quantum algorithm that solves, in quasi-polynomial time, certain problems on module lattices, including some versions of Ring-LWE and Module-LWE. These are exactly the problems underlying ML-KEM and ML-DSA.

Before crying catastrophe, let's read the verdict of the Cryptography Incident Review Group (CIRG), 21 academic and industry cryptographers who reviewed the work before publication:

  • Applied to ML-KEM and ML-DSA as standardized, the attack costs far more than the best previously known attacks, which were already out of reach. CIRG describes its scale as "galactic": not even 2^1000 quantum operations would suffice against ML-KEM-512 and ML-DSA-44.
  • There is no improvement in classical attacks on mainstream lattice systems.
  • ML-KEM and ML-DSA increase security by raising the module rank with the degree fixed at 256, so the most worrying case, where the degree grows, does not apply to them directly.
  • CIRG does, however, expect the attack to be improved, and Anthropic itself says it has less confidence in structured lattices over the long term.
  • The other three papers, by contrast, strengthen confidence in unstructured lattices, such as FrodoKEM.

So: nothing is broken today. But confidence in one of the families we have bet almost everything on has cracked, and what cracked it was an AI.

It is not the algorithm that is getting weaker. It is the mathematical problems the algorithms are built on.

Not post-quantum: post-AI

Be careful not to make the opposite mistake. The November attack was discovered by an AI, but running it would still require a quantum computer, and an absurdly large one. Saying that "AI breaks cryptography" is as false as saying that quantum computers have already broken it.

The real point is different. The security of any asymmetric scheme is not proven: it rests on the fact that nobody, so far, has found a better algorithm. It is a social assumption, built on decades of human work. If that work can be compressed into months, the assumption is worth less. And it is worth less above all for recently studied families, which means precisely structured lattices.

That is why talking about a "post-quantum era" is misleading. It suggests the threat is a machine arriving sometime in the 2030s, and that switching algorithms before then is enough. The real threat is that the mathematics under the new algorithm turns out weaker than expected, and that we find out fast. Against that threat the defence is not an algorithm, it is an architecture: mathematical diversity and the ability to switch algorithms quickly.

There is a corollary many implementers have not yet grasped. The most widely deployed hybrid schemes today combine a classical elliptic curve with ML-KEM. They protect you well if the lattice falls to a classical attack, but they do not cover a quantum attack on the lattice, because the elliptic curve would fall to the same quantum computer. A serious hybrid must combine different mathematical families, both post-quantum.

Washington's mixed message

In the same week, two messages came out that seem to contradict each other. According to the specialist press (I could not find the original document), the NSA asked National Security Systems operators to "accelerate their move to post-quantum cryptography immediately", citing discoveries by frontier AI models as "a significant threat". In parallel, a joint statement by the NSA, the Office of the National Cyber Director and CISA says these advances "do not present an immediate and widespread threat".

It is not a contradiction; they address two different time horizons. But note what the NSA recommends in the CNSA 2.0 suite: ML-KEM-1024 and ML-DSA-87, the highest levels of the two lattice standards, and the hash-based LMS/XMSS for software and firmware signing. In other words, even the NSA does not put everything on lattices: where a signature has to last for years, it chooses hash-based algorithms.

Anyone who reads the headline "move to post-quantum" and deploys ML-KEM-512 because it is the lightest has followed the letter of the advice, not its spirit.

What to do if you are implementing

  1. Don't stop the migration. RSA and elliptic curves remain far weaker than ML-KEM against a quantum computer. Delaying means staying longer on something that breaks with far fewer resources than the November attack requires.
  2. Use the highest security level your system can handle. ML-KEM-768 or 1024, ML-DSA-65 or 87. The cost in bytes and cycles is modest compared to the margin you are buying.
  3. Build hybrids across different mathematical families. For key exchange, keep an eye on HQC: it is code-based, was selected precisely as a backup for ML-KEM, and the final standard is expected in 2027. For signatures, pair ML-DSA with a hash-based scheme.
  4. Long-lived signatures: use hashes. Root CAs, firmware, boot chains: SLH-DSA, or LMS/XMSS if you can manage state. Large signatures and slow signing, but the most solid security assumption we have.
  5. Crypto-agility as a requirement, not a slogan. You must be able to replace an algorithm by changing configuration, not by rewriting firmware, and within one budget cycle. If today you don't even know where you are using RSA, start with the inventory.
  6. Be cautious with FN-DSA (Falcon). It uses the same ring family as the November targets and was not assessed by CIRG. On top of that, NSA and NIST consider it more prone to implementation errors.
  7. Don't read "post-quantum" as a guarantee. Read it as "resists the quantum attacks we know of today". Always ask: what problem is it based on, and how long have we been studying it?

In conclusion

The advice "move to post-quantum" is right, but incomplete, and the incompleteness is itself a vulnerability. We have turned a label into a synonym for security, and we are concentrating the entire migration on a single mathematical family just as the tools to attack it are getting faster. The next result might not be "galactic". Those who have built systems capable of switching algorithms within a week will be fine. The others won't.

The checkbox

I say this because in companies, management thinks in checkboxes. The risk is a dumb migration: "post-quantum encryption", ticked, we have that too. But post-quantum is not a "we've got this" checkbox. It is a roadmap to start today, and nobody knows how long it will take, because nobody knows when the next result will arrive.

The only exception would be XOR with a one-time pad, which I have written about before: it is secure by construction, against any adversary, quantum or AI. But it requires a key as long as the message, never reused and distributed securely, so it does not fit every possible use case.

If the press keeps shouting "let's move to post-quantum encryption", companies will most likely implement the cheapest option, and that's it. On to the next project. Done. Only to find themselves in the same panic a year from now, or at the next paper.

The concept of agility, and why it matters

If we don't know which algorithm will fall, or when, the only property we can design for today is the ability to replace it. It is called crypto-agility: being able to swap a cryptographic algorithm without redesigning the system that uses it.

It sounds obvious, but history says we don't do it. MD5 was considered weak from the mid-1990s, yet we kept finding it in production for twenty years. For SHA-1 the first practical collision arrived in 2017, after more than a decade of warnings, and the certificate migration was painful. Each time, the problem was not finding the new algorithm: it was finding every place where the old one lived.

In practice, an "agile" cryptographic system has four characteristics:

  • It knows what it uses. An inventory of its cryptography (now called a CBOM, Cryptographic Bill of Materials): which algorithms, in which libraries, in which protocols, on which devices.
  • It does not hard-code the algorithm. The application asks a layer to "sign this" or "encrypt this", and that layer decides how. Changing algorithm is a configuration change, not a release.
  • It can handle larger keys and signatures. Post-quantum algorithms have keys and signatures ranging from hundreds of bytes to tens of kilobytes. Fixed-size fields, packets exceeding the MTU, HSMs and smart cards with little memory: this is where migrations get stuck.
  • It has an update path for its roots of trust. A car or an industrial device lives fifteen years. If the key that verifies the firmware is burned into ROM, that device will never be agile.

Agility also has a cost, and it should be said. The more algorithms a system accepts, the more surface it offers to downgrade attacks, where the adversary forces both parties to negotiate the weakest option: FREAK and Logjam, two attacks from 2015, worked exactly this way against TLS. Agility does not mean accepting everything; it means being able to switch off quickly whatever no longer holds.

And this brings us back to management. Agility cannot be bought and cannot be ticked off: it is a property of the architecture, and it must be funded before it is needed. When it is needed, it is too late.

The risk I see

The risk I see is this: the transition requires a different way of thinking about cryptography as a security tool, but security today is sold in pointless packages. Awareness, certifications, audits, and a whole series of box-ticking exercises that have very little to do with the problem we are about to face.

None of these packages will tell you which mathematical problem your PKI rests on, or how much it would cost you to change it tomorrow morning. An audit verifies that you have implemented the standard, not that the standard holds. And the certification you obtain will be valid exactly until the next paper. Doing security the way we do it today, everything boils down to questions like: "do we have these keys? Are we implementing this standard?". But the real question is a different one: "if this standard falls, can we switch to another? Can we use two at once?". And that is not a compliance problem: it is an architecture problem.

And this is already how it works today. The purpose of a great many certifications is not to make the system more robust, but to secure the career of some minor manager in charge of "certifying the company", or "getting it certified": that is, of passing an audit.

In short, I fear the web will now fill up with sites sporting a nice logo certifying the bank as "post-quantum", along with claims about how secure we are and how much privacy we have. And then, when an AI solves the shortest vector problem on a lattice (and we know they are already working through Erdős's problems), it will take them a year to change module and keys.

This is not science fiction. In May 2026 an internal OpenAI model found a counterexample to the unit distance conjecture, posed by Erdős in 1946. According to the tracker maintained by Terence Tao, AI tools had already helped close around a hundred Erdős problems since October 2025. Those problems have nothing to do with cryptography, but they show the pace: questions open for decades are falling in months.

image.png

image.png

And I can see clearly what is happening in companies. Meeting after meeting where the same four questions keep coming up:

  • what are we doing about this problem?
  • what certification exists that we can show the board?
  • how do we get this across to the auditor and pass the audit?
  • how do we let our customers know?

And the answers are always the same:

  • we have contacted vendor X to get the required cryptography;
  • the certification to show will be one from the US NIST;
  • the documentation for the auditor is being written, ASAP;
  • for customers there is a nice logo to put on the website, and maybe a nice popup to tell them, so everyone will be "informed by annoyance", just like with cookies and GDPR.

The perfect recipe for disaster.

Sources

Uriel Fanelli