Adib Hanna

AI 23 min read 29 views

The AI Cryptography Warnings, From the Handshake Up

An AI found a new attack on post-quantum lattices, the NSA says move now, and your Mac may be skipping post-quantum SSH. What was found, what it means, and what to do this week.

The AI Cryptography Warnings, From the Handshake Up

On November 30, Anthropic published four math papers that an unreleased Claude model had worked out on its own. One of them describes a new quantum attack on the lattice problems underneath ML-KEM and ML-DSA, the post-quantum standards the whole industry is moving to. Two days later the NSA told national security system operators to "immediately accelerate the transition to post-quantum cryptography", citing discoveries that "frontier" AI companies had disclosed to the government and that nobody has described in public. That same night Amazon, Anthropic, Apple, Cloudflare, Google, Microsoft, OpenAI and Oracle signed a two-sentence statement backing the advice. Cloudflare's CEO wrote "Do not ignore this. Do not underestimate it."

That's a lot of alarm for one week, and most of the details are still hidden. So I wanted to work out three things. What was actually found? What could it mean for the keys and connections that you and I use every day? And what is worth doing now, before anyone knows more?

Along the way I found something I didn't expect. A stock, fully updated Mac skips post-quantum key exchange on every SSH connection, even when the server supports it. I'll use SSH as the worked example because it's the one most developers can fix in five minutes. The same reasoning applies to TLS, VPNs and everything else.

The diagrams move. Each one loops, you can hover to pause it, and the buttons underneath step through it at your own pace.

What happened, in order

Date What
Nov 16 Anthropic shares results with outside cryptographers and the US government
Nov 30 Anthropic publishes four lattice papers with Lean 4 proofs. The Cryptography Incident Review Group (CIRG), an independent panel of cryptographers, publishes its assessment the same day
Dec 1 Cloudflare publishes "Post-quantum cryptography is still safe"
Dec 2 NSA advisory: "Immediate Actions to Push Toward Post-Quantum". Joint statement from the National Cyber Director's office, the NSA and CISA
Dec 2 Joint statement from eight tech companies backing the government guidance

It's easy to read all of this as one event. It's really two, and they need to be kept apart.

Story one: the lattice papers, which we can read

ML-KEM (for key exchange) and ML-DSA (for signatures) are built on module lattices. Their security rests on a problem called Module-LWE. In rough terms: take a secret, multiply it by a public matrix of polynomials, add a little noise, and publish the result. Recovering the secret is believed to be hard for classical computers and quantum ones. That second part is the reason these schemes were chosen to replace RSA and elliptic curves.

The first paper, "Galactic quasi-polynomial quantum algorithms for integral and module lattices", gives a quantum algorithm that solves search Module-LWE in quasi-polynomial time for fixed rank. The word "galactic" in the title is a term of art. It describes an algorithm that wins asymptotically but whose constants are too large to ever run on real inputs. The other three papers tighten the theory behind unstructured lattices, and if anything they make that family look stronger.

Here is how the people who checked it describe the practical side:

  • CIRG: "At present, the reported attack falls far short of compromising the current NIST standards." Even 21000 quantum operations "would be far below its cost for the smallest parameter sets (ML-KEM-512 and ML-DSA-44)".
  • Cloudflare: running it on deployed parameters "would require more resources than are available in our galaxy", and it would need "at least billions of logical quantum bits". Today's machines have thousands of qubits.
  • Scott Aaronson: "not an imminent danger to current encryption".

So nobody's key is at risk from this paper, today or soon. It still matters, for three reasons.

It's the first serious crack in the structure. CIRG's own summary: "if these standards were scaled up in a certain way, their quantum security would increase much more slowly than previously believed." ML-KEM and ML-DSA reach higher security levels by increasing the module rank while keeping the ring degree at 256. The new attack gets worse as rank grows, which is reassuring for now. But the structure that the standards rely on is now known to have a weakness, and CIRG adds: "It is reasonable to expect that the attack will be improved in the near future."

It doesn't touch classical attacks. CIRG notes that Anthropic "found no improvement in classical (non-quantum) attacks on any mainstream lattice cryptosystems". Today's attacker has no quantum computer. Against that attacker, ML-KEM is exactly as strong as it was last month.

