Hacker News

Post-quantum key exchange in Tailscale v1.106

174 points by tatersolid ago | 29 comments

tptacek |next [-]

Interesting, I was wondering how people would handle this in protocols like WireGuard. So you're not getting quantum resistance across all the security properties provided by WireGuard's Noise handshake, but you are getting a quantum-resistant ephemeral key exchange; that exchange is theoretically MITM-vulnerable, but MITM is outside the scope of HNDL attacks.

dave_universetf |root |parent |next [-]

(tailscale employee here) Yes, this addresses strictly HNDL attacks, and brings the p2p tunnels roughly on par with the security level of TLS 1.3 with hybrid ML-KEM kex and classical certs/signatures (i.e. the best widely rolled out thing webpki has right now).

The plan was to do more technical writeups of what we did in the days following release. It ended up being trickier than just "bolt ML-KEM into the Noise handshake" due to increased packet sizes, so there's some complexity there for anyone wanting to follow in this path. But for obvious reasons those writeups are a "later" thing now.

xinayder |root |parent |next |previous [-]

AFAIK WireGuard is working on a v2 that adds PQC to the protocol.

https://lists.zx2c4.com/pipermail/wireguard/2026-December/00...

tptacek |root |parent [-]

Yes, this was always the plan. The tricky thing is that the shape of key establishment with mainstream quantum-resistant algorithms is different from the one Noise wants.

This is why supersingular isogenies were briefly so interesting: they promised constructions you could just drop in to things like Noise.

dist-epoch |root |parent [-]

But if you already change the code to add a new algorithm, is it really that hard to also change the shape of the key exch? Code needs to be upgraded either way on both sides.

tptacek |root |parent [-]

No, the deployment story is the same, but the design process is more complicated, because you have to make departures from Noise. Remember, Jason didn't freelance the WireGuard key exchange; he built it on a formally modeled foundation.

amluto |root |parent |next [-]

There’s a paper called PQNoise that is more or less a KEM-based Noise adaptation, and if I put all the pieces together right, Wireguard’s use of Noise could switch to PQNoise without adding rounds.

https://eprint.iacr.org/2022/539

dave_universetf |root |parent [-]

Unfortunately pqnoise makes each handshake message exceed typical internet MTUs by a big margin. So it's not a drop-in replacement in UDP-based contexts.

dist-epoch |root |parent |previous [-]

> he built it on a formally modeled foundation.

Interesting, sounds like something today's agents can help a lot with.

0c3ca83 |root |parent [-]

Only if you don't care about understanding it. Understanding things someone else wrote is slower than writing it yourself.

And nobody wants to yolo crypto, or put their names on things they don't understand.

athrowaway3z |root |parent [-]

Crypto can and will be created & formalized by LLMs - with some experts prompting during design and testing - and they will be more secure for it.

If you're clinging into the belief that understanding is a requirement you must have been living under a rock the past month. Especially in a field like crypto where the securing and breaking are the end goals unlike with proving the RH or the thousand of other math proofs for open questions.

0c3ca83 |root |parent [-]

This must be a troll. The human is still legally on the hook. Until Anthropic is legally on the hook, nothing changes.

cyberax |root |parent |previous [-]

WireGuard also supports symmetric pre-shared keys, and PQC can be plugged in there to mix in the negotiated secret into that key. This will also protect against active MITM.

pants2 |next |previous [-]

This really feels like Y2K

jsLavaGoat |root |parent |next [-]

Yes! Glad I'm not the only one thinking this!

edbaskerville |root |parent [-]

but much more sudden. Hopefully it ends up having a similar outcome, where things are OK because people fix the important things.

ihsw |root |parent |next |previous [-]

[dead]

dist-epoch |root |parent |next |previous [-]

Warmup for Y2K38

bdamm |root |parent [-]

I used to think that Y2K38 was going to power my retirement but now I think prompt engineering our way through 2038 fixes will take most of the chrome out of that plan.

dyla-ng |root |parent |previous [-]

[dead]

pseudosavant |next |previous [-]

How great is Tailscale? I still use vanilla Wireguard here and there, but I usually use Tailscale because it just makes things easy. One of the very underrated tools out there.

bazmattaz |root |parent [-]

Im not very technical and I absolutely love it. I have multiple devices connecting back to my home network and my homelab on the network but each devices has different levels of access to avoid users getting access to my entire network. It’s so powerful. I love it

thadt |next |previous [-]

Nice, guess it's time to upgrade.

But it sounds like we're still in for a period of change for a while as everyone works out authentication without curves, right? IIUC even Signal's PQXDH is relying on X25519 for auth.

lxgr |root |parent [-]

Signatures are a bit less critical since there's no "harvest now, decrypt later" for signing/authentication, i.e., you can consider contacts established before the cryptocalypse (or switching to a safe algorithm) safe, while you have to consider all communication protected by an unsafe algorithm at any time compromised.

coldstartops |next |previous [-]

It feels to me that everyone postponed until the last moment with this transition

cogman10 |root |parent |next [-]

IMO, it's because PQC requires slower more complex algorithms that will end up bloating network traffic. But also, there doesn't appear to be (AFAIK) a defacto PQC algorithm to go for.

I don't think it's unreasonable to put it off, particularly because up until now breaking the non-quantum resilient algorithms seemed more like fantasy. It's not like QC is even really viable, even for state level actors. Instead what people are really worried about is that there are cryptographic flaws, potentially known by the likes of the NSA, which are about to get exposed by LLMs. Not something I think anyone expected even a year ago.

bradfitz |root |parent |next |previous [-]

(Tailscale employee here)

FWIW, this work was well underway for quite some time. Our v1.106 release machinery was already rolling a week or two before the latest news; the timing here was just a coincidence. Probably a fortunate coincidence.

raggi |root |parent [-]

Another Tailscale employee here.

Yeah, I think this doesn't take away from current or future blogs, but a minor bit of inside info here, we earlier on had some discussions about doing bigger more all-encompassing moves alongside / as part of PQC transitions. Following earlier industry pressure from our advisors we started this more incremental strategy. This is the first piece of so that we could ensure prompt delivery of the most important pieces, HNDL resistance being the first one.

lxgr |root |parent |next |previous [-]

Depends on what you mean by "everyone". --Sent from my X25519MLKEM768

bigfatkitten |root |parent |previous [-]

Vendors (as a whole, I’m not pointing any fingers at Tailscale) have mostly been sitting on their hands.

mangod12 |next |previous [-]

[dead]

teekert |next |previous [-]

Finally! We've been waiting for like 16 hours. /s

|previous [-]