Post-quantum key exchange in Tailscale v1.106

(tailscale.com)

139 points | by tatersolid 2 hours ago

7 comments

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

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

      • tptacek 1 hour 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 1 hour 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 1 hour 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 50 minutes 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 30 minutes 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 1 hour ago
              > he built it on a formally modeled foundation.

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

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

    • cyberax 51 minutes 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 2 hours ago
    This really feels like Y2K
    • jsLavaGoat 1 hour ago
      Yes! Glad I'm not the only one thinking this!
    • ihsw 1 hour ago
      [dead]
    • dist-epoch 1 hour ago
      Warmup for Y2K38
      • bdamm 11 minutes 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 1 hour ago
      [dead]
  • pseudosavant 47 minutes 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.
  • thadt 1 hour 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 44 minutes 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.
  • coldstartops 1 hour ago
    It feels to me that everyone postponed until the last moment with this transition
    • bradfitz 1 hour 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 18 minutes 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 and following earlier industry pressure from our advisors we started this more incremental strategy that 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 46 minutes ago
      Depends on what you mean by "everyone". --Sent from my X25519MLKEM768
    • bigfatkitten 48 minutes ago
      Vendors (as a whole, I’m not pointing any fingers at Tailscale) have mostly been sitting on their hands.
  • teekert 1 hour ago
    Finally! We've been waiting for like 16 hours. /s