An AI did it. The repository that accompanies them says the results "were discovered by an internal research Claude model", and AI models wrote the formal proofs, which check in Lean's kernel. Cloudflare's line is the one I keep coming back to: "AI doesn't change whether a cryptographic system is secure. It changes how quickly we understand its exact security level." Faster analysis cuts both ways, and the timelines people planned around were set before this was possible.

Story two: the disclosures, which we can't read

The NSA advisory doesn't mention Anthropic's papers. Its press release says "Frontier SI companies have engaged with the U.S. government to responsibly disclose recent discoveries that impact the security of some cryptographic systems currently in use." That's plural, unnamed and unspecified. (Nobody has explained "SI" either. Some reporting reads it as "superintelligence".)

The joint statement from the three agencies is much calmer: "recent SI advances do not present an immediate and widespread threat to that cryptography."

What people are reading closely is the advisory's inventory step. It tells operators to record which algorithms each system uses, "particularly checking for algorithms not approved in CNSA 2.0 or CNSA 1.0", and then gives this list:

DSA, elliptic curves other than P-384 or P-521 for ECDH or ECDSA, EdDSA, deprecated Diffie-Hellman groups, pairing-based cryptography

The list doesn't name specific curves, but it covers the ones most of us use. "Elliptic curves other than P-384 or P-521" covers P-256 and X25519. "EdDSA" covers Ed25519, which is probably the SSH key on your laptop. RSA isn't on the list.

Filippo Valsorda, who maintained Go's cryptography libraries for years, read the advisory and concluded that the disclosure was probably a classical attack. His reasoning is that a quantum algorithm wouldn't be an urgent threat without a large quantum computer to run it, and nothing in the statements mentions one. His summary, which he flags as hastily drafted: "256-bit elliptic curves (P-256 and Curve25519/X25519/Ed25519) are likely broken or significantly weaker than we thought". He also says RSA and P-384 "might be fine as an interim solution".

That is an inference, not a disclosure, and others disagree. Ledger's Charles Guillemet: "The advisory doesn't say, and we're back to speculation and rumors." Kim Zetter thinks the release is more likely a general warning than a reaction to something specific. Asked whether RSA-2048 had been cracked, Cloudflare's Matthew Prince answered "There are things worse than that". He hasn't said what those things are.

The honest summary is that nobody outside the briefing rooms knows. What helps is that the right response is almost the same whichever reading turns out to be true.

What it means for the rest of us

There are two separate risks, and they have different deadlines.

Risk one is recorded traffic. This doesn't depend on the undisclosed findings at all. Anyone who can record your encrypted traffic today can keep it until they have a way to break the key exchange. That could be a quantum computer, or a classical attack on curves if Valsorda is right. Login keys and certificates only have to hold for the few seconds of the handshake. Key exchange has to hold for as long as anyone keeps the recording.

ONE SSH SESSION, TODAYYOUR MACSERVERENCRYPTED · KEX: ecdh-sha2-nistp256RECORDERa router, an ISP, a cable tapARCHIVEKEXthe key exchange first,then every byte after itTODAYQ-DAY · DATE UNKNOWNTHE SESSION ENDED. THE COPY DIDN'T.QUANTUM COMPUTER1 solve the recorded ECDH2 recover the session key3 decrypt the archivegit pushes, tokens, .env files…
1Someone on the network path copies your encrypted SSH session. They can't read it. They don't need to yet. Storage is cheap, so they keep everything, starting with the key exchange.2The session ends and the keys are gone from both ends. The recording stays in the archive, unchanged, for as long as the person who made it wants to keep it.3One day a large quantum computer solves the recorded elliptic-curve exchange. That gives the session key, and the session key unlocks every byte that followed it.
This is what "store now, decrypt later" means. It is the reason key exchange is the first part of SSH to move to post-quantum. Login keys and host keys only have to hold for the few seconds of the handshake. The key exchange has to hold for as long as anyone keeps the recording.

Risk two is forged signatures. If 256-bit curves are broken classically, recorded traffic becomes the smaller problem. An attacker could forge signatures now: pretend to be your server, log in with your SSH identity, or sign a token your API trusts. This risk only exists if Valsorda's reading is correct, and it's the one the advisory's list points at.

Here's where those two risks sit in tools you probably use:

