33 comments

  • jacobgold an hour ago 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!

    • duttish a minute ago ago

      Hm how do you manage the keys? I have guesses but figured I'd just ask.

    • yjftsjthsd-h 32 minutes ago 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 31 minutes ago 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.

        • bmenrigh 27 minutes ago ago

          This is an argument for security-through-obscurity.

          • bikvfeee a few seconds ago ago

            The phrase "security thru obscurity" is something that people parrot because they heard it somewhere and it makes them feel smart. In reality, all cybersecurity is security thru obscurity. There's nothing else but obscurity. The entire field of encryption is literally obscuring.

            A thinking person understands that security, like obscurity, is just a matter of degree, and the only lever you have is increasing the cost for the attacker by increasing obscurity. Security isn't binary, it's a matter of degree in the form of cost.

          • arijun 2 minutes ago ago

            Is a password security through obscurity, since it’s just some not-well-known (known by one) string?

          • Zarathustra30 3 minutes ago ago

            Security-through-obscurity is another slice of Swiss cheese, albeit one with a big hole.

        • icedchai 28 minutes ago ago

          I would hardly consider that "dangerous."

      • jacobgold 26 minutes ago ago

        There have been a variety of issues with different SSH daemon implementations and configurations. You can also just make a dangerous mistake with your own configuration, or a cloud provider can easily have a bad default cloud-init sshd config that overrides your safe config, etc.

        One good example:

        regreSSHion, CVE-2024-6387, is an unauthenticated remote code execution in OpenSSH’s server (sshd) that grants full root access. It affects the default configuration and does not require user interaction. It poses a significant exploit risk. https://www.qualys.com/regresshion-cve-2024-6387

        With WireGuard, using a pre-shared key, attackers are interacting with virtually no code unless they have a valid encrypted packet, and then they still need the peer key to connnect.

        With an SSH server, there's a lot of code being executed by any remote attacker pre-authentication. Any exploit in this code can grant access. This is just inherently more risky.

        • yjftsjthsd-h 7 minutes ago ago

          I'm weakly inclined to view wireguard as even safer than openssh, but that's not the same as saying that the latter is proven unsafe. As that link notes, that was "the first OpenSSH vulnerability in nearly two decades", and while it was bad, it doesn't appear that anyone demonstrated exploitation against a 64-bit host, and openssh's response ( https://lists.mindrot.org/pipermail/openssh-unix-announce/20... ) was to promptly separate components precisely to reduce the amount of code that an unauthenticated attacker can even possibly reach. Wireguard has less code and is deliberately harder to hold wrong, but what code it has is running in ring zero, which a person could also describe as "just inherently more risky".

          Again, not wanting to act like wireguard is bad or openssh is perfect. I just think your comment is a bit far the other way.

        • lazide 4 minutes ago ago

          Eh, many crypto stacks are full of holes and exploits

      • lazide 6 minutes ago ago

        It’s been awhile, but there have been exploits. Also constant attempts.

    • icedchai 29 minutes ago ago

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

      • jacobgold 21 minutes ago ago

        Nah, it's not that risky with private keys, timely security updates , and a correct configuration. But you'd be much safer with WireGuard in front.

        I've been around long enough to remember upgrading servers from telnet to ssh. Some of those servers were on the public internet with `root` / `rootroot` credentials, which wasn't all that dangerous back then either, which is very funny now.

  • h4kunamata 2 minutes ago ago

    >pre-shared key option

    I didn't know there was an option without it lmao

    It is also one of the reasons that makes WireGuard Client management a nightmare because of the pre-shared key.

    OPNSense WireGuard plugin has involved a ton making this process less painful. I remember to install qrcode CLI tool to make it easier to add devices with camera without having to copy/paste things around haha

    It is the only open door on my firewall. I have tried to exploit it to an extend but OPNSense blocked the attempt before WireGuard knew what was going on without warning while logging the action. I accepted the risk, but no VPN = No homelab access

    Thanks Jason

  • jakemauer 18 minutes ago ago

    Really lovely even-keeled statement that makes me feel like Wireguard continues to be in good hands.

  • film42 an hour ago ago

    Thank you, Jason, for your continued work on this!

  • scirob 24 minutes ago ago

    tailscale has to get onboard

  • nullc 39 minutes ago ago

    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.

    • nullc 17 minutes ago ago

      Another "post-asymmetric cryptography" idea that may be useful for SSH, VPN, Chat, etc. sort of uses would be a chained symmetric secret:

      For each communication partner, store a small set of additional 256-bit secrets. After establishing your authenticated session share hashes of the secrets you have in common and find the most recent in-common value. Then mix its secret into your current keys. After doing so generate a new random value for both sides to replace them.

      The effect of this is that a passive store and decrypt attack must have successfully intercepted EVERY communication between these parties. As soon as one session goes across a link they failed to monitor, they've lost the trail at least until one of the sides loses their cache.

      It's ineffective against an active attack that could tamper with the traffic to suppress the cache. But it should often kill the store-and-decrypt-later attack dead without any reliance on asymmetric crypto or dependency on user-facing symmetric key management. User practices of intentionally communicating across diverse channels could strengthen it further. (Are the attacker somehow gonna capture your wired internet, your cellular internet, and the device to device bluetooth link that one time you were talking in person?)

  • stego-tech an hour ago 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.

  • sigmar an hour ago ago

    > 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)

  • hankbond an hour ago ago

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

  • _joel 8 minutes ago ago

    Just rot13 everything, twice for good measure. Foolproof.

  • verysmart 16 minutes ago ago

    A bunch of insane over reactions. There's literally no indication anything is wrong, other than people reading between the lines, because they're desperate for something interesting to happen.

    • ytxm 10 minutes ago ago

      The largest single employer of mathematicians, tasked with protecting national secrets and information security, told the world to stop using non-PQ crypto. Which part are you struggling with?

      • verysmart 4 minutes ago ago

        > The largest single employer of mathematicians, tasked with national secrets and information security.

        What are you writing a movie trailer script????

        This is what I mean, Americans just want to be in their own little movie where things are happening around them.

  • teravor an hour ago 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.

  • tamimio an hour ago 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 an hour ago 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.