On the second of December the NSA put out a press release telling owners and vendors of national security systems to speed up their move to post-quantum cryptography. Not plan for it, speed it up. Two things in it made me sit up. One was that “frontier SI companies” had disclosed discoveries affecting some cryptography in use today, which the NSA counts as a threat on top of the quantum one, without saying what the discoveries were. The other was a sentence that has been true for years but reads differently in a press release: adversaries are already collecting encrypted traffic to decrypt later.
The release points to a seven-page advisory published the day before, Immediate Actions to Push Toward Post-Quantum. It is more practical than I expected. Six steps, ordered by how much they reach for the effort: inventory where cryptography is used, move TLS to 1.3 with post-quantum settings on, stand up post-quantum certificate authorities, reissue certificates and re-sign software, update firmware to whatever the vendor already ships, and isolate and watch whatever can’t be upgraded. The target is NSA’s CNSA 2.0 suite, which means ML-KEM-1024 for key exchange and ML-DSA-87 for signatures, both standardised by NIST in 2024 (FIPS 203 and FIPS 204). For hybrid key exchange in TLS it points to RFC 10024.
The discoveries weren’t secret, as it turned out, just not the NSA’s to describe. Two days before the release, a group of cryptographers calling itself the Cryptography Incident Review Group had published an initial assessment of what Anthropic had sent them: a quantum attack on the structured lattices that ML-KEM and ML-DSA are built on. Against those standards as they stand, the attack costs far more than the ones already known, and those were already out of reach; the group’s word for its scale is “galactic”. What worries them is the direction, and they expect the attack to get better. Their advice reads like a plan for the rest of this post: keep migrating, choose the highest security level you can, combine schemes built on different mathematics, and make it possible to swap one out quickly. Fast Company’s account of how the findings reached the cryptographers is messier, and ends with Peter Schwabe, one of the people behind the designs that became ML-KEM and ML-DSA, putting it plainly: “That software was insecure before. It’s not like it suddenly became insecure.”
My homelab is not a national security system. It is two sites, a few Proxmox boxes, a pair of OPNsense firewalls and some NAS units that are older than I like to admit. But step one applies to anyone, and I had no idea where I stood, so that evening I went and looked.
WireGuard OPNsense Proxmox Tailscale
Asking every server what it offers
For SSH I didn’t want to log in anywhere. Logging in to thirty-odd hosts means thirty-odd auth log lines, and on the firewalls a failed attempt gives sshguard points I’d rather not collect. SSH is kind here. Right after the version banners, before any authentication, the server sends a packet called KEXINIT that lists every key exchange it is willing to do. So the probe connects, sends a banner, reads that one packet and hangs up:
banner, kex, hostkeys = ssh_kexinit(ip) # reads the server's KEXINIT, then closes
pq = [k for k in kex if k in ('mlkem768x25519-sha256', 'sntrup761x25519-sha512@openssh.com')]
For TLS I used plain openssl s_client, once offering only the hybrid group X25519MLKEM768 and once with
defaults to see what the server picks on its own.
The first TLS run lied to me. All three of my iLO cards came back as post-quantum, over TLS 1.2, which is not a thing. What had happened is that I offered only the ML-KEM group, the iLO ignored it, fell back to an RSA key exchange and the handshake succeeded. My check counted “handshake succeeded” as a pass. It now looks at the negotiated group instead, and the iLOs dropped to where they belong.
The result was better than I expected. Everything on a current Debian, which here means the Proxmox hosts and every
container, already offers the ML-KEM hybrid for SSH because
OpenSSH 10 made it the default. Two Ubuntu machines
offer the older sntrup761 hybrid, which is also fine. The public websites, the Proxmox GUIs and all three firewall
GUIs negotiate X25519MLKEM768 without being asked. I did nothing to earn any of that; it came with updates.
By the advisory’s own yardstick none of it would pass, mind you. Its list of things to flag includes EdDSA and any elliptic curve other than P-384 or P-521, which covers my Ed25519 SSH keys and the X25519 half of every hybrid above, and CNSA 2.0 wants ML-KEM-1024 where OpenSSH and the browsers use 768. The cryptographers’ “highest level you can” points the same way, and 768 is the default I get rather than one I chose. For a homelab I’m fine with that. The hybrids are there so that breaking one half alone gets you nothing, which is the part I care about.
The gaps were the appliances. The NAS units run OpenSSH 8.2, and one of them 7.4, and none of their web interfaces offer the hybrid. The iLOs are TLS 1.2. The Windows box that runs Plex has OpenSSH 9.5 without a hybrid. None of these are reachable from outside, and none of them are mine to fix beyond pressing “update” when the vendor ships something. The advisory’s last step is written for exactly this pile: list what can’t be upgraded, keep it isolated, and watch it. That part I was already doing, mostly by accident. For the “pressing update” part there is a decent companion piece from the Australian, US and NSA agencies, Post-quantum questions to ask your vendors. It’s written for procurement teams, but the questions about hardcoded crypto and firmware signing are the ones I’d ask about a NAS if anyone at the vendor were listening.
Then there was WireGuard. WireGuard’s key exchange is Curve25519 and nothing else, and every peer in both firewalls had the pre-shared key field empty, including the site-to-site link that carries backups, metrics, syslog and every admin session between the homelab and the apartment.
Why a pre-shared key is the cheap fix
WireGuard has an optional pre-shared key per peer pair, put there by its author for exactly this case: the original design judged post-quantum public-key schemes impractical for the handshake and left a symmetric key as the escape hatch. When it is set, it gets mixed into the handshake along with the Curve25519 result, so the session keys depend on both. Someone who records the tunnel today and gets a quantum computer, or a clever attack, in ten years can recover the Curve25519 part and still has nothing, because the PSK never crossed the wire. It costs no throughput I can measure and nothing changes for the machines behind the tunnel.
The WireGuard author said as much on the mailing list the same day the NSA release came out, in a post titled Post Quantum WireGuard, WireGuard v2, ongoing AI discoveries, and so forth: if you can share a 256-bit key by some secure means, breaking the tunnel comes down to breaking that key, not any public-key maths. He also said work on a WireGuard v2 has started, and was frank that it won’t be easy to do elegantly with today’s post-quantum primitives. Not every WireGuard user even has the PSK option. Tailscale, for one, doesn’t use PSKs and doesn’t let you set them. It is also, by accident, the kind of diversity the cryptographers asked for. The key doesn’t rest on curves or lattices at all, only on a symmetric cipher and on nobody else having it.
It isn’t magic. The PSK is a static shared secret, so if it ever leaks together with a recording and a broken curve, the protection is gone. Mine lives in the firewall configs and their backups and nowhere else. I never printed it. I did have to think about how it got to the far end, because “securely” is doing a lot of work in that advice. The apartment firewall received it over its own API, through the very tunnel it was about to protect. What saves that is the layer inside: the API is HTTPS, and with stock OpenSSL 3.5 on my side that firewall’s GUI negotiates the ML-KEM hybrid, so the key crossed the old tunnel inside a post-quantum session. Next time I’d rather not depend on reasoning like that.
Twenty minutes without a tunnel
The plan was careful, or I thought so. The apartment side first, because the only way I reach the apartment firewall is through this tunnel, and I’d lose the path the moment the two ends disagreed. Then both homelab firewalls over the LAN a few seconds later, because WireGuard is one of the things my firewall pair does not sync between nodes. A Proxmox snapshot of the apartment firewall VM before any of it, and the VM watchdog paused so it wouldn’t “help”. The key itself written to a file readable only by me until a handshake proved it worked.
The dry run read every peer on all three firewalls and was happy. I ran it for real at 23:34.
The apartment call never answered. I half expected that, since the apartment applied the change and the tunnel my request was riding on went down. I pushed the key to the two homelab nodes, and then nothing happened for four minutes. No handshake. When I dumped the peer from the homelab firewall, the key was there and the field that ties the peer to its WireGuard instance was empty.
This is the call I had made, on all three firewalls:
call(node, f'/api/wireguard/client/setClient/{uuid}', {'client': {'psk': psk}})
On OPNsense the link between a peer and an instance is stored on the instance, and setClient rewrites it from
whatever you send in servers. Send nothing and the peer gets detached from every instance it was on. It’s a partial
update that isn’t partial. My dry run couldn’t have caught it, because it only read.
The homelab side I could fix from where I sat. The apartment side was now unreachable from anywhere I had a shell, so it needed a person in front of a browser on the apartment network. That person was me. My saved login was then rejected, which cost a few more minutes before I remembered that I’d put TOTP on that GUI in October and the code goes straight after the password. Re-ticking the instance on the peer, Save, Apply, and the handshake came back with the new key at about five to midnight.
The fix in the script is two lines. It reads the peer’s current instances and sends them along with the key, and it refuses to touch a peer that is on no instance at all:
servers = selected(get_client(node, uuid)['servers'])
call(node, f'/api/wireguard/client/setClient/{uuid}', {'client': {'psk': psk, 'servers': servers}})
The bigger lesson is the order I’d been so pleased with. Doing the far side first protected me from cutting the path while the change was in flight. It did nothing about a change that was wrong. For anything that can sever the only road to a box, I now try the same write on something harmless first, a disabled throwaway peer would have done.
What’s left
The site link is done and both firewall nodes have the key, so a failover keeps it. My phone and the laptops still connect without a PSK. Adding one means changing the firewall and the device profile together while I hold the device, and after this evening I’m in no hurry to do that at midnight. The oldest NAS needs a look at whether its vendor still ships updates for it, and the rest of the appliances will become post-quantum when their vendors decide they should. I’m not sure yet whether I’ll ever get the iLOs there.
I also looked at Rosenpass, which does the second thing the WireGuard author describes: it runs a post-quantum key exchange next to WireGuard and swaps a fresh PSK in every couple of minutes. It’s maintained and there’s a FreeBSD port, but my tunnel ends on OPNsense, where there’s no plugin for it, and NetBird, the one packaged integration I found, has marked its Rosenpass support as deprecated. A static key I rotate by hand will do until WireGuard v2 shows up.
I’ll rerun the probe now and then. It takes a minute and it no longer lies about TLS 1.2.
Comments
Comments are the replies to this post on Mastodon and Bluesky. Reply there and it shows up here.