Remix.run Logo
▲ amluto 10 hours ago

The new protocol in Tailscsle is this, right?

https://github.com/noiseprotocol/noise_hfs_spec/blob/master/...

This does not obviously protect against an attacker who can break ECC before or during the exchange. I guess the blog post is kind of acknowledging that?

▲dave_universetf 9 hours ago | parent [-]

Correct. I don't think we've tried to hide the fact. The protocol we rolled out provides hybrid forward secrecy, meaning that if an attacker records traffic today and tries to break it tomorrow, they will need to break both X25519 and ML-KEM-768 to do so.

FWIW, this is the same level of security that you get from current web TLS: with properly upgraded clients and servers, your key agreement (which protects confidentiality of the session from future attackers) is a hybrid of X25519 and ML-KEM-768 (or less commonly, pure ML-KEM-768, but more web stacks deployed hybrid key agreement). But the authentication part of current web TLS still relies entirely on classical cryptography, either RSA or various elliptic curves.

Both we (tailscale) and the web PKI are actively working on also upgrading the authentication portion of our protocols, but upgrading authentication comes with a bunch of additional headaches (among others, distributing new keys securely, and dealing with the fact that post-quantum signatures are much larger than classical signatures).

But, authentication is also less urgent in a way: to break authentication, the attack you want to use has to exist and be available today, in order to break future communications. On the other hand, breaking the confidentiality of past sessions only requires that you record those sessions when they happen, and gain access to an attack at some point "soon" (where "soon" depends on the value of the data you want to access - some data is useless after an hour, other data has value a century after transmission).

This is why protocols (including TLS and tailscale) have upgraded the properties of key agreement first: it's both easier to deploy than fixing authentication, and it provides a security upgrade against a realistic attack that is feasible to start today (start recording traffic, and hope you can break it in a few years). That doesn't mean fixing authentication isn't also very important, but it's _slightly_ less pressing because attacks against authentication can only start in the future, and won't affect past traffic.

▲amluto 9 hours ago | parent [-]

Tailscale does not appear to consider the set of potentially reachable nodes and their public keys to be any sort of secret (from the perspective of other tailnet members anyway). So I imagine that something like Merkle Tree Certificates could give an inexpensive route to PQ key distribution. Even signing each Merkle root with something like SLH-DSA (which is about as conservative a choice as one could imagine) seems like very acceptable overhead in the Tailscale model. The tree could even include short term ML-KEM public keys for each online node.

I imagine one could extend this idea to optimize connection setup. Suppose that nodes, in advance of connection setup, produced a KEM messages encapsulating pairwise keys to various other nodes and produced a joint Merkle commitment to all of them. The coordinator could allow each node to download the encapsulated keys targeting it along with the inclusion proof and the commitment (~10kB using SLH-DSA for the root signature and ML-KEM for the pairwise keys and shorter if signed by a different algorithm). With this, it might even be okay to avoid any asymmetrically encrypted messages at connection setup - a session key could be derived from the pairwise key.

▲dave_universetf 8 hours ago | parent [-]

That's not the case unfortunately. If your ACLs say that two devices cannot talk each other, we explicitly guarantee that they will not learn about each others' existence in the network maps they receive.

But to a first approximation, key distribution bandwidth is not an issue. Or rather, it's an issue money can solve trivially. The bigger problems are just having to coordinate the switchover to a completely new set of protocols, and dealing with the fact that PQC cryptography imposes very different constraints on the wire than what we've become accustomed to with ECC.

It's all perfectly tractable, just a bunch of work to nail down the details.