If you’ve been anywhere near Hacker News (or the internet, really) over the last few days, you’ve seen it. On December 1st the NSA published an advisory called Immediate Actions to Push Toward Post-Quantum, and the very next day the Office of the National Cyber Director, the NSA and CISA followed up with a joint statement saying that “American SI companies have disclosed discoveries that impact the security of some cryptography currently in use”. SI is short for super intelligence.
So… AI found something.
Then it got weird. Amazon, Anthropic, Apple, Cloudflare, Google, Microsoft, OpenAI and Oracle backed it that same day (when did those eight last sign anything together?) and urged everyone to move to NIST’s post-quantum algorithms and “to accelerate the migration as soon as possible”. Jason Donenfeld chimed in too. He wrote to the WireGuard list that a WireGuard v2 is in the works, because, in his words, “ECC was really in an ergonomic sweet spot, which we’ll have to move on from.”
Reading between the lines
Nobody says what exactly was found. Frustrating, when you’re the one who has to decide what to do about it.
The most useful take I’ve read so far is from Go cryptography maintainer Filippo Valsorda, who went through the advisory’s fine print (it asks you to hunt down “elliptic curves other than P-384 or P-521” and “EdDSA”) and concluded that 256-bit elliptic curves, meaning P-256, X25519 and Ed25519, may be a lot weaker than we thought. RSA and P-384 should be fine as a stopgap. And the new post-quantum algorithms, ML-KEM for key exchange and ML-DSA for signatures, are doing just fine.
That’s his reading, mind you, the NSA didn’t spell any of it out. I’m going with it anyway, because if he turns out to be wrong, all I’ve lost is some work I’d have had to do sooner or later.
Logs and “harvest now, decrypt later”
Logs are full of stuff you’d rather nobody read. Tokens in URLs, email addresses, IP addresses, and every now and then a password that somebody typed into the username field (if you’ve ever read an auth log, you know).
When you tail those logs over SSH, all of that crosses the network encrypted with keys that the two ends agreed on when the connection started, and if that agreement can be broken some day, anybody who records your traffic today gets to read it then. Even years from now.
That’s “harvest now, decrypt later”, and it’s why key exchange is the first thing everybody is fixing.
Where LogRaker stands today
LogRaker doesn’t run OpenSSH at all. It speaks SSH itself through its own fork of swift-nio-ssh (I wrote about why it needed a fork a while back), and that fork offers ECDH on P-384 first, so with a stock OpenSSH server your connection ends up on ecdh-sha2-nistp384, with AES-256-GCM on top.
I’d love to take credit for that ordering. I can’t. It came with upstream swift-nio-ssh, but still, P-384 is exactly the stopgap the NSA names.
What it isn’t is post-quantum. And OpenSSH 10.6 added a server-side warning for exactly that, on by default, so if your servers already run it, every single LogRaker connection shows up in their logs like this:
WARNING: connection from 203.0.113.7 port 52114 is not using a post-quantum key exchange algorithm: "ecdh-sha2-nistp384"
Yep, that’s LogRaker. For now…
ML-KEM is next
Since version 10.0, OpenSSH’s default key exchange has been a hybrid of ML-KEM and X25519 called mlkem768x25519-sha256. Hybrid means the connection stays safe as long as either half holds, so even if X25519 falls, ML-KEM still has your back. It’s specified in RFC 10042. Adding it to LogRaker’s fork is next on my list.
The design is done. The trickiest bit is one tiny encoding detail, of all things. The shared secret goes into the handshake hash as a plain string, while every other SSH key exchange encodes it as a big integer, and a mix-up there only blows up against a real server, so there’ll be plenty of testing against real servers before this ships. Like the RSA work, it’ll go into the fork on GitHub for anyone else using swift-nio-ssh.
Two catches. ML-KEM only came to Apple’s CryptoKit with macOS 26, so on macOS 15 LogRaker stays on P-384, and the server needs OpenSSH 9.9 or later because older versions don’t speak ML-KEM at all (with those it’s P-384 again).
Your keys are a harder problem
Key exchange protects what you send. Your SSH key is a different story, it proves who you are, and if 256-bit curves really are weaker than we thought, then the keys LogRaker’s Key Manager creates (Ed25519) are in the suspect group. So are the Secure Enclave keys I wrote about just three weeks ago, because the Secure Enclave only signs with P-256.
Great timing, Thomas.
OpenSSH 10.6 also turned on a post-quantum key type, ssh-mldsa44-ed25519. Swift can’t do that one yet. CryptoKit has ML-DSA in two sizes and, of course, neither of them is the ML-DSA-44 that OpenSSH picked, so that has to wait.
In the meantime, if this worries you (it worries me), make a P-384 or RSA key with ssh-keygen and give LogRaker that one instead. It reads both, passphrase and all:
ssh-keygen -t ecdsa -b 384
ssh-keygen -t rsa -b 3072
What Key Manager should create by default from now on, I haven’t decided yet. I’ll write that up when I have.
The cloud side mostly took care of itself
Here I got lucky. Apple turned on post-quantum TLS by default in macOS 26 (X25519MLKEM768, for the curious), and LogRaker talks to Amazon CloudWatch, Amazon S3 and Supabase through that same networking stack, which means on macOS 26 those connections are already post-quantum wherever the other end supports it, without me lifting a finger.
Google Cloud and Firebase are the exception. Their live tail runs over gRPC with its own TLS library, and that one stays classical for now. It’s on my list too.
Let your logs do the inventory
Step one in the NSA’s advisory is an inventory of where weak crypto is still in use. A later step literally says to “deploy live traffic detection tuned to identify weak, legacy cryptography still in use”.
Well, if your servers run OpenSSH 10.6, they already write that detection into their logs for you, one line per connection, client address included.
So, in LogRaker, add a journal Stream for the SSH server’s unit on each of your Servers (ssh on Debian and Ubuntu, sshd on most others). Then create a Monitor with the pattern *post-quantum* and point it at the Server Group that holds them. It picks up every Stream under every Server in that group, even Servers you add later, and counts the matches, and when they pile up it can turn red. What you end up with is a running list of every client that still isn’t post-quantum, and the address in each line tells you who to go chase.
For a little while LogRaker itself will be on that list too. That part’s on me.
So, if you look after servers, now is a good time to update OpenSSH and go through your keys for anything Ed25519 or P-256. And if you tail their logs with LogRaker… ML-KEM is coming, as soon as it’s properly tested.
Thanks for reading!