Sapherbox logoSapherboxBlog
All articles

The RSA rumour, the lattice papers, and why we wrap keys twice

A weekend rumour said an AI lab had broken RSA-2048. It had not. The papers that followed concern the mathematics behind ML-KEM instead. What happened, and what it means for stored keys.

Also available in Deutsch

On Sunday, 29 November, Elon Musk answered a post on X which claimed that a leading AI lab had broken 2048-bit RSA. His reply was seven words long: “I’ve heard this from a few people.” By Monday the question was in the business pages, phrased as whether online banking was still safe.

RSA was not broken. What was published on Monday evening is about something else, and for anyone who chooses encryption for documents that have to stay confidential for years, it is the more interesting news.

What was claimed, and what was published

The rumour had no source. Nobody named a lab, a paper or a key that had been factored. The cryptographer Nadim Kobeissi, who had seen the result in question, wrote before publication: “I will say that the result does not concern RSA; I think it’s okay to defuse that rumor since it was silly to begin with.” According to German press reports, the BSI looked into the claim and found no evidence of an attack. The largest RSA numbers that have been factored in public are still below 1,000 bits.

On Monday evening Anthropic released four papers on lattice cryptography, found by one of its research models and accompanied by machine-checked proofs. The main one describes a quantum algorithm that solves a family of lattice problems in quasi-polynomial time. Those problems, Module-LWE over the rings that the standards use, are the foundation of ML-KEM and ML-DSA, the post-quantum algorithms NIST standardised in 2024.

So the weekend’s story had the target wrong. The news is not about the old algorithm that everybody is migrating away from. It is about the new one that everybody is migrating to.

How serious is it?

A group of 21 academic cryptographers, the Cryptography Incident Review Group, had seen the results two weeks earlier and published an assessment the same day. Its findings, in short:

  • The attack needs a large quantum computer, which does not exist.
  • Against the standardised parameter sets it is far more expensive than the attacks already known. The group calls its scale “galactic”: even 2^1000 quantum operations would be far below its cost for the smallest sets, ML-KEM-512 and ML-DSA-44.
  • No improvement was found for classical attacks, and none for lattice schemes without the additional ring structure.
  • The significance is in the trend. If these standards were scaled up in a certain way, their quantum security would grow much more slowly than had been believed.

Anthropic’s own wording is that the results “do not have practical, real-world consequences for today’s security systems”, and that it still considers ML-KEM and ML-DSA two of the strongest public-key algorithms available. It also calls the result a limited signal that weaknesses in structured lattices could be found in the future.

Scott Aaronson, who works on quantum computing theory, summarised it as “a major development in cryptanalysis, but not an imminent danger to current encryption”. He added the sentence that matters for the long term: he is uncomfortable with any cryptosystem whose security rests only on constant factors.

Nothing has to be switched off this week. But one assumption has become weaker: that the mathematics behind the new standards will hold for decades because nobody has found a better attack so far. The standards are two years old. An asymptotically better attack was found, by a machine, and it will not be the last attempt.

The wrong conclusion

It would be easy to read this as a reason to wait: if the post-quantum algorithms are being attacked too, why hurry away from RSA?

The review group answers that directly. It recommends continuing the transition, because delay prolongs the reliance on systems “that can be broken with far fewer quantum resources than this new attack requires”. RSA and elliptic curves fall to Shor’s algorithm, which has been known since 1994 and only needs the machine. The timetable has not moved either: NIST deprecates quantum-vulnerable public-key algorithms at the 112-bit security level, RSA-2048 among them, after 2030 and disallows all of them after 2035. The BSI recommends purely classical key exchange, RSA alone included, only until the end of 2031, and after that only in combination with a post-quantum algorithm. Our article on who has written the requirements has the details.

The group’s other recommendations are the useful part:

  1. Choose the highest security level each application can support.
  2. Use hybrids that combine schemes based on different mathematical foundations.
  3. Design systems so that an individual scheme can be replaced quickly.

What a hybrid buys you this week

A hybrid wrap protects a key with two algorithms at once, combined so that an attacker has to break both. The usual argument for it has sounded cautious to the point of pedantry: the post-quantum algorithms are young, so keep a classical one next to them in case something is found.

Something was found. It is far from a break, and the argument did not need one. A hybrid is not built for the day an algorithm falls. It is built so that nobody has to estimate, for every piece of news like this one, how many years of margin remain.

The two halves cover each other’s weak side. RSA is vulnerable to a future quantum computer and unaffected by lattice cryptanalysis. ML-KEM is designed to resist a quantum computer and is exposed to progress in lattice mathematics. To open a hybrid-wrapped key, an attacker needs the quantum computer and a practical attack on the lattice scheme. The rumour and the papers each concern one of these halves. Neither touches both.

This matters most where keys are stored. As we described in quantum-safe data exchange, a wrapped file key lies next to the ciphertext for as long as the file exists, in the database and in every backup. Whoever copies it today can wait for the mathematics to improve. That is the case in which a single algorithm, old or new, is the wrong bet.

Where Sapherbox stands

Every key wrap in Sapherbox is hybrid: RSA-4096 together with ML-KEM-768, combined so that both must be broken. This covers file keys, folder key bundles, group keys, the search key and the escrow envelope. The construction is described in hybrid post-quantum key wrapping. Content is encrypted with AES-256, which neither the rumour nor the papers concern.

Two points belong here for completeness.

ML-KEM-768 is the middle parameter set, not the highest. The cost of the new attack grows steeply with the rank of the module, which is 2 for ML-KEM-512, 3 for ML-KEM-768 and 4 for ML-KEM-1024, so the assessment’s figure for the smallest set is a lower bound for ours. The review group nevertheless recommends the highest level an application can support, and we are examining what a move to ML-KEM-1024 would cost in key sizes and in re-wrapping existing keys. We will report the outcome here.

Signatures remain classical. Grants and folder key bundles are signed with Ed25519. The lattice results concern ML-DSA as much as ML-KEM, which is a reason to plan that migration as a hybrid as well, not as a replacement.

What to ask a vendor now

  • Is the key wrapping hybrid, and which two algorithms are combined?
  • Which parameter set is used, and why?
  • Can an algorithm be replaced without a new product, and who re-wraps the stored keys when that happens?
  • Does the answer cover the keys stored next to the documents, or only the connection?

A vendor who replaced RSA with ML-KEM alone has exchanged one single bet for another. A vendor who still wraps with RSA alone has not yet started.

Sources

Questions?

Write to hello@sapherbox.com. The cryptographic design is documented in the security whitepaper, including the parts that are not finished.