DEV Community

Cover image for AI and post-quantum cryptography: don't panic, but take inventory
Thomas Bonnet
Thomas Bonnet Subscriber Community Curator

Posted on AI-assisted

AI and post-quantum cryptography: don't panic, but take inventory

Simple grep command helps find vulnerable crypto

Introduction

Early December 2026, an announcement was enough to raise an eyebrow: an AI had reportedly found new things about the cryptography meant to resist quantum computers. Before panicking (or shrugging it off), let's see what it really says, and what it changes for us developers.

TL;DR

  • Anthropic published theoretical work on lattice-based cryptography.
  • Nothing is broken today, according to CIRG and ANSSI.
  • Long-term confidence in structured lattices is worth watching.
  • To do: find where your algorithms are and prepare your migration.

The starting point

Grab a token from your application and run this:

node -e "console.log(Buffer.from(process.argv[1].split('.')[0],'base64url').toString())" "$TOKEN"
Enter fullscreen mode Exit fullscreen mode

Seeing RS256 or ES256? That's RSA or ECDSA, two families that a powerful enough quantum computer could break. Let's keep that in mind 👀

Here is the announcement: Anthropic published a series of theoretical papers on lattice cryptography, with results found using unreleased Claude models.

To get some perspective: CIRG, a group of cryptographers, reviewed the work, and ANSSI, the French cybersecurity agency, published its opinion: no immediate practical impact.

How it made me feel

I'll admit it, I got a bit scared. Scared that with quantum computing, everything would break very fast, tomorrow or in the coming months. And I still have that fear: AI is improving quickly, while encryption like RSA is pretty much everywhere, in our phones, our signatures, our emails. In my head, it was worse than the Y2K bug.

After digging in, I'd temper that: this work does not break RSA, and quantum computers able to do it don't exist yet. Unlike Y2K, there is no known date. That's no reason to wait.

What is post-quantum cryptography?

Post-quantum cryptography refers to schemes designed to resist attacks from future quantum computers. It runs on classical machines.

Many of the new standards rely on lattices. There are two main flavors: structured lattices, which are more efficient, and unstructured ones, less efficient but possibly offering fewer angles to attackers.

What the results actually say

On the structured side, the headline result is a quantum, quasi-polynomial-time attack on certain module lattice problems. That's the family behind ML-KEM and ML-DSA, standardized by NIST.

Except that against these standards today, it costs far more than previously known attacks. According to CIRG, even 21000 quantum operations would be far below its cost for ML-KEM-512 and ML-DSA-44. We're talking about a galactic scale.

The gain is asymptotic: it grows with the polynomial degree, while these standards raise security through the rank and keep a degree of 256. CIRG still expects improvements, and Anthropic says its long-term confidence in structured lattices has decreased.

On the unstructured side, no improvement in attacks is reported. CIRG sees this as meaningful support for their security.

Where to look in your project

This is where it gets practical for us devs. Here is the list I suggest:

  • Tokens: which algorithms sign your JWTs?
  • Certificates: what do your websites and internal services use?
  • SSH and Git: which key types do you use to connect and sign your commits?
  • Code: are any algorithms hardcoded?
  • Dependencies: do your libraries have a post-quantum roadmap?
  • Agility: is changing an algorithm one line of configuration or a whole project?

For a first look at your code:

grep -rnE "RS(256|384|512)|ES(256|384|512)|RSA|ECDSA|ECDH" ./src
Enter fullscreen mode Exit fullscreen mode

And to check the key algorithm of a certificate (replace the domain):

echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null \
  | openssl x509 -noout -text | grep "Public Key Algorithm"
Enter fullscreen mode Exit fullscreen mode

This is not an audit: the search won't see your libraries' default settings, or what happens at your providers. But it's a starting point.

Good news on the token side: RFC 9964, published in May 2026, registers ML-DSA-44, ML-DSA-65 and ML-DSA-87 for JOSE, the family of standards behind JWTs. A published RFC doesn't mean your library supports it, so check first.

What to do now

Above all, don't postpone your migration. Waiting means staying on systems that can be broken with far fewer quantum resources.

  • Prefer hybrid schemes that combine different mathematical foundations.
  • Choose the highest security level your application supports.
  • Design crypto-agile systems.

Here is the timeline from ANSSI, the French agency:

When What ANSSI plans
From 2027 Quantum threat required in qualifications of the most critical products
From 2028 Same requirement for other products
End of 2030 Sensitive systems migrated, no new deployment without post-quantum

It looks far away, but an inventory takes time ⏳

Wrapping up

No, AI didn't break cryptography with this announcement. It mostly reminds us that an algorithm can lose our confidence, and that it's better to know where it hides before we need to.

Start small: one token, one certificate, one line in your code. That's already a win 🔐

What about you, have you started looking?

Sources

Top comments (15)

Collapse
 
kling4ai-production profile image
Kling4 AI •

