Post Quantum WireGuard, WireGuard v2, ongoing AI discoveries, and so forth

153 points by cpach an hour ago on hackernews | 15 comments
> If you can actually pre-share a key over a secure offline means, the security of the WireGuard protocol comes down to breaking that 256-bit ChaCha20 key, which isn't going to happen, rather than any asymmetric primitive.

sneakernet is back baby! Love living in the cyberpunk future where crypto is cooked. (note: not a criticism of wireguard)

djha-skin | 42 minutes ago

jacobgold | 53 minutes ago

I've always used the WireGuard pre-shared key option on my WireGuard servers. It's what gives me confidence that an open WireGuard port on the public internet is safe.

Whereas a public open SSH port has always seemed (and proved) dangerous, now more than ever.

Thanks Jason!

yjftsjthsd-h | 18 minutes ago

> Whereas a public open SSH port has always seemed (and proved) dangerous, now more than ever.

Wait, did I miss something? When has opensshd proven dangerous to expose?

FredFS456 | 17 minutes ago

It's impossible to detect an open wireguard port as no response is generated unless you have the correct key. SSH on the other hand is easily scanned for.

icedchai | 14 minutes ago

I would hardly consider that "dangerous."

bmenrigh | 13 minutes ago

This is an argument for security-through-obscurity.

icedchai | 15 minutes ago

You must think I'm crazy having run many servers with public SSH ports since 1996. I remember the telnet days...

teravor | 50 minutes ago

it would also be nice to have some very limited cipher agility just for hardware support. if both peers support it AES-256 should be used instead of chacha20.
Thank you, Jason, for your continued work on this!

stego-tech | 40 minutes ago

And this is how you should write technical updates. Simple, concise, to the point, and reassuring.

Thanks for the great work! PSK WG FTW.

hankbond | 37 minutes ago

What a lovely update from a real human. Why does a simple message stand out so much these days.

tamimio | 33 minutes ago

Glad in my designs and platforms I now solely use iroh with its post quantum key exchange algorithm, sure it was more efforts to develop initially compared to using a ready wiregaurd gateway but worth it for the coming years.

https://www.iroh.computer/blog/iroh-post-quantum-handshakes

smallmancontrov | 32 minutes ago

> ECC was really in an ergonomic sweet spot, which we'll have to move on from. But so it goes.

Yes. LWE is hard to love. But so it goes.

It's a real shame that SSH lacks a PSK hybrid cryptosystem-- sure, the pitfalls of managing keying material make PSK itself only moderately secure in practice, but requiring the attacker to have both stolen the PSK and have some novel asymmetric crypto attack is a powerful combination.

If nothing else it may save you against a rapid automated attack that hits you faster than you could even read the security announcement.

Of course, one can put ssh behind wireguard and probably should for attack surface reduction.

Longer term I think it's time to reconsider some of the "too much cryptography" principles and start moving to diverse hybrids for every asymmetric path that can afford the cost.

Perhaps TLS is stuck with X25519MLKEM768 but I don't see any reason why my SSH server couldn't be using "E-521 + RSA-8192-KEM + FrodoKEM-1344 + mceliece8192128" for its key agreement and then after authenticating mixing in a preshared component-- this can be done quite efficiently if you use a zero-knowledge approach for establishing the authentication key (which you should already do for privacy/targeting reasons) because the hash of the authenticating pubkey is a candidate preshared key.

(If that's not clear enough: I'm saying that if you take care to make the protocol not divulge the pubkey used to authenticate, it can be used as an additional symmetric key at no additional key management cost.)

The older arguments against using a hybrid with many distinct hard problems even when bandwidth and compute are irrelevant are less relevant than they've ever been before-- recent contests have resulted in well reviewed implementations of many different schemes, LLM powered review has made integration of these simple self contained codes cheaper and safer than ever before. ... and the prospect of significant mathematical advances eroding formerly trusted asymmetric schemes is particularly great.