Post-quantum key exchange in Tailscale v1.106

(tailscale.com)

243 points | by tatersolid 4 hours ago

10 comments

  • tptacek 4 hours 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 3 hours 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 4 hours ago
      AFAIK WireGuard is working on a v2 that adds PQC to the protocol.

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

      • tptacek 4 hours 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 3 hours 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 3 hours 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 3 hours 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

              • dave_universetf 3 hours ago
                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 3 hours ago
              > he built it on a formally modeled foundation.

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

              • 0c3ca83 3 hours ago
                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 2 hours ago
                  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 2 hours ago
                    This must be a troll. The human is still legally on the hook. Until Anthropic is legally on the hook, nothing changes.
                    • tptacek 1 hour ago
                      There's no coherent resolution for this cursed subthread. Humans will still legally be on the hook. Jason is almost certainly not going to vibecode a new WireGuard version (I talk to him a bit and don't get a very agent-pilled read from him; if he was going to do that, v2 would already exist). But cryptography absolutely is going to be generated, implemented, and formally verified by AI models in the coming year. For fixed, easily-verifiable tasks like this, models already outperform humans --- not at designing new algorithms (who knows when that will happen, I sure don't) but at implementing, optimizing, and verifying pre-specified cryptography.
                    • athrowaway3z 1 hour ago
                      > The human is still legally on the hook.

                      What? Who? Where? How?

                      This must be a widespread practice for you to bring this up.

                      Best i've ever gotten is certificates of tests and reviews, and the disclaimer that they're specifically not on the hook.

                      Please tell me more about my options of the humans / companies that are willing to be legally on the hook.

    • cyberax 3 hours 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.
  • pants2 4 hours ago
    This really feels like Y2K
    • jsLavaGoat 3 hours ago
      Yes! Glad I'm not the only one thinking this!
      • edbaskerville 2 hours ago
        but much more sudden. Hopefully it ends up having a similar outcome, where things are OK because people fix the important things.
    • ihsw 3 hours ago
      [dead]
    • stefan_ 16 minutes ago
      In the sense that nothing actually happens?
    • dist-epoch 3 hours ago
      Warmup for Y2K38
      • bdamm 2 hours 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.
    • dyla-ng 3 hours ago
      [dead]
  • pseudosavant 3 hours 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.
    • Juvination 1 hour 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.
    • devilbunny 51 minutes 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 53 minutes 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.

    • ZeWaka 35 minutes 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.

    • bazmattaz 2 hours 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
  • thadt 4 hours 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 3 hours 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 29 minutes ago
        How can you consider them safe if someone can sign as someone else? Unless you mean for now, as far as we know.
  • coldstartops 3 hours ago
    It feels to me that everyone postponed until the last moment with this transition
    • bradfitz 3 hours 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 2 hours 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.

    • cogman10 1 hour 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.

    • lxgr 3 hours ago
      Depends on what you mean by "everyone". --Sent from my X25519MLKEM768
    • bigfatkitten 3 hours ago
      Vendors (as a whole, I’m not pointing any fingers at Tailscale) have mostly been sitting on their hands.
  • 0gs 1 hour ago
    this is great and so fast. tailscale rules!
  • kevinbaiv 17 minutes ago
    [dead]
  • mangod12 2 hours ago
    [dead]
  • teekert 3 hours ago
    Finally! We've been waiting for like 16 hours. /s