Key exchange Signatures
TLS in browsers X25519MLKEM768 by default in current Chrome, Firefox, Safari and Edge ECDSA P-256 or RSA certificates
SSH mlkem768x25519-sha256 by default since OpenSSH 10.0, if both ends use it Ed25519, ECDSA or RSA keys
WireGuard X25519, with an optional pre-shared key you can add as a post-quantum layer —
JWTs, webhooks, APIs — often ES256 (P-256) or EdDSA
Code and package signing — often Ed25519 or ECDSA P-256

The key exchange column is mostly solved, as long as you're on hybrid ML-KEM. The signatures column is where the work is, and where the new standards are only starting to arrive.

A five-minute fix: post-quantum SSH

SSH shows the whole problem in miniature, and it has a gotcha that most Mac users won't know about.

How SSH chooses

When an SSH connection opens, each side sends a list of the key exchange methods it supports, most preferred first. The rule for choosing, from RFC 4253, is simple: use the first name on the client's list that the server also supports.

YOUR MAC SENDSTHE SERVER SENDSmlkem768x25519-sha256sntrup761x25519-sha512sntrup761x25519-sha512@openssh.comcurve25519-sha256curve25519-sha256@libssh.orgecdh-sha2-nistp256ecdh-sha2-nistp384ecdh-sha2-nistp521diffie-hellman-group-exchange-sha256ecdh-sha2-nistp256mlkem768x25519-sha256sntrup761x25519-sha512sntrup761x25519-sha512@openssh.comcurve25519-sha256curve25519-sha256@libssh.orgecdh-sha2-nistp384ecdh-sha2-nistp521diffie-hellman-group-exchange-sha256KEXINITFIRST NAME ON THE CLIENT'S LIST THAT THE SERVER ALSO HASits favourite, ignored →kex: algorithm: ecdh-sha2-nistp256CLASSICAL ONLY · NO WARNING PRINTEDkex: algorithm: mlkem768x25519-sha256HYBRID POST-QUANTUM
1Both sides open with a KEXINIT message listing the key exchange methods they support, most preferred first. Post-quantum ones are in the accent colour.2SSH takes the first name on the client's list that the server also supports. The server's order doesn't matter. On a stock Mac the first name is ecdh-sha2-nistp256, and every server supports it.3So the connection uses classical P-256, even though both ends support ML-KEM. Nothing goes wrong, and nothing on screen tells you it happened.4Put the post-quantum methods back at the top of the client's list and the same rule picks mlkem768x25519-sha256. Servers that don't support it still match something further down.
The rule is from RFC 4253, section 7.1, and every SSH implementation follows it. The server's list is real: it is what GitHub's SSH servers sent when I tested this.

That rule means the client decides. Your server can prefer ML-KEM as much as it likes. If your client lists something classical first, and the server supports it, classical is what you get.

What macOS does

On macOS, /etc/ssh/ssh_config pulls in a small file of Apple defaults, and that file includes /etc/ssh/crypto.conf:

$ cat /etc/ssh/ssh_config.d/100-macos.conf
Host *
  SendEnv LANG LC_*
  Include /etc/ssh/crypto.conf

$ ls -l /etc/ssh/crypto.conf
lrw-r--r--  1 root  wheel  17 Sep 25  2025 /etc/ssh/crypto.conf -> crypto/apple.conf
$ cat /etc/ssh/ssh_config.d/100-macos.conf
Host *
  SendEnv LANG LC_*
  Include /etc/ssh/crypto.conf

$ ls -l /etc/ssh/crypto.conf
lrw-r--r--  1 root  wheel  17 Sep 25  2025 /etc/ssh/crypto.conf -> crypto/apple.conf

And crypto/apple.conf contains this:

# Default algorithms favoring higher-performance FIPS algorithms
# in most cases.
Ciphers ^aes128-gcm@openssh.com,aes256-gcm@openssh.com
KexAlgorithms ^ecdh-sha2-nistp256
MACs ^hmac-sha2-256-etm@openssh.com,hmac-sha2-256
# Default algorithms favoring higher-performance FIPS algorithms
# in most cases.
Ciphers ^aes128-gcm@openssh.com,aes256-gcm@openssh.com
KexAlgorithms ^ecdh-sha2-nistp256
MACs ^hmac-sha2-256-etm@openssh.com,hmac-sha2-256

The ^ means "move these to the front of the default list". Apple's comment explains why: it prefers FIPS-approved algorithms, and P-256 ECDH is one of them. The side effect is that classical P-256 now sits in front of the post-quantum methods. That makes P-256 the first match with every server, since every server supports it.

