NHacker Next on Rails
  • top
  • new
  • best
  • ask
  • show
  • jobs
login
GuidelinesFAQListsAPISecurityLegalApply to YCContact

Hacker News on Rails, powered by React on Rails Pro. Open the source on GitHub by ShakaCode.

Commit 06fc0df

Rendered at 09:05:51 GMT+0000 (Coordinated Universal Time) with Rails + React on Rails RSC.

Post-quantum key exchange in Tailscale v1.106 (tailscale.com)

507 points by tatersolid 1d ago | 99 comments

tptacek 1d ago
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 1d ago
(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 1d ago
AFAIK WireGuard is working on a v2 that adds PQC to the protocol.

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

tptacek 1d ago
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 1d ago
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 1d ago
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 1d ago
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

dist-epoch 1d ago
> he built it on a formally modeled foundation.

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

cyberax 1d ago
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.
cube00 1d ago
Surprised a company trading on privacy would automatically opt you in to analytics and advertising, include no buttons on the banner and require you to scroll to the end of the page and click a link just to opt out.

> Your Privacy Choices: We and our third-party partners use cookies and similar technologies to enhance site functionality, analyze performance, and support advertising and analytics, and for the purposes described in our Privacy Policy. You can opt out at any time through the Your Privacy Choices link at the bottom of any page.

I checked the choices link and I'm indeed automatically opted-in for Analytics and Targeted Advertising.

larnon 21h ago
> ...You can opt out at any time through the Your Privacy Choices link at the bottom of any page.

Is it just me or did they just disable this "Your Privacy Choices" link? The button is actually dead and doesn't lead to anywhere. Coincidence?

cube00 21h ago
It's a full screen popover from Ketch so you might have a plugin blocking it.
jiveturkey 1d ago
how is tailscale trading on privacy? i never got any such implication? it's not signal.
cube00 23h ago
Privacy is a fundamental human right, and we designed Tailscale accordingly. [1]

[1]: https://tailscale.com/security#:~:text=Privacy%20is%20a%20fu...

pants2 1d ago
This really feels like Y2K
jsLavaGoat 1d ago
Yes! Glad I'm not the only one thinking this!
edbaskerville 1d ago
but much more sudden. Hopefully it ends up having a similar outcome, where things are OK because people fix the important things.
FabHK 1d ago
Indeed. If something ever happened on a predictable timeline, it was Y2K.
dist-epoch 1d ago
Warmup for Y2K38
nektro 1d ago
Y2K38 has been solved for a long time for the things that can upgrade
bdamm 1d ago
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.
jiggawatts 1d ago
Except that in Y2K everyone knew exactly what the issue was and whether they were affected or not. You could simply look at a date field. If it was two digits, you were affected. Four digits? Unaffected. Easy!

In this case vendors are ringing the alarm bells.

What's the alarm about?

"We can't tell you."

Can we simply use longer RSA keys?

"Maybe."

stefan_ 1d ago
In the sense that nothing actually happens?
throooooo 1d ago
Nothing actually happened because of all the work that went into fixing up systems ahead of midnight year 2000. I'm guessing you weren't around for that.
throw0101d 1d ago
* https://en.wikipedia.org/wiki/Preparedness_paradox
jkahrs595 1d ago
thanks that article has a great paragraph about y2k

> Historical perspective can also contribute to the preparedness paradox. From the point of view of historians after the Year 2000 problem, the preventative action taken has been described as an "overreaction", instead of a successful effort to prepare for an upcoming problem.

devilbunny 19h ago
And that is why science people think liberal arts majors are idiots.

They’re not; my wife was an English major and is frightfully intelligent. But most don’t understand technology at all. I don’t consider myself smart about computing, but I do know enough to realize that Y2K was a huge effort that paid off by being a nothingburger when it occurred. Just remind people occasionally. I had to do some network maintenance at the house once. She complained about it being down for a few hours. I said, do you hear your coworkers complain about how their home Internet sucks? Yes, of course. Does ours ever suck? Actually, no. That’s because I do things like this. With warning. Oh, okay.

That was the last time she complained about my home IT work.

pseudosavant 1d ago
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.
joshstrange 1d ago
I avoided it for years, thinking I didn’t need it, I had my reverse proxy for self-hosted stuff behind SSO, SSH port forwards so I could connect to any “site” I had servers at. What did I need another network for?

Turns out, having every device on Tailscale is massively useful. No matter where I am, my laptop and phone IP’s are the same, they don’t change. Tailscale gives every device an IPv4 and IPv6 address that never changes. I have my homelab split between 2 locations currently and I’ve reverse-proxy-ing over Tailscale for some servers in the other location. It works just as if the server was local, and once I relocate all the servers to 1 place, nothing has to change, the IP it was proxying doesn’t change.

I hear you! “But Josh! Every device in my house has a static/assigned IP, they don’t change!” Yes, but now take your phone and laptop to a friend/family member’s house. Now have devices on 2 networks. You don’t think it matters, till you try it.

It’s on my servers, laptops, phone, tablets, 3D printer, Kindle (jailbroken), Steam Deck, Synology, KVMs, Unifi UDM, and more I’m probably forgetting. Everything can talk to everything (or setup rules only let some things talk to other things). It’s really nice when you can pretend your entire constellation of devices and servers is flat/local.

There is a LOT of power in having every device have the same IP and be reachable by it no matter what network it’s connected to.

heeen2 22h ago
for me the ips are more of a necessity, but their magic dns and their automatic local direct connection is the selling point. with a lighthouse server you still limited by your uplink/downlink but after detecting you are on the same lan and using a direct local tunnel at LAN speed and latency is a big win. last time I checked this was finnicky to get working with stock wireguard
dannyw 1d ago
I’ve been using Tailscale for years on the free personal plan.

The product has never been enshittified, and it makes my home network very convenient across locations and devices.

I couldn’t be more happy with the product; zero gripes. Actually I wish there was a Personal+ plan with some perks; just so I can pay them and get something valuable in exchange; but it’s a very generous service that just works.

iririririr 23h ago
meh. if you have roaming needs, hire a cheap server to centralize the traffic.

nothing justify having a 3rd party daemon with power to authenticate and compromise your devices remotely. all it takes is some employee with a grunge on their side.

joshstrange 20h ago
Then use Headscale.
9dev 10h ago
That’s what Tailnet Lock exists to prevent: https://tailscale.com/docs/features/tailnet-lock
rainsford 1d ago
Maybe the biggest missing feature for me to completely replace my vanilla Wireguard setup is conditional exit node configuration especially on iOS.

Both Wireguard and Tailscale can connect or not based on whether they're connected to wifi or cellular and what wifi network they're connected to. With traditional Wireguard, this means you can setup your iphone to work normally without Wireguard on your home wifi and then connect back home with Wireguard when you're anywhere else, routing home and Internet traffic through the Wireguard tunnel.

With Tailscale though, this doesn't quite work. You could have Tailscale setup the same as vanilla Wireguard, only connecting when you aren't on your home wifi. But Tailscale has enough other benefits and features even at home (e.g. Taildrop) that it makes sense to be connected even on your home wifi. What you don't need to do is route your iphone's internet traffic through an exit node on your home network when you're sitting at home.

There is unfortunately no way to set this conditional exit node usage scenario up in Tailscale today. Other than that, I could turn off my vanilla Wireguard setup tomorrow.

devilbunny 1d ago
You can set up iOS Shortcuts that will activate exit node when you disconnect home wifi and deactivate it when you join home wifi. Does that not meet your needs?
Juvination 1d ago
One of the biggest selling points of Tailscale is it just works. I downloaded it on my server and home PC, then got the app on my phone. I've signed into it and I can connect to my home server when not at home. It's about as complicated as downloading any program or app.
ZeWaka 1d ago
It Just Works

I spent way too much time faffing around with a reverse wireguard proxy not working to expose my home server just to have Tailscale fit my needs perfectly.

e12e 1d ago
I've been quite happy with it, but thought it was slow - when tunneling through a small vm as exit node.

But then I got fiber installed finally and did some tests, and realized I'd locked down both sides (vm in cloud, my laptop trapped behind double Nat) - that I was using derp (try tailscale ping). A single udp opening in fw - and overhead became insignificant.

devilbunny 1d ago
> very underrated

I'm not that "underrated" is the word I would use. Maybe "underknown".

I don't work in tech. I can say that most people I know don't have any idea what Tailscale is, but also that nearly every one of them who would ever want secure access into their LAN immediately jumps on the bandwagon when I tell them about it.

plorntus 1d ago
I like it too, especially now that AI exists. Just been setting up a bunch of household apps and shared my main pc with my partner so we have the ability to connect to a server (without exposing the vibe coded mess to the internet).

On an unrelated side note, I feel like this is the most hacker news reply I have ever written. So far.

bazmattaz 1d ago
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
joelhaasnoot 20h ago
Any idea when this lands in the App Store version? Would love to tell my team to upgrade, but when I dont have it myself yet...
beniihana 17h ago
Just checked and it was updated yesterday.

From the release notes:

> Version 1.106.3 New: WireGuard handshakes between supported peers include ML-KEM-768 (Noise IKhfs)

EDIT: Whether yours updated or not is on you (or your auto update settings). I found that mine had not yet updated even though I have auto updates enabled... not sure why.

namtim 20h ago
Ask Apple, they have to approve it. Don't use the app store if you want timely updates.
joelhaasnoot 19h ago
I'm not a party in the Apple approval process, that's a Tailscale problem. I can't contact Apple and ask where it is.

You do wonder why Tailscale even offer the App Store version

kmfrk 17h ago
Make sure to run "tailscale update" to double check whether Tailscale has been updated. My Windows installation was still on v1.104. At least the new version has an explicit auto update setting.
thadt 1d ago
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 1d ago
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.
pishpash 1d ago
How can you consider them safe if someone can sign as someone else? Unless you mean for now, as far as we know.
kccqzy 1d ago
If you have a trustworthy timestamp of that signature happening (i.e. a timestamp created by you) and that timestamp predates say mid 2026.
pishpash 1d ago
There is no trustworthy timestamp if anyone can sign a faked timestamp with your key. The only way would be to log the signing event to a trusted third-party service. However, no one routinely timestamps their signatures today with a third-party service, so there is effectively no timestamped signature predating mid-2026.
lxgr 1d ago
> There is no trustworthy timestamp if anyone can sign a faked timestamp with your key.

Sure there is, e.g. if I trust local (unsigned) file metadata.

> no one routinely timestamps their signatures today with a third-party service

This is actually quite common in code signing. Blockchains can also be used as secure timestamping services.

petesergeant 1d ago
“For now” is good enough for most signing applications. Hell, “only the NSA, CSF, and European security seniors can do this” is good enough for most people’s needs, although I imagine by then we’ll have switched anyway.
gz5 1d ago
for those not in enterprise and similar situations, the importance is beyond ts itself. use ts to tunnel a non-pqc ready app across non-pqc ready infra...and get protection against 'harvest now, decrypt later' while in the tunnel.

still need to take care of the segments outside of the tunnel and data at rest, but above is important mitigation.

(or use OpenZiti or NetBird if you need fully self-hostable or full open source)

DarkmSparks 1d ago
Far more likely and far more damaging imho is viable AES and other symmetric key recovery than breaking key exchange.

There's been rumours of backdoor AES for years, in fact iirc one was already found in the rng.

petesergeant 1d ago
Far more damaging, sure, far more likely feels like a big stretch?
DarkmSparks 23h ago
anthropic recently published progress on AES128.

https://www.anthropic.com/research/discovering-cryptographic...

whereas solving prime factorisation hasn't progressed much past GNFS for decades.

petesergeant 22h ago
Didn't Anthropic downplay it at the time in terms of production systems? It's 7 of 10 rounds, and impractical even then, so a long way to "AES is likely broken".

GNFS not improving doesn't seem relevant? The threat seems to be use of Shor's algorithm?

DarkmSparks 21h ago
they down played it a few weeks ago now they are not

I'm saying its much more likely they continued to make progress on AES than invented an entirely new branch of math to solve PF.

they haven't been specific at all about what the threat is. Just that one insider who said there is worse than solving PF.

0gs 1d ago
this is great and so fast. tailscale rules!
teekert 1d ago
Finally! We've been waiting for like 16 hours. /s
coldstartops 1d ago
It feels to me that everyone postponed until the last moment with this transition
bradfitz 1d ago
(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 1d ago
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.

zamadatix 1d ago
Well, nobody really knew when the last moment was going to be until (seemingly) relatively recently once things started coming out as future proof requirements in the coming years and, extrtremely recently, nebulous messages to get there ASAP. There was certainly opportunity to do it earlier though.
cogman10 1d ago
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.

coldstartops 10h ago
for clarity, it has been 4 years since the PQC winners have been announced by NIST, and 2 years since they have been standardized. and the last half year has been very fun
lxgr 1d ago
Depends on what you mean by "everyone". --Sent from my X25519MLKEM768
bigfatkitten 1d ago
Vendors (as a whole, I’m not pointing any fingers at Tailscale) have mostly been sitting on their hands.
kccqzy 1d ago
I’m pretty sure Google had transitioned to post-quantum for their internal network traffic by 2022 or so.