Decoding the JWT header first to catch RS256 and ES256 tokens is a good sanity check. Even with ANSSI and CIRG confirming no immediate practical break on lattice schemes, doing an algorithm inventory now beats scrambling when migration deadlines hit.

Collapse
 
visionwei profile image
Wei Bin •

Thomas, the inventory framing is what I needed: I run an API service and my JWTs are RS256, so your grep lands on real work, not theory. The part I had missed is SSH and deploy keys: a grep of ./src would never find those. I am starting with one token and one certificate, and writing down where algorithm lives.

Collapse
 
syedfahads profile image
Syed Fahad •

for the SSH line, OpenSSH 10 already made mlkem768x25519 the default key exchange, so the transport side may be covered once both ends update. the ed25519 keys signing your commits are still classical though

Collapse
 
thomasbnt profile image
Thomas Bonnet •

oh that nice!

Collapse
 
paxtechnologyservices profile image
PTS •

Your grep for RS256 and ES256 is a solid start. I'd add a script-level pass for Bitcoin, because "already published" is uneven there.

P2PK puts the public key in the locking script from the first confirmation, so those coins have been in the inventory the whole time. P2PKH only reveals the key when the output is spent, or when an address is reused. The draft BIPs people have been arguing about this week are mostly about that first group, plus spent and reused addresses, not a freeze of every coin.

So the inventory I'd add isn't only "do we use secp256k1." It's which UTXOs have already revealed a public key.

I have a small in-browser checker for that. Paste a scriptPubKey or an address. Nothing is uploaded, and it refuses keys or seed words:

https://agents.paxtechnologyservices.com/tools/bitcoin-script-type-checker/?utm_source=devto&utm_medium=comment&utm_campaign=pqc-inventory

Collapse
 
thomasbnt profile image
Thomas Bonnet •

Good idea!

Collapse
 
smtahosin profile image
S M Tahosin •

thanks Thomas!! i ran your grep at like 6:50 lol... RS256 popped up in 2 places, one config file untouched since 2023 xD whole thing took 10 mins, way less scary than the headlines :D

Collapse
 
thomasbnt profile image
Thomas Bonnet •

Aha thanks for reading !

Collapse
 
smtahosin profile image
S M Tahosin •

haha anytime Thomas! that config file from 2023 is still sitting there, i've added it to my list lol. ten minutes well spent honestly. thanks again :D

Collapse
 
paullovelace profile image
Paul Lovelace •

Ran your grep mentally against my own stuff and immediately thought of the one place it won't reach — the signing keys baked into CI years ago that nobody owns anymore. The RS256/ES256 check is a great first pass, but the inventory that scares me is the long-lived stuff: code-signing certs, old deploy keys, tokens issued before anyone thought about rotation. The ANSSI end-of-2030 deadline looks far away until you count how many of those you have. Did anything in your own inventory surprise you when you ran it?

Collapse
 
thomasbnt profile image
Thomas Bonnet •

Good point: my grep only looks at ./src, so it won't find forgotten CI signing keys, old deploy keys or code-signing certs. I don't have a surprise of my own to report here, but I'd add an owner and a creation date to every item in that inventory. If nobody owns a key, that's the first thing to fix.

Collapse
 
calemanurquiza profile image
Carlos María Alemán Urquiza •

"What happens at your providers" is a part grep can't reach, but contracts can. When a vendor agreement comes up for renewal, asking for their post-quantum migration plan and a duty to notify algorithm changes costs little, and turns an unknown in the inventory into a dated answer.

Collapse
 
token_alphabet_bb8b22df52 profile image
Token Alphabet •

The grep for RS256 and ES256 is a good first pass. One place it will not catch is anything built on secp256k1: Bitcoin and Ethereum wallets, and services that verify their signatures. There the algorithm cannot be swapped with one line of config, because the public key is tied to the address and, once used, stays readable on chain forever. So for those systems the inventory I would add is a list of which keys are already published, not only which algorithms are in use. Did the ANSSI note say anything about signatures that must stay verifiable for decades, like code signing or archives?

Collapse
 
thomasbnt profile image
Thomas Bonnet •

Great point, thanks! My grep would miss code that only mentions "secp256k1", and listing already published keys is a useful addition.

As for ANSSI: this recent note doesn't address signatures that must stay verifiable for decades, code signing or archives.

Collapse
 
member_7c8c7e8d profile image
Max K. •

This inventory-first take is much healthier than the usual panic headlines. When we audited a small Python API recently, the app code itself was clean, and the hidden RS256 and legacy TLS assumptions were sitting inside reverse-proxy configs, CI deploy keys, and third-party webhook verifiers rather than ./src. Tracking where algorithms are hardcoded versus configurable is the real bottleneck for crypto agility. Have you seen any mainstream JWT libraries in Node or Python start exposing experimental RFC 9964 ML-DSA hooks yet, or are most teams still stuck waiting on upstream SDK support?