You can see the order with ssh -G, which prints the final configuration for a host:

ssh -G github.com | awk '/^kexalgorithms/{print $2}' | tr , '\n' | head -3
ssh -G github.com | awk '/^kexalgorithms/{print $2}' | tr , '\n' | head -3
ecdh-sha2-nistp256
mlkem768x25519-sha256
sntrup761x25519-sha512
ecdh-sha2-nistp256
mlkem768x25519-sha256
sntrup761x25519-sha512

And -v shows what was actually negotiated:

ssh -v git@github.com 2>&1 | grep "kex: algorithm"
ssh -v git@github.com 2>&1 | grep "kex: algorithm"
debug1: kex: algorithm: ecdh-sha2-nistp256
debug1: kex: algorithm: ecdh-sha2-nistp256

GitHub supports ML-KEM, and so does the ssh that ships with macOS (OpenSSH 10.5). Neither of them used it. And this is the same P-256 that the NSA's list flags.

One more surprise: OpenSSH 10.1 and later are supposed to warn you when a connection isn't post-quantum. Apple's ssh contains the warning text, but it never printed on these connections. OpenSSH's documentation describes the warning as meaning the server didn't offer a post-quantum method. Here the server did offer one, and the client just chose something else, so you get no warning.

The fix

ssh reads your own ~/.ssh/config before the system file, and for each option it keeps the first value it finds. Put this line at the very top of ~/.ssh/config, before any Host block:

