Post-quantum, post-AI, or both
doxx.net is post-quantum
The key that was always there. WireGuard shipped a post-quantum defense in 2017. We turned it on for every tunnel without changing a byte on the wire, and our servers derive their keys in memory so nothing lives on disk to take.

Even if the math scare of the last two weeks turns out to be nothing, it did us a favor. It made us look at the one layer of doxx.net that was not negotiating post-quantum key exchange: the tunnel itself. WireGuard had the fix built in since day one. We turned it on. It also gave me a reason to write up something we did months ago: rebuilding how our servers hold their keys so there is nothing on a disk to take.
Two weeks ago my phone started up again, the same way it did in November when everything was going down and everyone wanted to know if it was an attack. This time the question was: is RSA dead? Is the lattice stuff dead too? Should I be worried about my VPN?
Here is what actually happened, in order. On November 24 Scott Aaronson left a comment on his own blog saying he had heard rumors that one or both AI labs were "sitting on Factoring in P." He struck it through later. On the 25th Google Research dropped six papers with no human authors, one of them an unconditional factoring algorithm that runs in subexponential time with a constant so large Aaronson called it "nothing of practical relevance for cryptography." On the 27th he said a theoretical cryptanalysis result was coming and it would not endanger anything deployed. On the 30th Anthropic published quasi-polynomial quantum algorithms for module lattices, the structure under ML-KEM and ML-DSA, and a new group called the Cryptography Incident Review Group put out its first assessment. On December 1 Cloudflare said post-quantum cryptography is still safe and the UK's NCSC said its advice had not changed. On December 2 the NSA told national security system owners to accelerate immediately, ONCD, NSA and CISA said the advances "do not present an immediate and widespread threat," and Amazon, Anthropic, Apple, Cloudflare, Google, Microsoft, OpenAI and Oracle signed two sentences endorsing the NIST standards. By the 3rd Cloudflare had pulled its own fully-post-quantum date in from 2029 to 2027.
None of these results break anything you use today. Anthropic's own word for the algorithms is "galactic": the exponents are real but the constants are absurd, and the paper says so. But the pattern is the one I wrote about in The Great Hardening. New models are finding old bugs faster than we can patch them. Now they are finding math. Whether you call the era post-quantum or post-AI, the lesson is the same: assume the thing that is secure today will have a shorter shelf life than the thing before it, and build so that one break does not take everything with it.
So I did what I did in November. I stopped speculating and went and looked at our own stack.
Every layer except one
doxx.net already negotiates post-quantum key exchange almost everywhere. Our web front doors, config.doxx.net, the secure websocket transport, the DNS resolvers, brain and infra all complete TLS 1.3 with X25519MLKEM768, and all of them also accept SecP384r1MLKEM1024, the CNSA 2.0 level hybrid that almost nobody else serves yet. I know that because we measure it; that is its own post. The app's connection to our control plane has been ML-KEM protected for a while.
The tunnel itself was not. WireGuard derives each session key from a chain of Curve25519 Diffie-Hellman operations performed in the handshake packets, every connect and every rekey, about every two minutes. The static keys were delivered over ML-KEM TLS, but that protects the delivery of the keys, not the per-session math. A recorder sitting on the path today, holding a large quantum computer tomorrow, breaks each captured handshake and recovers each session key. That is "harvest now, decrypt later," and it is the one exposure stock WireGuard has.
WireGuard already had the answer
Jason Donenfeld put it in the protocol from the start. Every WireGuard peer can carry an optional 32-byte PresharedKey. Section 5.2 of the whitepaper, "Optional Pre-shared Symmetric Key Mode," describes exactly this attack model: "adversaries may be recording encrypted traffic on a long term basis, in hopes of someday being able to break Curve25519 and decrypt past traffic." The protocol page and the wg man page both call the purpose "post-quantum resistance." The full construction name is Noise_IKpsk2: the PSK is mixed into the chaining key in the response message, after the Diffie-Hellman steps, and the session key stays secret as long as EITHER the DH chain OR the PSK is secret. If you do not configure one, the protocol mixes 32 zero bytes. Same format, same sizes either way: a 148-byte initiation and a 92-byte response.
Every implementation supports it. The Linux kernel module (the function is literally mix_psk), wireguard-go, WireGuardKit on Apple, the Android and Windows clients, and wg set peer ... preshared-key on any box you can shell into. It is not an extension. It is the protocol.
If you can actually pre-share a key over a secure offline means, the security of the WireGuard protocol comes down to breaking that 256-bit ChaCha20 key, which isn't going to happen, rather than any asymmetric primitive.
Jason A. Donenfeld
WireGuard mailing list, December 2, 2026
Donenfeld said it again himself on the WireGuard list on December 2, in the middle of all this. He also said he has started looking at a WireGuard v2. Good. Until then, the slot is there.
So why does almost nobody use it? Because the hard part is not the crypto, it is the key management. The PSK has to be known to both ends, it has to get there over a channel that is itself post-quantum, it has to change when the keypair changes, and the two ends have to agree on it every single time or the handshake fails silently. Most providers either skipped it or bolted a second protocol onto the side of the tunnel to negotiate one.
How we did it
We already had the channel. Every doxx.net tunnel is provisioned by config.doxx.net, over TLS that negotiates X25519MLKEM768. Now that channel carries the PSK too.
When a device asks for a tunnel with post-quantum on, the control plane mints 32 bytes from a hardware random source and stores them encrypted, tied to that tunnel. The public key exchange that sets up the tunnel now includes the PSK. The location's WireGuard cluster reads the same record from config.doxx.net and sets the PSK on the peer. Both ends read one source of truth, so they always agree.
The PSK is bound to the keypair generation. It does not change on every connect; it is stable for the life of that config and re-minted only when the config is regenerated and the keypair rolls. That one rule removed a whole family of reconnect races. A new public key means a new peer on the server, which fetches the new PSK on the reconnect that regeneration already forces. No live peer is ever mutated under traffic.
Full Linux and backwards compatibility
This is the part I care most about. There is no protocol change and no flag day. A client that never asks for post-quantum keeps an empty record and an unchanged handshake. A client that does gets a PSK that only ever travelled inside ML-KEM TLS. Export a wg-quick config from the app and it carries a PresharedKey line, so a stock Linux box running the kernel module, or any WireGuard client on any platform, gets the same post-quantum protection the app does, against the same server, with the same server identity. Rollback at any layer is "stop asking and regenerate."
The PSK never appears in a log, on the device or on the server.
Why we did not do what Tailscale did
Tailscale shipped post-quantum WireGuard this week too, in v1.106.3 on December 2, and they went a different way: ML-KEM-768 inside the Noise handshake itself, a construction called IKhfs, in their wireguard-go fork. Credit where due. It was reviewed by Deirdre Connolly, it is on by default between two nodes on 1.106 or later, and it buys something a stable PSK does not: per-handshake post-quantum forward secrecy. Every two minutes, a fresh lattice exchange.
But it is a protocol change. Both peers have to run the fork. The initiation goes from 148 bytes to 1,348 and the response from 92 to 1,196, so a handshake that used to fit in one small UDP datagram now runs near the MTU, and anything that wraps WireGuard in another transport has to cope. Kernel WireGuard cannot parse it. A wg-quick file cannot carry it. If either side is older, the connection falls back to classic. Their own docs, until this week, said the plan was "automatic PSK provisioning and distribution to devices." They built the harder thing instead, and I understand why: they do not control a config server that already speaks ML-KEM to every device. We do.
Mullvad and NordVPN took a third path a few years ago: establish a classic tunnel first, run a post-quantum key exchange through it with a second protocol, derive a PSK, then tear the tunnel down and bring it back up with the PSK set. Mullvad has had it on by default on every platform since late 2025 and uses ML-KEM plus HQC today; NordVPN's is still a toggle, with default-on announced this week. It works, and it lands on the same PSK slot we use. It also means a second protocol, a second round trip, a second code path on every platform, and a first connection that is classical. IVPN is the closest to us: since 2023 it has handed out a PSK over HTTPS when the WireGuard keypair regenerates. Proton VPN has not shipped anything yet; its roadmap says "groundwork."
The PSK is part of the original protocol, every implementation supports it, and the channel to deliver it was already post-quantum. Turning it on is strictly additive and strictly compatible.
Barrett Lyon
Founder, doxx.net
Our view: the PSK is part of the original protocol, it is supported by every implementation that exists, and the channel to deliver it was already post-quantum. Turning it on is strictly additive and strictly compatible. It is also the fallback that IKhfs keeps anyway (Tailscale's construction is IKhfs+psk2; the slot is still there), so it is the right first step rather than an alternative to the second. We will do a lattice exchange inside the handshake between our own endpoints later; the PSK stays as the floor for everything that is not our app, which includes every Linux box running kernel WireGuard.
| Stock WireGuard | Tailscale (IKhfs) | Mullvad, NordVPN | IVPN | doxx.net | |
|---|---|---|---|---|---|
| PQ secret comes from | none | ML-KEM-768 in the handshake | PQ exchange inside a classic tunnel, then PSK | Kyber over HTTPS at key regeneration, then PSK | random 32 bytes from the control plane, over ML-KEM TLS, into the PSK |
| Change on the wire | none | initiation 148 to 1,348 bytes, response 92 to 1,196 | none (after re-establish) | none | none |
| Kernel WireGuard, wg-quick export | yes | no | yes, with a helper tool | yes | yes, PresharedKey in the export |
| Second protocol needed | no | no | yes | yes (Kyber KEM over HTTPS) | no |
| First connection | classical | PQ if both ends are 1.106+ | classical, then re-established | PQ | PQ |
| Default on | n/a | yes | Mullvad yes, NordVPN announced | yes | yes |
| Per-handshake PQ forward secrecy | no | yes | no (PSK per session) | no (PSK per 1 to 30 days) | no (PSK per keypair generation) |
| Both ends must run the vendor fork | n/a | yes | no | no | no |
The key nobody talks about
All of the above protects the session. There is a bigger key in this story, and the industry is quiet about it: the server's own static key.
Go look at a commercial VPN's server list. Mullvad, Proton and NordVPN each publish one static WireGuard public key per server in their relay lists, and those keys do not change often; I could not find a published rotation schedule from any of them. The private half lives on that server. Usually it is a file on disk. Even Mullvad, which boots its servers from RAM, says it persists the WireGuard private keys across controlled reboots. It does not matter how good your handshake is if someone images the disk, or reads the process memory, or walks out of a data center with the box. They now hold that server's identity until the provider notices and rotates it by hand, and every client config in the world pointing at it is a config they can impersonate.
This is not hypothetical. When two Windscribe servers were seized in Ukraine in 2021, the OpenVPN server certificate and its private key were sitting on the disk, unencrypted, and Windscribe said so: forward secrecy protected past traffic, but impersonating those servers was possible until the key was replaced. WireGuard's own known-limitations page says what a stolen responder key buys: an attacker with it and a traffic log can "figure out who has sent handshakes," and the listed mitigation is "rotating or regenerating keys." The industry's answer to that has mostly been a shrug.
wg-key: keys that are born in memory
Today no doxx.net server has a WireGuard private key on disk. Not encrypted, not in a file, not anywhere. Every location runs a tiny daemon we call wg-key, a few hundred lines of Go, and this is what it does at boot.
It holds one half of a 32-byte salt, compiled into its binary. It fetches the other half from config.doxx.net over a pinned certificate using a credential we can revoke per node. That second half exists at config.doxx.net only as ciphertext, under a key that lives only inside the config binary. The two halves meet, for the first time anywhere, in wg-key's RAM. It runs them through HKDF with the location, the cluster and an index, clamps the result to a Curve25519 scalar, and out come 96 private keys for that location. It hands them to the WireGuard cluster over a local socket, zeroes its copies, and keeps only the shielded network half so the next software restart needs no network at all.
Read the failure modes off that picture. Seize the disk: you get half A and a binary, which derives nothing. Take the stored copy of half B: you get ciphertext. Take the config binary: you get a key with nothing to decrypt. Pull the power: RAM is gone, and a box that boots up somewhere it should not asks for half B and is refused, because we revoke by identity the moment a node goes dark unexpectedly. A legitimate fetch only happens right after a reboot we know about, so a fetch at any other time is an alarm, not a request.
There is no complete salt anywhere in the world. Not on the workstation that generated the halves, which holds one half and the wrapping key but never the ciphertext. Not in a backup. Not in escrow. The only place the full derivation input has ever existed is inside a process on an edge node, for the microseconds it takes to derive, under mlock, with core dumps off, swap off, and the material shielded behind a per-boot random prekey so a partial memory read gets nothing useful.
I will be honest about the limit, because the limit matters. None of this protects keys on a running node from an attacker who has root on it right now. They are that location until we notice. Plaintext has to exist in RAM to terminate a tunnel; that is physics. What wg-key does is make exfiltration expensive and loud instead of free and silent, and make everything they could take worthless the moment we rotate one row.
Thousands of identities instead of one
The derivation is deterministic, so a location gets the same 96 keys every boot and client bindings survive restarts invisibly. It is also cheap, so we did not stop at one key per location. The WireGuard cluster at each location holds all 96 identities at once. It can do that because WireGuard's first message authenticates against a hash of the responder's public key, so the server can check which of its identities a client is talking to with one cheap MAC per candidate, before any DH runs. Stock clients interoperate; they have no idea the server has 95 other names.
Each tunnel is bound to a random identity from its location's pool. Across the network that is more than 2,500 live server identities right now, where a typical provider has one per server. A leaked config points at one of 96 keys, not at the location. A location can be fully re-keyed by replacing its network half at config.doxx.net and restarting the daemon; every derived key changes and clients are re-issued configs. No rebuild, no files to distribute, no key ceremony.
The cluster underneath
A location is not one box. It is a cluster of dx-server nodes behind one shared address, and the pool of identities is shared across all of them, which is what makes them interchangeable to a client. The nodes find each other with zero configuration: each one sends a heartbeat every second over IPv6 link-local multicast on the site's infrastructure link, and anything that is not a sibling at the same site cannot hear it because link-local never crosses a router.
That same multicast bus carries state. When a node completes a handshake it broadcasts the peer's configuration, its endpoint, which identity it bound to, and the live session keys. The first node to finish the handshake owns the peer. If the client's next packet lands on a sibling instead, the sibling does not take the peer over; it forwards the raw encrypted datagram to the owner over the jumbo-frame infra link, and the owner answers the client directly from the shared address. Ownership only moves when an owner is actually dead.
That is what lets us upgrade and restart nodes under live traffic. A graceful restart is announced on the bus, so siblings hold for it instead of stealing its peers, and the node comes back a few seconds later with its sessions restored and keeps the same identities, because they derive to the same keys every boot. A crash is declared within five missed heartbeats and a sibling takes over using the session keys it already holds, so the client does not even re-handshake. During the fleet-wide rekey earlier this year I watched my own tunnel through both node restarts at Miami: zero dropped packets, same exit address throughout. Rolling upgrades of the whole fleet happen without anyone noticing, and that is how the PSK change reached every cluster.
Post-quantum or post-AI
I do not know whether the lattice papers lead anywhere. The people whose job it is to know say not yet, and I believe them, the same way I believed the companies that said November was not an attack. But I wrote in The Great Hardening that AI is compressing the time between "this has been fine for a decade" and "patch it tonight," and that was about code. This month it reached math. The right response is the same: do not wait for the break, build so one break does not matter, and measure instead of guessing. The measuring part is crypto.doxx.netOpens in a new tab, and I wrote that up separately.
So here is where doxx.net stands this week. Every tunnel carries a post-quantum preshared key that was delivered over a post-quantum channel, on every platform including stock Linux, with zero change to the protocol on the wire. Every location derives its server identities in memory from two halves that never exist together anywhere else, and serves a pool of them instead of one.
Kick the tires, put some traffic on it, export a config to a Linux box and look at the PresharedKey line. Then tell me what you see.
