Post-Quantum Fleet Audit: What the NSA's 'Immediate' PQC Advisory Actually Changed on Our Servers
On 2 December 2026 the NSA published a press release with a verb it rarely uses: "NSA Advises Immediate Transition to Post-Quantum Cryptography". The same day, the UK's NCSC echoed it as "urgent action", and a joint NSA/CISA/ONCD statement simultaneously tried to calm everyone down: "recent SI advances do not present an immediate and widespread threat."
Both things are true, and the gap between them is where the actual work lives. So we did what we did for NFS2ROOT: we stopped reading commentary and started testing our own endpoints. This post is the result — what the advisory says, what we measured, the two gaps that surprised us, and the commands to reproduce every number on your own fleet.
What actually happened, minus the rumour mill
The weekend before, a rumour made the rounds that a frontier AI lab had cracked RSA-2048. Elon Musk replied "I've heard this from a few people", and the usual seventy-two hours of dread followed. On 30 November Anthropic published four theoretical papers and the rumour turned out to be wrong in an instructive way: none of the four concern RSA.
They concern the mathematics underneath ML-KEM and ML-DSA — the two NIST post-quantum standards finalised in 2024, the ones everyone is migrating to. An unreleased Claude model found a quantum algorithm that solves certain structured-lattice problems faster than anything previously known. The fine print is what matters:
- It requires a large fault-tolerant quantum computer, which does not exist.
- For real-world key sizes it is, in Anthropic's words, "dramatically slower than the methods that already exist".
- The Cryptography Incident Review Group called the attack "galactic"; Scott Aaronson called it "a major development in cryptanalysis, but not an imminent danger".
But Anthropic also said the results "lower our long-term confidence in structured lattices". That is the sentence the NSA reacted to, and it is why the advisory landed with "immediate" in the title. The logic is not "the locks are broken today". It is: the migration to the new locks is a multi-year project, the new locks turned out to have a non-zero chance of needing replacement themselves, and therefore every month you delay is a month you may need twice.
Anthropic's own recommendation is worth quoting in full, because it is the thesis of this post: "We recommend continuing the transition to post-quantum cryptography, using hybrid setups and agile systems that can be switched quickly if flaws are found in any given method." Not "pause". Not "switch to something newer". Hybrid, and agile — the two properties that survive any single algorithm failing.
The BSI had already reached the same timeline conclusion for Germany, independently, in its October 2026 national guideline implementing the EU PQC roadmap: crypto inventory for high-risk use cases now, migration of those by end of 2030, the rest largely by 2035. The NSA advisory moved the urgency, not the dates.
The two threats people keep conflating
Every PQC article sooner or later says "harvest now, decrypt later", and it is worth being precise about which of two distinct threats applies to which of your systems, because they have different fixes.
Threat 1 — confidentiality of data in transit (today's problem). An adversary records your encrypted traffic now and decrypts it when a cryptographically relevant quantum computer exists. Anything with a secrecy lifetime over ~10 years — health data, source code, long-lived credentials, diplomatic or legal material — is already exposed. The fix is a quantum-safe key exchange. This is the one you can close today, in software, for free, which is exactly why the NSA is shouting about it.
Threat 2 — authenticity (tomorrow's problem). Signatures (certificates, firmware, package signing) only need to be quantum-safe by the time a quantum computer can forge them. Nothing is forged retroactively. The fix is ML-DSA and friends, and the deadline is ~2035. You cannot buy this today at scale — the CA ecosystem is not there yet — so for now the correct action is inventory and plan, not panic.
The NSA advisory is almost entirely about Threat 1. So is this audit.
What we tested and how
Our fleet is two production VPSes plus a CI site-runner, both 1blu hosts on Debian, edge TLS terminated by Traefik v2.11 in front of everything. Mail is a mailcow stack on one of them. The audit covered every endpoint an outsider can reach:
| Layer | Stack | Why it matters |
|---|---|---|
| HTTPS (5 public domains + registry) | Traefik v2.11.50 (Go crypto/tls) | Threat 1 for all web traffic |
| SSH (3 hosts) | OpenSSH 8.9p1 / 9.6p1 | Threat 1 for every shell session and git push |
| Mail submission, IMAP, SMTP | mailcow (Postfix → OpenSSL 3.0.18, Dovecot → OpenSSL 3.3.6) | Threat 1 for every email |
| TLS certificates | Let's Encrypt, RSA-4096 | Threat 2 — informational only |
The probe is one line and you should run it against your own hosts before reading further. The client needs OpenSSL 3.5+ to offer the hybrid group:
echo | openssl s_client -connect HOST:443 -groups X25519MLKEM768 2>/dev/null \
| grep -i "Negotiated TLS1.3 group"
X25519MLKEM768 is the hybrid group standardised as RFC 10024: it combines X25519 (classical) with ML-KEM-768 (NIST FIPS 203) so that the connection is secure if either algorithm holds. That "if either" is doing a lot more work since 30 November. A pure-ML-KEM connection would now carry the Anthropic caveat; a hybrid one carries none of it — if lattices fall, X25519 still stands, and vice versa.
Result 1: HTTPS was already done — by accident
Every public domain negotiated the hybrid group on the first try:
tobias-weiss.org Negotiated TLS1.3 group: X25519MLKEM768
graphwiz.ai Negotiated TLS1.3 group: X25519MLKEM768
courses.graphwiz.ai Negotiated TLS1.3 group: X25519MLKEM768
ki-kompetenz-training.org Negotiated TLS1.3 group: X25519MLKEM768
registry.openedusuite.org Negotiated TLS1.3 group: X25519MLKEM768
We configured none of this. The explanation is a dependency chain: Go 1.24 (February 2025) made X25519MLKEM768 a default-enabled key exchange in crypto/tls, placed first in the fixed preference order whenever the application leaves Config.CurvePreferences nil; Traefik is written in Go and leaves it nil; Traefik v2.11.50 is built with a Go toolchain new enough to have it. Modern Chrome and Firefox offer the group by default, so every browser visitor to these sites has been getting post-quantum TLS for months without anyone deciding they should.
This is the good kind of supply-chain effect, and it is also a lesson: "we are PQC-ready" is a thing that can be true without anyone having planned it, and you find out by measuring, not by reading release notes. The same measurement told us the opposite story two layers down.
Result 2: SSH supports PQ but never uses it
Both hosts offer a post-quantum key exchange. Both negotiate a classical one in practice. This is the gap we did not expect, and the mechanism is worth understanding because it is not a server-side bug.
$ ssh -vv weiss@HOST true 2>&1 | grep "kex: algorithm"
kex: algorithm: ecdh-sha2-nistp256 # ← classical, on every host
$ ssh -o KexAlgorithms=sntrup761x25519-sha512@openssh.com -vv weiss@HOST true 2>&1 | grep "kex: algorithm"
kex: algorithm: sntrup761x25519-sha512@openssh.com # ← PQ works when asked
OpenSSH has offered sntrup761x25519-sha512@openssh.com as a hybrid PQ key exchange since 9.0 (April 2022); mlkem768x25519-sha256 — the NIST-standard hybrid — followed in 9.9 (September 2024) and became the default in 10.0 (April 2025). OpenSSH 10.1 even prints a warning when a session isn't PQ. So why did every connection we measure land on NIST P-256?
Because of how SSH negotiates. The client sends its algorithm list in preference order, and the server picks the first one it also supports. Server order is irrelevant. Our servers on Ubuntu 22.04 ship OpenSSH 8.9, whose default client list puts ecdh-sha2-nistp256 ahead of sntrup761x25519. Ubuntu 24.04 ships 9.6, same client ordering. So a modern client connecting to a PQ-capable server gets a classical key exchange — purely because the client asked for the classical one first.
This is a real finding with a real consequence: every SSH session, every git push over SSH, every Ansible run to these hosts is currently "store now, decrypt later" in the exact sense the NSA means. The server side was ready in 2022. The client side never asked.
The fix is a client-side one-liner in ~/.ssh/config, and this is the single highest-value change in this entire audit:
Host *
KexAlgorithms mlkem768x25519-sha256,sntrup761x25519-sha512@openssh.com,curve25519-sha256
Put the PQ hybrids first, keep curve25519-sha256 as the fallback for hosts that lack them. Verify with the -vv grep above; you want to see sntrup761x25519 or mlkem768x25519, not ecdh.
Two details that matter when you roll this out, both learned the hard way while turning this into an Ansible role:
Order the client list mlkem768x25519 first. A client skips an algorithm the server does not offer, so listing the newer hybrid first is safe against every server in our fleet (none runs 9.9 yet) and becomes the negotiated KEX automatically the day a server is upgraded. Verified: against both hosts the client falls through to sntrup761x25519; against github.com, which already runs OpenSSH 10, it negotiates mlkem768x25519.
Never put an algorithm the server does not know into the server's KexAlgorithms. We also set the preference server-side in our harden role, for belt-and-suspenders — and discovered that sshd -t rejects the entire config if one name is unknown to that sshd. mlkem768x25519-sha256 is unknown to both 8.9p1 and 9.6p1: Unsupported KEX algorithm ... Bad SSH2 KexAlgorithms. A role with validate: sshd -t -f %s aborts the play instead of breaking sshd, but a hand edit without that check could lock you out. The server list therefore stays at sntrup761x25519 plus classical fallbacks until a host is actually on 9.9 or newer. The client side alone is what closes the gap; the server side is documentation that can bite.
Result 3: mail is the genuine gap
Mail was the only layer where the probe came back empty — and it was not a measurement artefact:
mail.tobias-weiss.org:993 (IMAPS) Negotiated TLS1.3 group NID: 0
mail.tobias-weiss.org:587 (submit) Negotiated TLS1.3 group NID: 0
imap.gmail.com:993 (control) Negotiated TLS1.3 group: X25519MLKEM768
NID: 0 means "a classical group, I just don't have a name for it" — in our case X25519. The client offered the hybrid group and the server declined it. Gmail, as the control, accepted.
The reason is the dependency chain again, in reverse. Traefik is Go, and Go got ML-KEM for free. Mailcow's TLS is terminated by OpenSSL, inside containers: Dovecot on OpenSSL 3.3.6, Postfix on OpenSSL 3.0.18. ML-KEM is native in OpenSSL 3.5+ (April 2025). Neither container has it, so there is nothing for the mail stack to offer, and no configuration flag to flip.
This is the honest bad news of the audit, and it is also the honest state of self-hosted email in late 2026: post-quantum TLS for mail is not a config change, it is a distribution-level wait. The realistic paths are:
- Wait for mailcow to rebase on an OpenSSL 3.5+ base. This will happen; mailcow tracks Debian and Debian trixie already carries 3.5. No action, but check
openssl versioninside the containers after each mailcow update. - Put a PQ-capable proxy in front of mail. Traefik can terminate TLS for IMAPS/submission and re-encrypt to the backend; the hop inside the host network is then the only classical segment. This works today and is what we will do for the submission port, which carries the most long-lived sensitive content.
- Do not attempt
oqs-provider. The Open Quantum Safe provider for OpenSSL 3.0 is a research artefact, painful to build, and you would be running experimental crypto on your mail server to close a gap that a Debian point release closes for free.
Priority-wise, mail sits below SSH: SSH carries credentials and infrastructure access now; mail carries it too, but the content is mostly already in many classical-encrypted copies across the internet by the time it reaches us. We will fix SSH today and mail at the next maintenance window.
Result 4: certificates — the thing you cannot fix, and shouldn't try
Every certificate on the fleet is RSA-4096, issued by Let's Encrypt, signed sha256WithRSAEncryption. Under Threat 2 this is a future problem with a 2035 horizon; under Threat 1 it is irrelevant, because RSA in a certificate authenticates the key exchange, it does not perform it. The quantum-vulnerable part of TLS — the key exchange — is already hybrid on every host.
There is no ML-DSA certificate to buy. Let's Encrypt has announced the intention and not the product. The NSA's advice for this layer is "specify CNSA 2.0 requirements in acquisitions and prioritise appropriately validated products" — in other words, put it in the procurement text and the inventory now, act when the chain of trust exists. That is what we did: the inventory says RSA-4096 on five domains, review date 2027.
Result 5: two databases on 0.0.0.0 — a finding we first attributed to the wrong service
The audit turned up two PostgreSQL instances listening on all interfaces, ports 5435 and 5436, and my first pass wrote them down as "litellm's database", because that is the stack on this host that uses host networking. Wrong, and the correction is instructive: the LiteLLM role does it right — its postgres is started with -c listen_addresses=127.0.0.1 and sits on 127.0.0.1:5433. The two listeners on 0.0.0.0 belonged to the two Matrix Synapse stacks, deployed outside Ansible, whose compose files start postgres with a bare -p 5435 and no listen_addresses at all. Default for that is every interface.
UFW's default-deny policy meant nothing was reachable from outside — we confirmed that — but a firewall is one layer, not two, and listen_addresses is free. The fix is the one argument the LiteLLM role already uses:
command: ["-p", "5435", "-c", "listen_addresses=127.0.0.1"]
Synapse connects to host: 127.0.0.1 and the healthcheck probes -h 127.0.0.1, so neither notices the change; we recreated only the postgres containers (docker compose up -d --no-deps postgres) and all four containers came back healthy. The lesson is less about PostgreSQL than about attribution: a port scan tells you what is listening, not which compose file owns it — docker ps shows nothing for host-networked containers. Resolve the PID through /proc/<pid>/cgroup to the container ID before you touch anything.
The inventory, in one table
This is the deliverable the NSA asks for first ("Step 1: Inventory your cryptographic dependencies") and the one the BSI guideline asks KRITIS operators to have by end of 2026. Ours, post-audit:
| Endpoint | Stack | PQ key exchange | Status |
|---|---|---|---|
| 6 HTTPS domains | Traefik v2.11.50 / Go TLS | ✅ X25519MLKEM768 | Done (verified) |
| SSH, 3 hosts | OpenSSH 8.9 / 9.6 | ⚠️ offered, not negotiated | Fixed client-side |
| Mail IMAPS/587 | mailcow, OpenSSL 3.0/3.3 | ❌ classical X25519 | Proxy plan, next window |
| SMTP 25 inbound | Postfix / OpenSSL 3.0 | ❌ | Opportunistic; wait for base update |
| TLS certificates | Let's Encrypt RSA-4096 | n/a (Threat 2) | Inventory, review 2027 |
| Host keys | ssh-ed25519 | n/a (Threat 2) | Inventory, review 2035 |
| Internal DBs | 2× Matrix synapse postgres | n/a | Fixed — rebound to 127.0.0.1, see below |
What the advisory changes, and what it does not
If your stack looks anything like ours, the NSA's "immediate" is less dramatic than the headline and more specific than the commentary suggests:
- It does not mean your web traffic is exposed. If you run a Go-based edge proxy — Traefik, Caddy, anything on Go 1.24+ — you have had hybrid PQ TLS since early 2025 without knowing it. Run the
s_clientline and confirm; it takes ten seconds per host. - It does mean your SSH traffic probably is. PQ key exchange has been one client config line away since 2022 and almost nobody has written the line. This is the highest-value five minutes in this entire post.
- It does mean self-hosted mail is the laggard, and no amount of configuration fixes it until OpenSSL 3.5 reaches your mail container's base image. Plan around it, don't fight it.
- The Anthropic result is a reason to prefer hybrid over pure PQ, not a reason to pause. A hybrid scheme is secure if either component holds; the one thing that would make a lattice break catastrophic is having migrated to pure ML-KEM. Nobody has, and now nobody should. The CIRG's explicit advice — "continue the transition" — is correct for exactly this reason: RSA and ECDH are breakable with far fewer quantum resources than even the new attack needs.
What changed for us, concretely: one KexAlgorithms line in the SSH client config (now an Ansible role default, applied fleet-wide), the matching server-side preference in the harden role with the sshd -t trap documented, two Synapse databases rebound to localhost, one Traefik-for-mail route on the to-do list, and a crypto inventory that did not exist yesterday. That is a sane afternoon's work for a nation-state-grade advisory, and it is the point: the NSA's "immediate" is about starting the inventory today, not about finishing the migration today. The operator who measures on day one and fixes SSH on day two is ahead of almost everyone.
Reproduce this audit
# 1. HTTPS — hybrid PQ group (needs OpenSSL 3.5+ on the client)
for h in example.com example.org; do
printf '%-20s ' "$h"
echo | openssl s_client -connect "$h:443" -groups X25519MLKEM768 2>/dev/null \
| grep -i "Negotiated TLS1.3 group"
done
# 2. SSH — what you actually negotiate today
ssh -vv user@host true 2>&1 | grep "kex: algorithm"
# 3. SSH — prove the server supports PQ
ssh -o KexAlgorithms=sntrup761x25519-sha512@openssh.com -vv user@host true 2>&1 \
| grep "kex: algorithm"
# 4. Mail — IMAPS and submission
echo | openssl s_client -connect mail.example.com:993 -groups X25519MLKEM768 2>/dev/null \
| grep -i "Negotiated TLS1.3 group"
echo | openssl s_client -connect mail.example.com:587 -starttls smtp -groups X25519MLKEM768 2>/dev/null \
| grep -i "Negotiated TLS1.3 group"
# 5. Certificate and host key types (Threat 2 inventory)
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null \
| grep -E "a:PKEY|sigalg"
ssh-keyscan -t ed25519 example.com 2>/dev/null | awk '{print $2}'
# 6. Which container owns a host-networked listener? (docker ps shows nothing for these)
# on the host, as root:
sudo ss -tlnp | grep ':PORT ' # → pid=NNNN
sudo cat /proc/NNNN/cgroup | grep -oE '[0-9a-f]{64}' | head -1 # → container ID
docker inspect <id> --format '{{index .Config.Labels "com.docker.compose.project"}} / {{.Name}}'
A group NID: 0 is the signal to look for in step 4. It means the server is classical; everything else means you are already where the NSA wants you.
Sources
- NSA, NSA Advises Immediate Transition to Post-Quantum Cryptography to Protect National Security Systems (2 Dec 2026), and advisory "Immediate Actions to Push Toward Post-Quantum"
- NSA / CISA / ONCD, joint statement on recent SI advances (2 Dec 2026)
- UK NCSC, statement on PQC transition (2 Dec 2026)
- Anthropic, public statement on X and four theoretical papers on lattice cryptography (30 Nov 2026); Cryptography Incident Review Group assessment
- BSI, Leitlinie zur Umsetzung der EU-Roadmap zu Post-Quanten-Kryptografie (12 Oct 2026)
- BSI, TR-02102-1 Kryptographische Verfahren, Version 2026-01
- NIST, FIPS 203 (ML-KEM) and FIPS 204 (ML-DSA), 2024
- IETF, RFC 10024 — TLS 1.3 hybrid key exchange
X25519MLKEM768 - OpenSSH, Post-Quantum Cryptography
- Traefik PR #11731 —
X25519MLKEM768support - Go 1.24 release notes —
crypto/tlsdefault key shares - Fortune, After Musk's RSA rumor, Anthropic says unreleased Claude found a theoretical post-quantum attack (1 Dec 2026)