KexAlgorithms ^mlkem768x25519-sha256,sntrup761x25519-sha512,sntrup761x25519-sha512@openssh.com
KexAlgorithms ^mlkem768x25519-sha256,sntrup761x25519-sha512,sntrup761x25519-sha512@openssh.com
WHERE THE LIST COMES FROM~/.ssh/config1/etc/ssh/ssh_config2ssh_config.d/100-macos.conf3crypto/apple.conf4(no KexAlgorithms line)Include /etc/ssh/ssh_config.d/*Include /etc/ssh/crypto.confKexAlgorithms ^ecdh-sha2-nistp256KexAlgorithms ^ecdh-sha2-nistp256KexAlgorithms ^mlkem768x25519-sha256,…SKIPPED: ALREADY SETWHAT SSH OFFERS, IN ORDERmlkem768sntrup761sntrup@x25519x25519@p256p384p521dh-gexdh16dh18dh14OPENSSH'S DEFAULT ORDERAFTER apple.conf: P-256 JUMPS TO THE FRONT→ kex: algorithm: ecdh-sha2-nistp256YOUR LINE WINS: THE DEFAULT ORDER IS BACK→ kex: algorithm: mlkem768x25519-sha256
1ssh reads your ~/.ssh/config first, then the system file. On macOS the system file includes ssh_config.d/100-macos.conf, which includes /etc/ssh/crypto.conf, a symlink to crypto/apple.conf.2apple.conf says KexAlgorithms ^ecdh-sha2-nistp256. The ^ means "move these to the front of the default list". One line, and P-256 jumps ahead of the post-quantum methods.3For each option ssh keeps the first value it finds. Your file is read first, so your KexAlgorithms line wins and Apple's is skipped. Your ^ puts the post-quantum methods first, which is OpenSSH's own default order.
ssh -G hostname prints the final configuration for a host after all of this has been applied. It is the quickest way to see what ssh will actually offer.

I'd use ^ here and not a fixed list. The version going around on social media sets exactly three algorithms, which replaces the whole list. Any server older than OpenSSH 9.0 would then fail to connect instead of falling back. With ^, the post-quantum methods move to the front and everything else stays behind them as a fallback. The result is OpenSSH's own default order, which is what you'd have had without Apple's line.

Check again:

$ ssh -v git@github.com 2>&1 | grep "kex: algorithm"
debug1: kex: algorithm: mlkem768x25519-sha256
$ ssh -v git@github.com 2>&1 | grep "kex: algorithm"
debug1: kex: algorithm: mlkem768x25519-sha256

To check every host in your config at once:

for h in $(awk '/^Host /{for(i=2;i<=NF;i++) if ($i !~ /[*?]/) print $i}' ~/.ssh/config); do
  printf '%-24s ' "$h"
  ssh -v -o BatchMode=yes -o ConnectTimeout=5 "$h" true 2>&1 |
    awk '/kex: algorithm/{print $4; found=1} END{if (!found) print "(no answer)"}'
done
for h in $(awk '/^Host /{for(i=2;i<=NF;i++) if ($i !~ /[*?]/) print $i}' ~/.ssh/config); do
  printf '%-24s ' "$h"
  ssh -v -o BatchMode=yes -o ConnectTimeout=5 "$h" true 2>&1 |
    awk '/kex: algorithm/{print $4; found=1} END{if (!found) print "(no answer)"}'
done

Or let your AI agent do it

If you use an AI agent that can run terminal commands, like Claude Code, Codex or Cursor, you can paste this and let it do the checking. It looks before it changes anything, edits only ~/.ssh/config, and makes a backup first:

Help me make sure my SSH connections use post-quantum key exchange.
Work step by step and show me what you find before changing anything.

1. Run `ssh -V` and tell me the OpenSSH version.

2. Run `ssh -G github.com | grep -i '^kexalgorithms'` and tell me which
   algorithm comes first. If it isn't mlkem768x25519-sha256 or
   sntrup761x25519-sha512, find out why: read ~/.ssh/config,
   /etc/ssh/ssh_config and every file they Include (on macOS that's
   /etc/ssh/ssh_config.d/100-macos.conf and /etc/ssh/crypto.conf), and
   show me any KexAlgorithms line.

3. If the order needs fixing, back up ~/.ssh/config first, then add this
   line at the very top of it, before any Host or Match block:

   KexAlgorithms ^mlkem768x25519-sha256,sntrup761x25519-sha512,sntrup761x25519-sha512@openssh.com

   Keep the ^ at the start. Don't replace the whole algorithm list, and
   don't edit anything under /etc. Run `ssh -Q kex` first and leave out
   any name this OpenSSH doesn't support. If it supports none of them
   (OpenSSH older than 9.0), stop and tell me to upgrade OpenSSH instead.

4. Verify by running
   `ssh -v -o BatchMode=yes git@github.com 2>&1 | grep "kex: algorithm"`
   and show me the line it prints.

5. For each Host entry in ~/.ssh/config, run
   `ssh -v -o BatchMode=yes -o ConnectTimeout=5 <host> true` and show me
   a table of the negotiated kex algorithm per host. For any host still
   on curve25519 or ecdh, read its "remote software version" line and
   tell me what the server needs upgraded to. Don't change anything on
   the servers themselves.

Don't touch my private keys, don't generate new keys, and ask me before
making any change outside ~/.ssh/config.
Help me make sure my SSH connections use post-quantum key exchange.
Work step by step and show me what you find before changing anything.

1. Run `ssh -V` and tell me the OpenSSH version.

2. Run `ssh -G github.com | grep -i '^kexalgorithms'` and tell me which
   algorithm comes first. If it isn't mlkem768x25519-sha256 or
   sntrup761x25519-sha512, find out why: read ~/.ssh/config,
   /etc/ssh/ssh_config and every file they Include (on macOS that's
   /etc/ssh/ssh_config.d/100-macos.conf and /etc/ssh/crypto.conf), and
   show me any KexAlgorithms line.

3. If the order needs fixing, back up ~/.ssh/config first, then add this
   line at the very top of it, before any Host or Match block:

   KexAlgorithms ^mlkem768x25519-sha256,sntrup761x25519-sha512,sntrup761x25519-sha512@openssh.com

   Keep the ^ at the start. Don't replace the whole algorithm list, and
   don't edit anything under /etc. Run `ssh -Q kex` first and leave out
   any name this OpenSSH doesn't support. If it supports none of them
   (OpenSSH older than 9.0), stop and tell me to upgrade OpenSSH instead.

4. Verify by running
   `ssh -v -o BatchMode=yes git@github.com 2>&1 | grep "kex: algorithm"`
   and show me the line it prints.

5. For each Host entry in ~/.ssh/config, run
   `ssh -v -o BatchMode=yes -o ConnectTimeout=5 <host> true` and show me
   a table of the negotiated kex algorithm per host. For any host still
   on curve25519 or ecdh, read its "remote software version" line and
   tell me what the server needs upgraded to. Don't change anything on
   the servers themselves.

Don't touch my private keys, don't generate new keys, and ask me before
making any change outside ~/.ssh/config.

Any host that still shows curve25519 or ecdh-sha2-* is running a server too old to support post-quantum, or one configured to turn it off. Linux clients don't need the fix, because upstream OpenSSH's default order is already post-quantum first. Linux servers are a different matter. OpenSSH added post-quantum support in 9.0, and some long-term releases ship versions older than that: Ubuntu 22.04 has 8.9, and RHEL 9 has 8.7. Those servers will use classical key exchange no matter how your client is configured.

Why the hybrid is the right hedge

Every post-quantum method in OpenSSH's default list is a hybrid. It runs a classical exchange and a post-quantum one side by side and hashes the two secrets together. This week is a good argument for that design, because both halves are under suspicion, from different directions.

CLIENTSERVERX25519 · CLASSICALpublic value · 32 bytespublic value · 32 bytesK_CLK_CLML-KEM-768 · POST-QUANTUMencapsulation key · 1,184 byteswrap a secretciphertext · 1,088 bytesunwrapK_PQK_PQK = SHA-256( K_PQ ‖ K_CL )BOTH SIDES COMPUTE THE SAME K · SESSION KEYS COME FROM ITK_CL · BROKENK_CL · BROKENATTACKER RECOVERS THIS HALFBUT NOT THIS ONEONE HALF BROKEN · K STILL UNKNOWNK_PQ · BROKENK_PQ · BROKENATTACKER RECOVERS THIS HALFBUT NOT THIS ONEONE HALF BROKEN · K STILL UNKNOWN
1The classical half. Each side sends a 32-byte public value and combines it with its own secret. Both end up with the same shared secret, K_CL. Someone listening sees only the public values.2The post-quantum half, carried in the same two messages. The client sends an ML-KEM-768 encapsulation key. The server uses it to wrap a fresh secret and sends back the ciphertext. Only the client can unwrap it, so both sides now hold K_PQ.3Each side hashes the two secrets together. Every key used after this point, for encryption and for integrity, is derived from K.4Suppose 256-bit elliptic curves fall, to a quantum computer or to a classical attack nobody has published. The attacker recovers K_CL. Without K_PQ they still can't compute K.5Now suppose the opposite: a future version of this month's lattice attack becomes practical. K_PQ falls, but K_CL still holds against anyone who can't also break the curve. To get K an attacker has to break both halves.
This is mlkem768x25519-sha256 in SSH, and X25519MLKEM768 in TLS. sntrup761x25519-sha512 has the same shape with a different lattice scheme as its post-quantum half. A hybrid is a hedge: you don't need to know which half will fail first.

This is also why CIRG's advice includes "We also encourage hybrids that combine schemes based on different mathematical foundations." If either half fails, you're still covered.

Signatures: the part that isn't finished

The key exchange is now handled. Your SSH key is still almost certainly Ed25519, and so is the server's host key, which proves the server is who it says it is. A quantum computer can't use a recording to attack those later. But if the undisclosed findings are a classical break of Ed25519, they become a live problem.

OpenSSH 10.6, released October 6, adds a hybrid post-quantum signature type, ssh-mldsa44-ed25519. It pairs ML-DSA with Ed25519, so it is a hedge in the same way the key exchange is. Valsorda's advice is to "update OpenSSH to 10.6 and rotate to ssh-mldsa44-ed25519 keys".

There's a catch on macOS. The system ssh-keygen (10.5) can make one of these keys, but only the earlier experimental version:

$ ssh-keygen -t mldsa44-ed25519 -f test_key
$ cut -d' ' -f1 test_key.pub
ssh-mldsa44-ed25519@openssh.com
$ ssh-keygen -t mldsa44-ed25519 -f test_key
$ cut -d' ' -f1 test_key.pub
ssh-mldsa44-ed25519@openssh.com

The 10.6 release notes say: "Keys generated with the previous experimental support must be regenerated and/or removed." On a Mac, install OpenSSH 10.6 from Homebrew (brew install openssh) and generate the key with that. Both ends also need 10.6 or later, so this is a rollout you plan, not a one-line change. Keep your Ed25519 key alongside the new one while servers catch up. And expect bigger keys: the hybrid public key line is about 1.9 KB, compared with under 100 bytes for Ed25519.

How to prepare, beyond SSH

Most of this list comes straight from the NSA advisory, CIRG and Valsorda, who agree with each other on all of it:

  1. Put every key exchange on hybrid ML-KEM, now. TLS: X25519MLKEM768. It's already on in browsers, but check your servers, load balancers, internal services and HTTP clients. OpenSSL 3.5 and current Go, BoringSSL and rustls all support it. SSH: as above. VPNs: check whether your vendor has a post-quantum mode, and on WireGuard, add a pre-shared key. This protects against recorded traffic, and it's the cheapest thing on the list.
  2. Make an inventory. It's the NSA's first step for a reason. Write down where you use ECDH, ECDSA and EdDSA: TLS certificates, SSH host and user keys, JWT signing keys, webhook signatures, package and code signing, hardware tokens. You can't move what you haven't found.
  3. Plan your move to post-quantum signatures. For internal PKI, the target is ML-DSA. If something can't take it yet, Valsorda suggests RSA-3072 or P-384 as a stopgap. Both are outside the advisory's list, though that is a reading of what the list leaves out, not a promise.
  4. Make sure you can rotate quickly. CIRG recommends "designing agile systems so that individual schemes can be replaced quickly if the need arises." In practice that means you can reissue certificates, swap signing keys and ship library updates in days, not quarters. If the details come out next month, the people who can rotate quickly will be fine.
  5. Choose the highest security level you can afford. CIRG again: "choose the highest security level each application can support." For example, use ML-KEM-1024 or ML-DSA-87 where a system lets you choose, since the new attack scales badly against larger parameters.
  6. Update; don't build it yourself. None of this needs new cryptographic code from you. It needs current versions of OpenSSL, OpenSSH, your language's TLS stack and your cloud provider's load balancers, and settings that don't pin old algorithms. Look for KexAlgorithms, ssl_ecdh_curve, cipher-suite lists and FIPS profiles that were set years ago and never revisited.

What it costs

Post-quantum key exchange sends more bytes, and that's about the only cost you'll notice. I timed SSH logins to GitHub with each method forced on:

KEY EXCHANGE, BOTH DIRECTIONS · BYTESP-256130 BX2551964 BSNTRUP761 HYBRID2,261 BML-KEM-768 HYBRID2,336 BTIME TO CONNECT AND LOG IN · MEDIAN OF 100200 ms400 ms600 msP-256614 msX25519608 msSNTRUP761 HYBRID564 msML-KEM-768 HYBRID604 ms
1The hybrids send about 2.3 KB for the key exchange, against 64 bytes for X25519 alone. That is roughly 35 times more, and still smaller than a typical TLS certificate chain. It is sent once, at the start.2The time to connect and log in barely moves, because it is set by network round trips, and the hybrid adds none. The differences between these bars are smaller than the spread between runs of the same algorithm.
Bytes are the key-exchange public values and ciphertexts in both directions, from the specifications. Times are the median of 10 runs of ssh -T git@github.com from a Mac on home broadband, forcing each algorithm in turn with -o KexAlgorithms=.

The extra 2.3 KB goes once, at the start of the connection. The time to connect is set by network round trips, and the hybrid doesn't add any. Signatures are a bigger change. ML-DSA public keys and signatures are measured in kilobytes, not tens of bytes, which matters for certificate chains, tokens and anything you send many times. That's part of why the signature migration is slower, and why it's worth starting now.

What we still don't know

  • What the disclosures were. Which companies made them, which algorithms are affected, and whether the attack is classical or quantum. Two members of the House Homeland Security Committee have asked Anthropic and OpenAI for a classified briefing.
  • Whether it's related to the lattice papers. The NSA hasn't said.
  • How far the lattice attack will go. CIRG expects improvements. ML-KEM's margin is enormous today, and nobody knows how fast it will shrink once AI models keep working on the problem.

Some of this will come out. When it does, the steps above won't change. What might change is how fast you need to finish them.

The mental model

If you remember one thing from each part:

Key exchange protects the past, signatures protect the present. Anything recorded today is only as safe as its key exchange, so switch to hybrid ML-KEM now. Signatures only matter during the handshake. They become urgent only if a live break exists, and the advisory hints that one might.

Hybrids are a hedge you can deploy today. This week brought suspicion of curves and of lattices at the same time. A hybrid only fails if both do.

Check what you actually negotiate, not what your software supports. A stock Mac supports ML-KEM and never uses it. ssh -v and ssh -G will tell you which is true for you.

Further reading