33 comments

  • jacobgold 17 hours 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 16 hours 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 16 hours 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.
        • ape4 4 minutes ago
          But you can detect a running WireGuard stream. I hope they (Jason) can improve this in v2.
          • cl3misch 8 hours ago
            > unless you have the correct key

            To be clear, this is not about the pre-shared key. What you need is a hash of the server's public key for the initial handshake. The PSK is only used after that.

            • Steve44 6 hours ago
              I guess this is similar to BitVise obfuscated handshake. My understanding is the server accepts packets but is completely unresponsive until it's had the "secret knock" on the door.

              Without that the attacker can't see what the server is and can't start SSH negotiations and so can't start an attack.

              This is like code we had in the 1980s for comms but also for typing cheat codes into games. There is no feedback at all to the user until the passphrase has been successfully entered.

              • cowlevel 5 hours ago
                There's nothing obfuscated about the Wireguard handshake. It's publicly a wireguard handshake and you can even see each side's public key in cleartext.

                The only thing hidden about it is that the server doesn't respond if it doesn't know your public key.

                • Steve44 3 hours ago
                  Yes, that's the obfuscated part - the server doesn't respond.

                  > It's impossible to detect an open wireguard port as no response is generated unless you have the correct key

              • icedchai 16 hours ago
                I would hardly consider that "dangerous."
                • whilenot-dev 7 hours ago
                  The practice that WireGuard employs here is called "Silence is a Virtue"[0]. That's done to provide DoS mitigation[1] and to prevent other classes of attacks. To quote the paper[0]:

                  > Several classes of attacks are avoided by not allowing unauthenticated packets to influence any state.

                  WireGuard servers not responding to unauthenticated clients is a design decision that leads to an advantage, because implementations won't need to allocate any dynamic memory for them. Even further, the protocol can be implemented in such a way, that servers won't need to allocate any dynamic memory for any client. To quote the paper[0] again:

                  > And more generally, it is possible to implement WireGuard in a way that requires no dynamic memory allocation at all, [...]

                  On the other hand, SSH servers MUST[2] give a response to all clients and will allocate dynamic memory for unauthenticated peers AFAICS.

                  So in practice, this means that unauthenticated peers can force OOM errors on SSH servers, where the WireGuard protocol — by design — makes this impossible. SSH DoS mitigations have to be done through other means, e.g. upstream services, which no non-enterprise uses in practice.

                  Whether or not to decide if that's "dangerous" for you, is up to each individual.

                  [0]: https://www.wireguard.com/papers/wireguard.pdf (5.1 Silence is a Virtue)

                  [1]: https://www.wireguard.com/protocol/#dos-mitigation

                  [2]: https://www.rfc-editor.org/info/rfc4252/#section-5.1

                  • cowlevel 5 hours ago
                    All TCP servers must allocate memory per client. Wireguard is cutting across abstractions for efficiency.

                    Actually a TCP server could also choose to ignore a client, but only based on the client's IP address and only if you hook into the kernel or use iptables -j DROP

                    Actually a UDP server also has to allocate memory per client, it's just that it can choose to free it immediately and treat the same client as a new client when it comes back. Then the bottleneck is bandwidth.

                    • stinos 4 hours ago
                      All TCP servers must allocate memory per client.

                      No idea about real implementations but is there no stack which allows to preallocate and reuse that memory, for instance for each client's initial negotation phase? So only allocation is needed once the decision is made to continue with the client? That would, at least to me, seem like a rather logical thing to do.

                      • whilenot-dev 3 hours ago
                        AFAICS your suggestion is exactly what's achieved with UDP and WireGuard, but you're not making the differentiation between kernel and user space. UDP shifts the responsibility of segment handling to the application side, and that can be an advantage to mitigate DoS attacks.

                        Datagram sockets (UDP) are "connectionless sockets" and the receiving end can stream any segments into pre-allocated memory. Meaning, the kernel streams segments to the application side, where static memory can be emptied and reused, either after allocation limit, after a timeout or after the first unusable segment has been reached.

                        The issue with TCP here lies in its built-in reliability features. Fixing out-of-sequence segments, and the detection of missing or erroneous segments requires intermediate state. These allocations need to be kept as long as we expect the corrected segments on the kernel side. The application side doesn't need to care for individual segments and only ever sees valid packages. This segment handling is entirely up to the network stack, and there's nothing the application level can do individually. That's up to system-wide TCP settings (tcp_fin_timeout, tcp_keepalive_time, tcp_retries2, tcp_syn_retries, ...)[0].

                        So the issue with every exposed TCP port is that its memory configurations are applied solely per system/kernel, and not per application. I would be hesitant to run other networking applications on a system alongside an exposed SSH server, but wouldn't be that hesitant alongside an exposed WireGuard server.

                        [0]: https://www.kernel.org/doc/html/latest/networking/ip-sysctl....

                      • whilenot-dev 4 hours ago
                        > Wireguard is cutting across abstractions for efficiency.

                        *and security.

                        SSH uses TCP, WireGuard uses UDP. Like you wrote, the bottleneck in bandwidth could annoy my ISP more, and trigger its DDoS protection, than it annoys the network stack on my VPN server.

                  • jijji 15 hours ago
                    > easily scanned for.

                    unless you use IP whitelisting

                    • jeremyjh 14 hours ago
                      By definition that would not be a public, open port.
                      • hcitziuvaixvqbi 9 hours ago
                        i don’t think so. i whitelist my vpn IP for ssh into a few machines and when i forget to turn my VPN on and try to access it, i get “permission denied (public key)”. whereas if i close port 22 entirely i get “network not reachable”.
                        • xp84 9 hours ago
                          You’re both right. If sshd is enforcing the whitelist you should see what you see. If instead you’ve got some kind of firewall mediating the traffic, then you should be invisible to anyone outside the whitelist.
                          • jeremyjh 2 hours ago
                            I assumed GP meant whitelisting an IP in a firewall - which just drops the packets and means the port scanner or bot will timeout rather than get denied. Typically in any cloud compute environment you'd have a deny all policy and then add permits for specific service ports/ips .
                        • thomashabets2 12 hours ago
                          Or TCPMD5, which I have tried to sell to openssh, even sending patches, as I recall.

                          With the major drawback that TCPMD5 doesn't work through NAT.

                          • pocksuppet 12 hours ago
                            TCPMD5 is a really terrible hack. Authentication is better done at either the application layer, or the VPN layer.
                            • thomashabets2 4 hours ago
                              I'm not saying it's perfect, but unlike at the application layer, TCPMD5 also protects against RST attacks and other shenanigans.

                              VPN, sure, but you don't have a VPN directly to every endpoint you'll SSH to.

                          • pixl97 15 hours ago
                            Which is great if you're always behind a particular IP. As for the rest of the world...
                            • cube00 13 hours ago
                              I've had success allow listing the whole IPv6 ASN block my ISP owns. It cuts down on all the drive by attempts and if someone on my ISP's network was trying to break in they'll still need to defeat SSH before I notice the stream of failed login attempts and report them.

                              I have the naive hope that as a paying customer of my ISP they'll take my abuse report involving a fellow customer seriously.

                              • fullstop 2 hours ago
                                I receive a /56 delegation from my ISP. I've been with them for the last four or five years, since they ran fiber through my neighborhood.

                                Allegedly this /56 can change, but it's been the same for as long as I have been a customer. But the CPE/ONT has been powered the whole time. That is, we've only lost power for a couple of minutes since then.

                                Even with all of this I've been hesitant to use the IPv6 range as a whitelist.

                                So, are you suggesting that you've white listed a larger range than what the ISP assigns you? Because, for me, that would be essentially white listing every Verizon FiOS customer, and I'd rather not do that.

                                • BenjiWiebe 2 hours ago
                                  Well if you currently "whitelist" the whole Internet, narrowing it down to Verizon Fios customers would be quite a reduction.
                                  • fullstop 2 hours ago
                                    Yes, this is true. But my thought was more "allow Verizon FiOS or nobody at all"
                                • J-Kuhn 12 hours ago
                                  Don't forget to add the IP blocks of your new provider, if you ever decide to switch...
                                • vlovich123 9 hours ago
                                  Tailscale bridges that gap nicely for what it’s worth.
                                  • xp84 9 hours ago
                                    Yup. Since figuring out how to get it to advertise a route to my home private up range (from my home server which is always connected) I just leave Tailscale on most of the time I’m not at home and I’m always able to connect to anything at home. I don’t even have to make that my exit node, which is great because my DOCSIS uplink speed is crap.
                              • bmenrigh 16 hours ago
                                This is an argument for security-through-obscurity.
                                • bikvfeee 16 hours 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.

                                  • danlitt 15 hours ago
                                    Obscure as in "I'm using a port nobody can guess" and obscure as in "I multiplied two large primes together that nobody can guess" are very different. Crypto is definitely obscuring, but it is muddying the waters too much to conflate them.
                                    • vlovich123 14 hours ago
                                      Technically that’s only because the port is 2 bits of secrecy. If port numbers were 128 bits we’d be having a different conversation I think.
                                      • falcor84 14 hours ago
                                        Just to nipick, that's 2 bytes, so 16 bits of secrecy (a bit less if you choose to avoid other well-known port numbers).

                                        EDIT: And on a practical level, the port number is sent as plaintext in the packet header, and generally much easier to snoop on than a secret sent in the data.

                                        • hdgvhicv 5 hours ago
                                          A given ip and port combo is 80 bits on an ip6 subnet, however that information is quite likely to leak in various exposed logs, so in reality it is less.
                                          • kortilla 13 hours ago
                                            Not really, because the port is observable over the wire. It’s no bits of secrecy once comms have been watched. That’s the difference between real security and security through obscurity.
                                            • DaSHacka 6 hours ago
                                              Entropy is a meaningful aspect to effective security though. An open SSH server will get hammered by a massive amount of bots every day, flooding your logs with worthless garbage.

                                              Whereas a wireguard setup using a nonstandard port would require an individual malicious operator to MITM your traffic to your homelab, then additionally attempt attack the service themselves. It would be so rare that even a single occurance is extraordinarily unlikely to ever occur. As a result, you could have real-time phone notifications for such an event, and be notified on an incorrect key exchange or other invalid packet instantly. Or just aggressively fail2ban any IP range that makes an invalid handshake.

                                              Effective security is achieved through layers, the goal is just raising the opportunity cost enough that it will realistically not be compromised without severely hindering functionality.

                                          • Koffiepoeder 15 hours ago
                                            Though there is a point to be made to also make obscurity a layer of your defence strat (albeit not effective for all threat models, and brittle).

                                            After all, most organisations dont put out their whole network design, serverpark documentation and infra architecture out in the open. It usually goes by many names, like 'company secret', 'internal knowledge', 'NDA', but in the end its all just obscurity.

                                            For me it just another layer of the onion. I don't really consider it security, though I do qualify it as some sort of defence.

                                            • JshWright 12 hours ago
                                              There's a reason militaries don't paint their tanks bright pink...

                                              No one expects camo paint to stop a projectile, that's what the armor is for. But in an ideal scenario you don't get hit by the projectile in the first place, and that's what the camo is for.

                                              • Steve44 4 hours ago
                                                > There's a reason militaries don't paint their tanks bright pink

                                                Drifting from the thread a little, but the RAF did paint some Spitfires pink in WW2 as that was deemed the best camouflage.

                                                https://theaviationist.com/2026/08/24/story-of-the-colorful-...

                                                • cwillu 9 hours ago
                                                  Militaries have in the past used bright colours, for good reasons. Muted camo colours being good is a contingent fact dependent on a particular range of technological development, not an absolute law.
                                              • bikvfeee 7 hours ago
                                                Its funny that people who use the phrase security thru obscurity ALWAYS use the secret port as example.

                                                Articulate for me what you think is the difference.

                                              • yjftsjthsd-h 15 hours ago
                                                > In reality, all cybersecurity is security thru obscurity.

                                                No, that's not what that word means. "Obscurity" means low/no entropy. If you're leaning on a "secret" int between 0 and 65,536 then it's going to break. If your secret is a random int between 0 and 2^2048 then that's not "obscurity", that's an actual secret.

                                                • MisterKent 13 hours ago
                                                  Thank you.

                                                  Security through obscurity means "as long as nobody knows our process we're safe"

                                                  Which is true in cryptography, knowing that primes are used does not suddenly make it surmountable.

                                                  If your security is that the ssh port is x, REGARDLESS of how many bits there are, it's security through obscurity. Someone reading the process would immediately know.

                                                  If your process is randomly picking a port, then that's not. You'd have to figure out how to communicate that port to your users though.

                                                  • cowlevel 5 hours ago
                                                    My process: I walk up to the computer, open the lid, type in root and hunter2retnuhandback. Then I click login.

                                                    It's not secure now you know the process, but was it security through obscurity?

                                                  • zenoprax 12 hours ago
                                                    > the practice of concealing the details or mechanisms of a system to enhance its security

                                                    By that Wikipedia definition, Wireguard is more obfuscated than SSH because it won't reveal that it exists to unauthorized users. This enhances its security.

                                                    Your example creates a binary that begs the question: how much entropy does it take to advance from obscurity to secret? "Defense in depth" implies many layers of imperfect obfuscation/secrets.

                                                    • anamexis 14 hours ago
                                                      Where is obscurity defined as low/no entropy?
                                                      • 8note 15 hours ago
                                                        unless its 4, of course
                                                        • Geof25 15 hours ago
                                                          RSA actually is security through obscurity, where the obscurity is that nobody will figure out practical factoring.
                                                          • chpatrick 28 minutes ago
                                                            "obscurity" in a security context means that the protocol is secret. Good cryptography is secure even if everyone knows how it works.
                                                            • dns_snek 7 hours ago
                                                              That's not security through obscurity, you have all the details about the algorithm and you still can't break it.

                                                              Security through obscurity would be inventing a custom homemade cipher that's trivial to break once you understand how it works.

                                                              • DaSHacka 6 hours ago
                                                                It's merely one of many potential layers of security. The problem that infamously keeps coming up in industry around insecure crypto implementations/algos is that they ONLY have obscurity to their benefit, something that does not scale when distributed (see: Crypto1).

                                                                Passwords, keys, and even bound ports are security through obscurity. The goal is to just not have that as your ONLY layer of security. A password for one user's account, that only they know, is fine. A default admin password for a router brand that has the web interface exposed to the internet by default, is not.

                                                          • prophesi 14 hours ago
                                                            > In reality, all cybersecurity is security thru obscurity.

                                                            I'm usually not here to debate semantics, but good god, trusting in cryptographically secure algorithms is a much stronger promise of security than something like, say, port-knocking.

                                                            Just because the math behind these algorithms are being put under a lot more pressure than we could imagine a decade ago doesn't mean we should throw the baby out with the bathwater. If anything, it's a good thing to validate that our assumptions are true, and correct the assumptions we had incorrect.

                                                            • nonethewiser 12 hours ago
                                                              >I'm usually not here to debate semantics, but good god, trusting in cryptographically secure algorithms is a much stronger promise of security than something like, say, port-knocking.

                                                              That’s his point though. That some forms of obscurity are much stronger and aren’t bad.

                                                              • prophesi 9 hours ago
                                                                > There's nothing else but obscurity. The entire field of encryption is literally obscuring.

                                                                They're conflating cryptographically secure math with all manners of obscurity through security as being the same. Do you not see how dangerous and silly that claim is?

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

                                                                This doesn't make sense, and honestly sounds like AI-generated ragebait.

                                                          • Steve44 6 hours ago
                                                            I run an SSH server on an obscure port, it's been up there for about 10 years.

                                                            I get about 50-100 unwanted hits a day trying to authenticate from all over the world. I recently opened another one and it didn't get any unexpected hits. I strongly suspect my IP and obscure port was picked up by a port scan at some stage and is now on some kind of list being passed around.

                                                            I don't see the high port as security as such, but it's a layer in reducing the noise. It's probably like having a staff entrance round the side of a public building, it still needs security but there is much less unwanted traffic.

                                                            • Quimoniz 5 hours ago
                                                              Interesting. On my side -- since the XZ-supply-chain attack and the RegreSSHion bugs back in 2024 -- I switched all my SSH-reachable servers over to non-standard SSH ports (in the range 10,000 to 65,000). This initially led to a sharp decline of SSH probing/less failed login attempts in `/var/log/auth.log`, like one attempt every few days, which mostly were just unsophisticated, random port scans.

                                                              However as of late, there are again quite a lot of failed login attempts being logged by my sshd instances. Say, do you have a few historical numbers on the failed login attempts?

                                                              Like, I was suspecting that with the advent of AI based exploiting actual exploitation attempts have become more aggressive/more thorough. What do your numbers say in that regard?

                                                              • Steve44 5 hours ago
                                                                Sorry I don't have any hard stats to hand. I let the SSH Server auto block IPs based on failed attempts and also geo-locked to allow UK only[1], in those cases it logs "Rejected SSH Connection" so not exactly sure what the "attacker" sees. I get a lot from blocked addresses, so that will be repeated "attacks" but haven't spent time analysing in any depth.

                                                                Before they're block reported client versions seem to be mainly SSH-2.0-Go or SSH-2.0-ZGrab ZGrab SSH Survey with the occasional Ubuntu.

                                                                [1] This caught me out when I was on holiday once and needed to get in. Had to sign up for a VPN which exited in the UK to get through.

                                                                Previously I had the firewall doing some of the geo-locking but currently behind a managed one and apparently it's not capable.

                                                            • jjmarr 16 hours ago
                                                              The NSA itself has a secret suite of cryptographic primitives for this exact reason.

                                                              https://en.wikipedia.org/wiki/NSA_Suite_A_Cryptography

                                                              • abnry 14 hours ago
                                                                Yes! Thank you for saying this. It bugs me when people don't understand this. Of course, cryptographic obscurity has some measurement of obscurity associated with it, which is why it is valuable.
                                                                • vlovich123 14 hours ago
                                                                  “Security through obscurity” refers to the algorithm not any key material.
                                                                  • abnry 13 hours ago
                                                                    Yes, it refers to it somewhat obscurely.
                                                                • InsidiousWombat 2 hours ago
                                                                  A thinking person knows the obscurity in that saying means "knowing how the security works", nothing more, nothing less

                                                                  Encrypted port traffic on open protocol (like HTTPS) is not obscure. You know all the algorithms involved and you can access it.

                                                                  You fundamentally misunderstood everything about that saying

                                                                  • comboy 15 hours ago
                                                                    Explain how one time pad is security by obscurity.
                                                                    • ordersofmag 15 hours ago
                                                                      Because the pad is not visible to those you want to keep the communication secure from. The pad is 'obscured'.
                                                                      • ctr 14 hours ago
                                                                        • abnry 14 hours ago
                                                                          The phrase is imprecise in its meaning. No dictionary definition of obscure would make it apparent. But the point is that some information has to be held back, even if it is only the key. That's what is obscure.
                                                                          • n9 6 hours ago
                                                                            Everything’s made up. Stay woke.

                                                                            Your argument is like when my son whistles. Sounds good to you and not so much for the other people in the room. So: yeah! sure! go all yolo and beat a point regarding your private use of language into the ground, but at least consider that your way of defining these words actually removes a significant distinction from the meanings of at least one way to put them all together.

                                                                        • literalAardvark 15 hours ago
                                                                          We just call those secrets in the biz.
                                                                      • placebo 8 hours ago
                                                                        On a theoretical level no amount of cost will crack a one time pad but since the world is not theoretical, I guess the argument still stands.
                                                                        • 6thbit 15 hours ago
                                                                          It's just dark turtles all the way down
                                                                          • kortilla 13 hours ago
                                                                            This is an absurd reduction and nobody serious things ACLs on source IPs are on the same spectrum as encryption. These things are qualitatively different.

                                                                            Port knocking or source IP filtering is trivially defeated by an attacker that can observe any traffic in the chain of a legitimate traffic exchange. The entire class of things people call “security through traffic obscurity” are these trivial things that only help against bulk automation.

                                                                            These are extra things you sprinkle on to buy you more time from 0-day bot farms (not 0-day dedicated attackers who have watched your traffic), but they are not a replacement for real security that gives you well bounded guarantees through cryptography.

                                                                            The people who think “it’s all security bro” are the ones who end up losing their crypto money when their ISP gets BGP hijacked by a dedicated attacker. “The IP was hardcoded, how could they possibly take over!?!?”

                                                                            • Stefan-H 15 hours ago
                                                                              This fundamentally misunderstands the distinction between cryptographic secrecy and security through obscurity. Much of cryptography is indeed based on keeping a secret, but that secret is the key, not the algorithm or the security mechanism itself.

                                                                              Modern cryptography is explicitly designed around the assumption that an attacker knows the algorithm, understands how it works, and can examine its implementation. Security should hold even when all of that is public, provided the key remains secret. That's the principle behind Kerckhoffs's principle.

                                                                              Security through obscurity, by contrast, relies on hiding the design, implementation, or inner workings of a system as a security measure. The distinction matters because if discovering how the system works is enough to compromise it, then you've built a fragile security model.

                                                                              Nobody disputes that security is a matter of degree or that increasing an attacker's cost matters. The disagreement is about what you're relying on to impose that cost. A strong cryptographic system relies on the difficulty of breaking the cryptography without the key, not on the attacker being unaware of how the system works. Conflating those two concepts doesn't make them equivalent.

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

                                                                              Security through obscurity mostly refers to the attacker not knowing how the system works, not hiding information.

                                                                              • perching_aix 15 hours ago
                                                                                Yes, it is. And code is data. "Security through obscurity" is all that exists.

                                                                                Cryptography is, in good part, about the practice of using mathematics for the assurance of sufficiently sophisticated obscurity.

                                                                                The trope of "security through obscurity bad" does not survive scrutiny, because it was never meant to. It's a "practical sense" shorthand, not something to actually deeply consider like this. It falls apart immediately when you do.

                                                                                • pixl97 15 hours ago
                                                                                  Sophisticated obscurity is the key.

                                                                                  Most obscurity is not sophisticated. The things the users are doing aren't much different than a kid hiding behind a sofa and they think their dad doesn't know where they are any longer.

                                                                                  • perching_aix 15 hours ago
                                                                                    I really do wonder how the cookie will crumble with hardness assumptions in this regard.

                                                                                    The currently trending story may be that it is only a matter of time before the frontier AI labs crack all crypto and then we're hosed, but it's also possible they find hardness proofs and better constructions instead.

                                                                                    Though maybe their focus is not pointing that way right now / counterarguments may continue to be more discoverable.

                                                                              • coldtea 15 hours ago
                                                                                Nothing wrong with security through obscurity, even in its most naive form of changing your port ranges and stuff like that. It's only a problem when some obscurity is the only method of securing.

                                                                                Obscurity adds layers of security, and security is all about layering and increasing the difficulty, not about some perfect binary solution secure vs not secure.

                                                                                • greggsy 10 hours ago
                                                                                  No, it’s a demonstration of obscurity by design.

                                                                                  It doesn’t back up any claims about the benefits of SBO.

                                                                                  • bch 14 hours ago
                                                                                    There's nothing wrong with obscurity, as long as it's not your only line of defence.
                                                                                    • LoganDark 16 hours ago
                                                                                      Defense-in-depth does not use security-through-obscurity alone, but obscurity can still be a valuable part of a complete strategy. You should know better than "obscurity makes a system less secure"
                                                                                      • sva_ 15 hours ago
                                                                                        Layered security*
                                                                                        • Zarathustra30 16 hours ago
                                                                                          Security-through-obscurity is another slice of Swiss cheese, albeit one with a big hole.
                                                                                      • jacobgold 16 hours 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 16 hours 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.

                                                                                          • jacobgold 14 hours ago
                                                                                            > As that link notes, that was "the first OpenSSH vulnerability in nearly two decades"...

                                                                                            The quote is "OpenSSH vulnerability in nearly two decades—an unauthenticated RCE that grants full root access" which is qualified because there have been other significant OpenSSH security vulnerabilities over the years.

                                                                                            You're also ignoring the sshd misconfiguration issue which is a serious problem. OpenSSH supports password authentication among other potential footguns.

                                                                                            > 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".

                                                                                            That "regreSSHion" exploit above was a remote root exploit. There's no practical difference between root access and a "ring zero" kernel exploit in most cases.

                                                                                            WireGuard is over a decade old at this point, so the record speaks for itself.

                                                                                            • aborsy 11 hours ago
                                                                                              OpenSSH should cut its pre-auth code or better do what WG does don't talk at all unless the correct secret is presented.

                                                                                              Here is another vulnerability

                                                                                              https://en.wikipedia.org/wiki/XZ_Utils_backdoor

                                                                                              • Palomides 10 hours ago
                                                                                                basically nobody was affected since that backdoor wasn't in any distro releases, though
                                                                                                • martyfunkhouser 10 hours ago
                                                                                                  The problem with "hacker news redesigns OpenSSH from first principles" is that's not how the SSH protocol works at all.
                                                                                              • mk12 12 hours ago
                                                                                                There's definitely more room for user error with SSH. At one point I thought I was hardening my /etc/ssh/sshd_config by adding things to the end to override the defaults. Turns out that config file is "first rule wins", so my changes had no effect.
                                                                                                • lazide 16 hours ago
                                                                                                  Eh, many crypto stacks are full of holes and exploits
                                                                                                  • frankzinger 11 hours ago
                                                                                                    Yes, so the fewer of them you stack on top of each other the better
                                                                                                • tarruda 5 hours ago
                                                                                                  > Wait, did I miss something? When has opensshd proven dangerous to expose?

                                                                                                  CVE-2026-123158

                                                                                                  • binkHN 1 hour ago
                                                                                                    A specific set of conditions have to exist for you to be vulnerable here, and this is definitely the minority.
                                                                                                  • written-beyond 5 hours ago
                                                                                                    I means that's been the case for years. That's why port knocking and other obfuscation methods exist.
                                                                                                    • lazide 16 hours ago
                                                                                                      It’s been awhile, but there have been exploits. Also constant attempts.
                                                                                                      • TacticalCoder 15 hours ago
                                                                                                        > Wait, did I miss something? When has opensshd proven dangerous to expose?

                                                                                                        I'm a big fan of OpenSSH but, please...

                                                                                                        Backdoor attempt in XZ / liblzma wasn't that long ago. We were talking about a remote root hole in 100% of exposed sshd.

                                                                                                        Then we recently had a remote root exploit on every single open TCP port. Ain't sshd listening on a TCP port?

                                                                                                        Note that in both cases mentioned above, a UDP port-knocking only revealing the OpenSSH sshd port was rendering the attack stone cold dead.

                                                                                                        So there's that.

                                                                                                        • yjftsjthsd-h 6 hours ago
                                                                                                          > Backdoor attempt in XZ / liblzma wasn't that long ago. We were talking about a remote root hole in 100% of exposed sshd.

                                                                                                          If it needs a backdoor to compromise, it's pretty secure. And do you really wanna bet that Linux is harder to backdoor than openssh? Also: no, even if that attempt had succeeded, it would have backdoored openssh on rpm/deb Linux distros using glibc and systemd. Which is a lot, but as a happy Alpine user and fan of OpenBSD, I'm comfortable saying not 100% of exposed sshd would be vulnerable.

                                                                                                          > Then we recently had a remote root exploit on every single open TCP port. Ain't sshd listening on a TCP port?

                                                                                                          That feels like making decisions based on coincidence. Linux happened to have a flaw in its TCP. If it has a flaw in UDP, would you flip your view? Because I don't see why one would be real and the other out of the question.

                                                                                                          • dns_snek 7 hours ago
                                                                                                            FYI you seem to be shadowbanned, all of your comments from the past few days are [dead].
                                                                                                        • KMag 12 hours ago
                                                                                                          I've played around with the idea of having a separate daemon with a hybrid PQ/Curve25519 public key pair and its own pre-shared key to allow remotely rotating a pre-shared key to get some degree of forward secrecy even if curve25519 is broken, without modifying WireGuard itself and risking breaking WireGuard.

                                                                                                          Presuming Grover's algorithm is the best attack against the symmetric crypto and KDF used, then a quantum computer just effectively cuts key sizes in half... fine for 256-bit algorithms.

                                                                                                          Anyway, glad to see PQ in WireGuard instead of having to bolt on quantum resistance via rotating pre-shared keys.

                                                                                                        • duttish 16 hours ago
                                                                                                          Hm how do you manage the keys? I have guesses but figured I'd just ask.
                                                                                                          • QuantumNomad_ 15 hours ago
                                                                                                            You generate a key pair on your client machine, and then you connect to your server from one of the other machines you already have connected to its WireGuard VPN, copy the public key of your new client to the WireGuard config on that server along with adding the usual AllowedIPs etc. Restart WireGuard on the server and there you go.

                                                                                                            When a client machine is lost, stolen or broken you connect to the server from another device again and outcomment the lines in WireGuard config for the no-longer-trusted client. Restart WireGuard on the server.

                                                                                                            The PreSharedKey is also uniquely generated by you per client. But it doesn’t matter if you generate it on the server or client side. It is after all as the name says, shared by both of them so they both know what it is. For simplicity and since we are already generating the key pair client side we might as well generate the preshared key there too at the same time.

                                                                                                            What would you have guessed that the procedures would be?

                                                                                                            • edoceo 11 hours ago
                                                                                                              How do you do the first device? IME I've still got one time to SSH in and establish the first WG pair.

                                                                                                              Do you have new magic for that step?

                                                                                                              • QuantumNomad_ 7 hours ago
                                                                                                                Doing the initial setup over ssh is fine too, IMO. You could use firewall rules on the network to prevent anyone else from reaching the IP of the server other than yourself/team/company too during the time when you are performing that setup.

                                                                                                                Other alternatives depends on your circumstances.

                                                                                                                If it’s a cloud VM, you could prepare the hard drive image or unattended OS installer you use so that it already has knowledge of the public keys of some of (or even just one of) your WireGuard clients and make it so that even on first boot WireGuard will start up right away and that sshd is configured to only bind to the WireGuard interface. Or use whatever cloud orchestration facilities are available to have it do those things on first boot without customizing the hard drive image or OS installer itself.

                                                                                                                Physical rented machines in some random data center you don’t get to physically visit can also use a customized installer, served via iPXE. That either is configured to include knowledge of some public keys and so on like above, or is set so that it automatically retrieves configs and stuff from elsewhere like with the cloud orchestration way.

                                                                                                                Another alternative is to use a VNC console provided by the hosting provider as a lot of them have both for physical rented servers and for VPSes.

                                                                                                                And of course if you are physically present and setting up a server it can all be completely offline.

                                                                                                            • adrian_b 15 hours ago
                                                                                                              The ideal management of pre-shared secret keys is with computers that would have an automatic pairing functionality, i.e. you would connect an USB cable between them and they would exchange automatically the secret keys that would be used in the future for establishing secure connections through the network.

                                                                                                              Lacking that, you must use some secure random number generator to produce a secret key on one of the computers, which should preferably be stored in an encrypted file, like the SSH private keys.

                                                                                                              It depends on the VPN program whether the pre-shared key consists of a single key or of a pair of keys. In the latter case, which is better, each key is used for one of the two communication directions. In any case, this does not matter for key distribution, because even when there are 2 keys, both must be known by each of the two communicating computers.

                                                                                                              Then you must transport it to the correspondent computer, e.g. using an USB memory. If using an USB memory, the file stored on it should be encrypted, because you can never be sure that a file deleted on an USB memory is really deleted. Even if you overwrite the file, the memory controller might have remapped the file and the original content might survive somewhere else in the USB memory. The same is true for SSDs/HDDs, which is why such pre-shared secret keys should normally be stored only in encrypted files and they should exist in decrypted form only in the DRAM memory.

                                                                                                              However, how the secret keys may be encrypted depends on the VPN program. With a dumb VPN program, which does not know to handle encrypted files with the secret keys, one can use a RAM disk in which to decrypt the secret key from a file stored on the SSD, then you can point the VPN program to the secret key in a file on the RAM disk.

                                                                                                              A unique pre-shared secret key (or pair of keys) must be used for every pair of computers that must communicate.

                                                                                                              In a big network, in order to avoid the need to have a number of secret keys proportional with the square of the number of computers, one can have one or more proxies for the establishment of secure connections (i.e. somewhat similarly to how Kerberos worked), in which case the number of secret keys is reduced to be proportional with the number of computers.

                                                                                                              Even without proxies, in a network with N computers the number of PSKs is N(N-1)/2, but every computer stores only N-1 PSKs, which is not different from the case when public keys are used, when the same number of host keys is stored in each computer.

                                                                                                            • bikvfeee 16 hours ago
                                                                                                              Are pre shared keys the peer keys? Or something separate?
                                                                                                              • gruez 16 hours ago
                                                                                                                No, because in a config you have two keys:

                                                                                                                    [Peer]
                                                                                                                    PublicKey = abc...
                                                                                                                    PresharedKey = xyz...
                                                                                                                • dathinab 14 hours ago
                                                                                                                  they are a separate symmetric key you have to "somehow" share out of band before (trying to) connect to a wireguard server/peer

                                                                                                                  "somehow" here just means it isn't part of the wireguard protocol

                                                                                                                  the idea here is roughly following:

                                                                                                                  - asym. crypto has very neat properties for connecting peers, as ...

                                                                                                                  - ... public keys are not secrets, making sharing easier(1) and peers having (their private key and) the public key of each other is sufficient to securely connect

                                                                                                                  - ... private keys are a secret one each peer knows and never hands over, so they add some form of authentication. I.e. some level on confidence on each side of the connection that the other is the peer you wanted to connect to

                                                                                                                  - but asym. crypto always was a bit less trusted, so wireguard from the get to go allowed "mixing" in a pre-shared key in addition to your private/public keys (peer keys). But they have the issue that ...

                                                                                                                  - ... symmetric keys are secrets you need to share, which can add challenges

                                                                                                                  - ... symmetric keys are the same on both sides of the peer, you either need to use a different key for each _pair_ of peers (instead of one per peer for asym. keys) or peers can "impersonate" each other (if no additional protections are added)

                                                                                                                  Now if you manage some small number of VPN connected servers by hand and manually copy-past peer entries into wireguard config files the setup between only peer keys, peer keys with PSK, or a hypothetical version with only PSK is all quite similar. The drawbacks/benefits mainly show on larger scale if you have anything more complicated.

                                                                                                                  Like imagine 100 peer with asym. crypto that are 100 private keys to create and 100 public keys to share, and you can share them "publicly"(1). To get similar security _without_ asym. crypto you would need to create 4950 secret keys (100*99/2, one for each possible connection) and all of them must only ever be known to the respective pairs. And even then you still have some drawbacks compared to asym. cryto for peer authentication. In turn as compromise some did use with wireguard in the way where 100 peers means having 100 public key and then added one single shared symmetric key or similar. Through as mentioned modern VPN tools build on top of wireguard might just manage and distribute that 4950 keys for you for maximal security.

                                                                                                                  ---

                                                                                                                  (1): A major challenge can be how do you trust that the public key (peer key) shared with you is actually from the service you want to connect to. This is why TLS/WebPKI has the certificate system it has and this is also the hardest part of anything "fully/truly end to end encrypted".

                                                                                                                • icedchai 16 hours ago
                                                                                                                  You must think I'm crazy having run many servers with public SSH ports since 1996. I remember the telnet days...
                                                                                                                  • jacobgold 16 hours 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.

                                                                                                                • jakemauer 16 hours ago
                                                                                                                  Really lovely even-keeled statement that makes me feel like Wireguard continues to be in good hands.
                                                                                                                  • TZubiri 14 hours ago
                                                                                                                    Commendable, I thought by the title it was going to be something like a dev pushing an update driven by an agent, claiming the thing is PQ safe now.

                                                                                                                    But this approach seems more measured. I'd be weary otherwise.

                                                                                                                    • jjice 12 hours ago
                                                                                                                      Very early on in Wireguard they were always very upfront that there would be no multi algorithm support, but instead implement a second separate version of the protocol. I always thought that was a great idea. Wireguard prides itself, and it's one of my favorite things about it, in how simple and straightforward the code is.

                                                                                                                      I have no doubts that any future versions will be anything less than excellent.

                                                                                                                    • pseudohadamard 3 hours ago
                                                                                                                      A year or so back I was updating some replacements for a few stdlib functions that behave nondeterministically, which a very tiny percentage of careful developers know about and will write their own replacements with predictable behavior. While searching for other examples I came across some... in the Wireguard source code. This stuff is written by someone who's really careful and really knows their stuff.
                                                                                                                    • kodoman 13 hours ago
                                                                                                                      I remember when I first tried wire guard and expected that like a lot of things it was just hype, but once I used it, its may favorite project and is something I use all the time and have no reason to use openvpn again.

                                                                                                                      Jason does a fantastic job and wireguard is a joy to use and configure.

                                                                                                                      • _0xdd 1 hour ago
                                                                                                                        Agree completely. It's night and day compared to configuring OpenVPN, even with easy-rsa.
                                                                                                                      • ffsm8 2 hours ago
                                                                                                                        I know he's not interested in input wrt what goes into wg2, so I'll obviously abstain from doing anything like that - but in this private setting I can shout out my silly idea I had the other week.

                                                                                                                        We all know about the thread model of intermediaries writing all encrypted data until an attack vector turns up to the decrypt the old data, right?

                                                                                                                        So why doesn't any VPN provider take the maximalists approach of *always saturating the link with garbage (when activated) and consequently ballooning the storage cost for this practice to comical degrees?

                                                                                                                        • junon 2 hours ago
                                                                                                                          Most likely because 1) it'll completely disrupt others on the same network by saturating the outbound link and 2) ingress/egress is oftentimes not free when using WG to connect to VPS clusters.

                                                                                                                          Also if you're resorting to something like, you're probably not the target demographic for dragnet-type operations. This is security by obscurity, after all.

                                                                                                                          • whilenot-dev 2 hours ago
                                                                                                                            3) That's not in the interest of a VPN protocol, but that's rather up to a VPN provider. VPN providers won't need anything to change in the WireGuard protocol to apply that approach already.

                                                                                                                            4) Many more resources are affected while saturating the bandwidth other than the storage costs of intermediaries. (see 1 and 2)

                                                                                                                            5) It's not a technical solution, but an economic solution to a problem, based on the wasteful saturation of resources. As such it would also raise the entry costs for small providers to enter the VPN market significantly, so only big providers could probably survive.

                                                                                                                            6) Being no technical solution, it does nothing to help the cryptographic challenges of a VPN protocol.

                                                                                                                            • ffsm8 1 hour ago
                                                                                                                              Mmh, I thought I was clear that I was pitching that as opt-in, not default on.

                                                                                                                              Doesn't that eliminate most of y'all's points?

                                                                                                                              1. Why would that matter to you? You're paying for the link

                                                                                                                              2. Opt in

                                                                                                                              3. This can only be done at the protocol level, otherwise you need to introduce a incredibly hard QoS system that's always going to fail

                                                                                                                              4. Again, you paid for this. The costs don't become less from not using

                                                                                                                              5. Are you thinking about "public vpns" like private Internet access or mullvad here? Because I was talking about private vpns, not public ones. Public vpns are objectively pointless when you actually think about their thread model. Their only valid usecase is media piracy from my perspective

                                                                                                                              6. Exactly, it just makes one approach to compromise the data economically inviable

                                                                                                                        • kodoman 13 hours ago
                                                                                                                          On the question of things that do use TLS I have not migrated anything yet but planning on having all TLS stuff use X25519MLKEM768, is this what everyone else is doing. I don't trust something like ML-DSA alone as it still feels PQC algos are not proven and not feel some of this stuff is being overblown but better safe then sorry.

                                                                                                                          What is everyone else doing?

                                                                                                                          • inshortok 5 hours ago
                                                                                                                            Yes, I'm going hybrid (X25519MLKEM768 and MLDSA44-Ed25519-SHA512) where possible, at least until the dust settles on this whole thing.

                                                                                                                            There's one or two places where post-quantum crypto isn't easily configurable yet or fully tested. I'm still considering eliminating all pure elliptic curve algos across the board for the time being, which means in these places I'd have to fall back to something like RSA-3072+. Still figuring these out.

                                                                                                                            I'm not interested in hacking away at all these layers in a panicked response to the advisory. I'd rather upgrade packages ASAP in the next few days/weeks and adopt the new secure upstream defaults (favoring hybrid where possible) as soon as they land.

                                                                                                                            Just FYI, OpenSSH has been hybrid by default for a while now for key exchange, and the most recent release (10.6 I think?) supports hybrid for auth/signing. So just having a recent OpenSSH version already covers key exchange at least.

                                                                                                                            And as I understand it the common default for key exchange in TLS 1.3 is also hybrid, so just switching to TLS 1.3 will do it in most cases.

                                                                                                                          • film42 17 hours ago
                                                                                                                            Thank you, Jason, for your continued work on this!
                                                                                                                            • cromka 15 hours ago
                                                                                                                              I really wish they paid some attention to their mobile clients. WireGuard for iOS has a ton of issues and hasn't been updated in 3 years. They said they aren't being paid enough but to me it looks like some sort of control freak situation because there should and would be a (co)maintainer by now. And I assume this project is so good and so popular that even crowd sponsorship would yield plenty of cash.

                                                                                                                              This, or I am misreading it.

                                                                                                                              • edoceo 11 hours ago
                                                                                                                                Perhaps the hoop-jumping that Apple requires is enough friction to lower the priority of that client-app. That and the FOSS nature of WG let's anyone build and publish a client (further lowering the iOS priority for the WG group)
                                                                                                                                • cromka 3 hours ago
                                                                                                                                  I don't think that's the problem. There's a ton of pending PRs and there hasn't been a release in 3 years or so. This isn't a complex app to begin with.

                                                                                                                                  https://github.com/WireGuard/wireguard-apple/pull/11

                                                                                                                                  > FOSS nature of WG let's anyone build and publish a client

                                                                                                                                  Which is precisely why people should stick to the vanilla from the authors for stuff this critical and not trust random Apps that neither Apple nor Google have full control over, as exemplified by a myriad of impersonation malware routinely reported here on HN.

                                                                                                                                • gh02t 11 hours ago
                                                                                                                                  I've been using WG Tunnel, it's got a lot more features and polish. I wanted a way to autoconnect off wifi and found it after I gave up on kludging Tasker to do it.

                                                                                                                                  I can't vouch for how trustworthy it is but seems legit to me after using it for quite a while now.

                                                                                                                                  https://wgtunnel.com/

                                                                                                                                  • cromka 3 hours ago
                                                                                                                                    Yeah, the trust is an issue to me, to be honest. For VPN I either use support built into the OS or open-source.
                                                                                                                                  • mk12 12 hours ago
                                                                                                                                    Interesting, I had issues with the Tailscale iOS app using lots of battery, so I switched to plain WireGuard around a year ago and I've had zero issues with it.
                                                                                                                                  • davidee 14 hours ago
                                                                                                                                    I've been using it for much longer than that, and it's been fine. Rough around the edges, but fine.

                                                                                                                                    Just out of curiosity, what issues are you seeing?

                                                                                                                                  • bronson 14 hours ago
                                                                                                                                    How are you going to get a reliable co-maintainer without money?

                                                                                                                                    I hear Jia Tan is interested.

                                                                                                                                    • cromka 3 hours ago
                                                                                                                                      > How are you going to get a reliable co-maintainer without money?

                                                                                                                                      Is that what I said?

                                                                                                                                    • znpy 5 hours ago
                                                                                                                                      > They said they aren't being paid enough

                                                                                                                                      yeah, unironically LLMs could help a lot in this field, most likely a 20$/month subscription from a decent provider would suffice.

                                                                                                                                      > but to me it looks like some sort of control freak situation

                                                                                                                                      yeah i had the same feel, very strongly, from this statement: "This is not an invitation to "let's all design it in a mailing list thread" or something."

                                                                                                                                  • scirob 16 hours ago
                                                                                                                                    tailscale has to get onboard
                                                                                                                                    • ac29 7 hours ago
                                                                                                                                      latest version uses ML-KEM-768: https://tailscale.com/changelog
                                                                                                                                      • jasonrm 9 hours ago
                                                                                                                                        They appear to be already in Tailscale v1.106.3

                                                                                                                                        > WireGuard handshakes between supported peers include ML-KEM-768 (Noise IKhfs), protecting against store now, decrypt later post-quantum attacks.

                                                                                                                                        https://tailscale.com/changelog#2026-12-02

                                                                                                                                        • cromka 15 hours ago
                                                                                                                                          That's like saying git can't be improved unless GitHub gets on board?
                                                                                                                                          • pureagave 14 hours ago
                                                                                                                                            I think he's saying "I hope tailscale gets on board, because I love Tailscale and I have enough other important things to do and I love that they take care of this stuff for me."

                                                                                                                                            If that's what he's saying I fully agree. I got enough other things to take care of these days. Happy to outsource it to the great team at Tailscale.

                                                                                                                                      • aborsy 12 hours ago
                                                                                                                                        Preshared keys can be exchanged over PQ SSH. But they don't provide forward secrecy.

                                                                                                                                        One issue is that, it's not clear which PQ algorithm will survive.

                                                                                                                                        Hopefully, WG will avoid the mess and come up with a 4k LOC implementation.

                                                                                                                                        • tptacek 11 hours ago
                                                                                                                                          In the classical setting we're concerned about today, all the lattice constructions work fine. So far as we know today, there's no evidence yet that MLKEM has any attacks in a quantum setting worse than brute force. A lot of cryptographers that work in lattices continue to believe Frodo --- the unstructured lattice construction, the one that makes no arrangements to get an NTT speedup --- remains a conservative choice.
                                                                                                                                        • dataflow 12 hours ago
                                                                                                                                          > the security of the WireGuard protocol comes down to breaking that 256-bit ChaCha20 key, which isn't going to happen

                                                                                                                                          Could someone explain this? If AI can discover and exploit patterns in elliptic curves or prime numbers, why can't it do that for symmetric ciphers/CSPRGNs?

                                                                                                                                          • gertop 7 hours ago
                                                                                                                                            There is no basis for such claim other than hubris, in my (poorly informed, I'm sure) opinion. The same has been said of all ciphers before it, and many of them have now fallen.

                                                                                                                                            That being said chacha has a two things going for it:

                                                                                                                                            1. With every new generation of ciphers it seems to take longer for people to find vulnerabilities. It took 20 years for the first credible but still theoretical vulnerabilities to surface for AES. It's still fully unbroken as we near the 30 years mark.

                                                                                                                                            2. It being a stream cipher at least sidesteps all the problems relevant to many block ciphers modes (eg EBC, CBC) so there's that. As long as the PRNG and nonce are good, there will be no pattern to help break it. Of course it also means that a bad nonce or rng renders encryption ineffective, shrugs.

                                                                                                                                            • le-mark 2 hours ago
                                                                                                                                              Users get cyber downgraded on Claude researching blake2b hash distributions (uses chacha axr round function). Could be a general crypto hash restriction, but why would they downgrade if it’s impenetrable?
                                                                                                                                            • aborsy 12 hours ago
                                                                                                                                              Because symmetric ciphers don't involve patterns!
                                                                                                                                              • dataflow 11 hours ago
                                                                                                                                                > Because symmetric ciphers don't involve patterns!

                                                                                                                                                This makes no sense. How do you imagine they get broken then?

                                                                                                                                                • aborsy 10 hours ago
                                                                                                                                                  I don't imagine that they will be broken!
                                                                                                                                                  • dataflow 8 hours ago
                                                                                                                                                    I'm so confused, especially with the exclamations. Are you joking or trolling or something? We literally have ciphers from the past that were broken.
                                                                                                                                                    • parallax_error 6 hours ago
                                                                                                                                                      I guess they’re exaggerating a bit, as symmetric ciphers absolutely do have patterns. My understanding is that the patterns are pretty useless to an attacker (as far as we know) because there’s so much randomness from the key/IV/plaintext combined, so it’s almost impossible to reverse without the key. Maybe in the future there will be some crazy breakthroughs, and we’ll all have to start using OTPs for anything important!
                                                                                                                                                      • aborsy 5 hours ago
                                                                                                                                                        Symmetric ciphers like AES or ChaCha do not include the kind of mathematical patterns that you find in elliptic key cryptography or RSA using prime numbers. As a result, the attack surface is far smaller. Pure randomness is extended and distributed over data.

                                                                                                                                                        There is still a bit of other kind of probabilistic "pattern" so to speak that may shorten the search time, but that's true of most cipher with small key, short of information theoretic proof of security.

                                                                                                                                              • newman314 11 hours ago
                                                                                                                                                Here's to hoping for an updated iOS/macOS Wireguard clients. They have not been updated for years...
                                                                                                                                                • burnaway 15 hours ago
                                                                                                                                                  re: "I believe some VPN providers are already doing this." - dropping this here for review and feedback, it's work we have done a while ago and currently revising for improvements: https://www.ivpn.net/knowledgebase/general/quantum-resistant... (i work at IVPN)
                                                                                                                                                  • Kaliboy 14 hours ago
                                                                                                                                                    Wait what. Is that it?

                                                                                                                                                    This is what I already do for my services. They run on tailnet, but I needed to send the private key of certificates around to the edges servers hosting haproxy.

                                                                                                                                                    What I basically do is have each edge server generate a public/private key. I use ed25519 atm. They each report their public key to the certificate server and receive the keys specifically encrypted for them.

                                                                                                                                                    Seems like the same concept, instead of the PSK I'm sharing the certificates.

                                                                                                                                                    So if I understand correctly, changing from ed25519 to a more quantum resistant algorithm should be enough to be future proof.

                                                                                                                                                  • octoberfranklin 11 hours ago
                                                                                                                                                    Please use nondecreasing nonces instead of timestamps, like Rosenpass does.

                                                                                                                                                    Batteryless machines (routers, devboards, plus laptops when you accidentally drain the battery runs all the way to 0%) can't use wireguard to reach their NTP server because of this circular dependency.

                                                                                                                                                    • stego-tech 17 hours 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.

                                                                                                                                                      • ifloop 13 hours ago
                                                                                                                                                        nothing less was expected from the developer of pass.
                                                                                                                                                      • sylware 3 hours ago
                                                                                                                                                        I don't understand: are the recent papers about weakening _current_ 'post-quantum' encryption the doom of this very _current_ 'post-quantum' encryption??
                                                                                                                                                        • marcusfrex 9 hours ago
                                                                                                                                                          • nullc 16 hours 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.

                                                                                                                                                            • bonki 14 hours ago
                                                                                                                                                              Many years ago, I used haproxy as a multiplexing proxy which forwarded an incoming SSH connection to their respective internal server based on SNI (I wrapped SSH client connections inside openssl s_client). Vanilla SSH connections were forwarded to a dedicated honeypot server, ssh-over-tls was forwarded to its target server based on SNI, so this setup was invisible to nosy people probing the server. It was only a proof-of-concept I used briefly because someone on SO had said something like this can't be done and I took the challenge, but it was surprisingly simple. In other words, you can always roll your own PSK-like solution on top of SSH, depending on which hoops you want to jump through (convenience).
                                                                                                                                                              • thomashabets2 12 hours ago
                                                                                                                                                                I've tried to have them take patches to use TCPMD5 for PSK, but have failed.
                                                                                                                                                                • nullc 16 hours 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?)

                                                                                                                                                                  • adrian_b 16 hours ago
                                                                                                                                                                    There are various methods for generating pre-shared secret keys to be used only one time, for the establishment of a secure connection, and then never again.

                                                                                                                                                                    The only part that needs care is to use a protocol that would allow the resynchronization of the two parties when some connection attempts fail for various reasons, but after that, one party may believe that the connection has succeeded, while the other party thinks that it has failed, thus at the next connection attempt they may use other secret key values than expected by the other party.

                                                                                                                                                                    • nullc 15 hours ago
                                                                                                                                                                      Good point. Grandma can pair her bluetooth hearing aid. Jrandom-engineer should be able to pair their SSH connection to their jump server or home.
                                                                                                                                                                  • adrian_b 16 hours ago
                                                                                                                                                                    Some future version of OpenSSH will implement the recent RFC 10042, i.e. mlkem1024nistp384-sha384, which is stronger than the version of hybrid ML-KEM currently implemented in TLS 1.3 and OpenSSH, by using the minimum parameter sizes mandated by NSA in "Commercial National Security Algorithm Suite 2".
                                                                                                                                                                    • mort96 15 hours ago
                                                                                                                                                                      Okay? That's still not a pre-shared key, it still relies on combining elliptic curves and ML-KEM doesn't it?
                                                                                                                                                                      • adrian_b 15 hours ago
                                                                                                                                                                        That is indeed not pre-shared key, it was a response to "TLS is stuck with X25519MLKEM768", to show that OpenSSH is not stuck to that, but it is expected in a few months to support extra options.

                                                                                                                                                                        Unlike SSH, IPsec has always supported pre-shared keys and in the past I have used many VPNs based on IPsec with pre-shared secret keys.

                                                                                                                                                                        Early versions of TLS also supported pre-shared secret keys for connections where both the client and the server are authenticated. TLS 1.3 has retained only a small number of the options existing in earlier versions, and I do not remember seeing pre-shared keys among them, which is not too surprising, as the main use of TLS is for half-authenticated connections, where only the server is authenticated, while pre-shared secret keys are for connections between parties who already know each other.

                                                                                                                                                                        • nullc 15 hours ago
                                                                                                                                                                          I believe slipping a PSK into ssh would require a somewhat more extensive redesign of the protocol. The issue is the key agreement happens ahead of any authentication and any PSK would at least need to be user specific.
                                                                                                                                                                          • Kaliboy 14 hours ago
                                                                                                                                                                            Would it be feasible/easier to add a layer with better encryption on top of SSH?
                                                                                                                                                                            • Spivak 14 hours ago
                                                                                                                                                                              Like some sort of protocol that creates a virtual network perhaps.
                                                                                                                                                                        • nullc 15 hours ago
                                                                                                                                                                          kinda disappointing to just be at the minimum.

                                                                                                                                                                          E-521 ECDH is also about two and a half times as fast as P384 (ed448 about 4x as fast?) and it isn't like the ssh use-case cares about 18 more bytes or some kind of installed base of hardware acceleration.

                                                                                                                                                                          /me heads off to go invent E-1279 ECDH.

                                                                                                                                                                      • teravor 17 hours 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.
                                                                                                                                                                        • aaronmdjones 5 hours ago
                                                                                                                                                                          25 years of experience with TLS and IPsec has taught us that cipher agility is not a nice thing to have.
                                                                                                                                                                        • sigmar 17 hours 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 17 hours ago
                                                                                                                                                                          What a lovely update from a real human. Why does a simple message stand out so much these days.
                                                                                                                                                                          • n8m8 15 hours ago
                                                                                                                                                                            It's so cute that they call it SI in this article, took me a while to figure out what that meant :')
                                                                                                                                                                            • _joel 16 hours ago
                                                                                                                                                                              Just rot13 everything, twice for good measure. Foolproof.
                                                                                                                                                                              • smallmancontrov 16 hours 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.

                                                                                                                                                                                • cdelsolar 12 hours ago
                                                                                                                                                                                  Someone explain? What does ECC have to do with the new announcements?
                                                                                                                                                                                  • throawayonthe 7 hours ago
                                                                                                                                                                                    the announcements are about Elliptic Curve Cryptography
                                                                                                                                                                                • znpy 5 hours ago
                                                                                                                                                                                  > This is not an invitation to "let's all design it in a mailing list thread" or something. Rather, this is to inform you that things are in the works.

                                                                                                                                                                                  Doesn't this sound like a bit obnoxious ?

                                                                                                                                                                                  "we know what to do, don't even bother sending your ideas".

                                                                                                                                                                                  • XelNika 5 hours ago
                                                                                                                                                                                    Considering how WireGuard was originally released, I would have been surprised if v2 was any different. In my view, it's not so much "we know better", but more "I have a strong opinion on how to do things".
                                                                                                                                                                                  • h4kunamata 16 hours 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

                                                                                                                                                                                    • sedatk 11 hours ago
                                                                                                                                                                                      "No PSK" is the default on UniFi UI.
                                                                                                                                                                                    • tamimio 16 hours 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

                                                                                                                                                                                      • HackerThemAll 12 hours ago
                                                                                                                                                                                        What I am 200% sure about is that Jason will come up with something equally great and extraordinary.
                                                                                                                                                                                        • j45 14 hours ago
                                                                                                                                                                                          Since this is now on the radar, are there other wireguard type firewalls or mesh networks that are solving or have solved some of the things wireguard is looking to develop further?

                                                                                                                                                                                          While my attention is on this, I super appreciate any thoughts from other folks and projects on things to look at (and if something stands out to you, what that might be).

                                                                                                                                                                                          Thanks!

                                                                                                                                                                                          • simsbridge 4 hours ago
                                                                                                                                                                                            [dead]
                                                                                                                                                                                            • yoy0721 11 hours ago
                                                                                                                                                                                              [dead]
                                                                                                                                                                                              • ravivarmat 8 hours ago
                                                                                                                                                                                                [dead]
                                                                                                                                                                                                • yeestwind 14 hours ago
                                                                                                                                                                                                  [dead]
                                                                                                                                                                                                  • blusl0918 12 hours ago
                                                                                                                                                                                                    [dead]
                                                                                                                                                                                                    • verysmart 16 hours ago
                                                                                                                                                                                                      [dead]
                                                                                                                                                                                                      • ytxm 16 hours 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?
                                                                                                                                                                                                        • adrian_b 15 hours ago
                                                                                                                                                                                                          More precisely, they mandate that after this New Year, no new devices or products shall sign root certificates with algorithms that are not quantum-resistant, i.e. using non-hybrid algorithms with RSA or elliptic curves.

                                                                                                                                                                                                          Regarding the already existing devices or products, they may be used until the end of 2030, after which everything must support quantum-resistant algorithms.

                                                                                                                                                                                                          • verysmart 15 hours ago
                                                                                                                                                                                                            [dead]
                                                                                                                                                                                                            • ikiris 12 hours ago
                                                                                                                                                                                                              You might want to investigate the history of the NSA a bit. Try the keyworks differential cryptanalysis and DES
                                                                                                                                                                                                              • pocksuppet 11 hours ago
                                                                                                                                                                                                                Now try the keywords Dual_EC_DRBG.

                                                                                                                                                                                                                Do not use non-hybrid PQ technology. Hybrid encryption is a two-layer encryption - one PQ and one classical. It's secure if you don't break both. PQ encryption is in its infancy and keeps getting broken, like this week's Anthropic paper, so never trust it.

                                                                                                                                                                                                                • verysmart 12 hours ago
                                                                                                                                                                                                                  [dead]
                                                                                                                                                                                                            • bigfatkitten 13 hours ago
                                                                                                                                                                                                              They’ve been telling people to move away from non-PQ crypto for years.

                                                                                                                                                                                                              The problem they have is that industry is very much dragging its ass, making the existing PQC deadlines impossible to meet.

                                                                                                                                                                                                              • lazide 16 hours ago
                                                                                                                                                                                                                Maybe it’s because they finally have a class of exploits against PQ crypto?

                                                                                                                                                                                                                They’ve been known to do far dirtier tricks

                                                                                                                                                                                                                • mort96 15 hours ago
                                                                                                                                                                                                                  I don't think the NSA has 2^200 universes worth of quantum computers quite yet
                                                                                                                                                                                                                  • lazide 14 hours ago
                                                                                                                                                                                                                    They would be the ‘has no class of exploits and just brute forces everything’ approach.

                                                                                                                                                                                                                    With all their mathematicians, presumably they have better approaches.

                                                                                                                                                                                                                    As far as we can tell, no one has - or has developed - a working quantum computer more capable than a 5 year old at arithmetic yet. Pushing everyone to new algorithms with unproven track records is interesting eh?

                                                                                                                                                                                                                    • mort96 14 hours ago
                                                                                                                                                                                                                      I assumed you were referencing the recent "attack" on ML-DSA that Anthropic released.
                                                                                                                                                                                                                      • lazide 13 hours ago
                                                                                                                                                                                                                        Nope, just the plain text of the comments.
                                                                                                                                                                                                                    • verysmart 15 hours ago
                                                                                                                                                                                                                      [dead]
                                                                                                                                                                                                                  • protocolture 13 hours 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?

                                                                                                                                                                                                                    The guys that want encryption backdoors, including government chips soldered to every device you purchase, want me to change crypto mechanisms?

                                                                                                                                                                                                                    The guys vaccuming up all internet transmissions in the hopes they can decrypt them later want me to change crypto mechanisms?

                                                                                                                                                                                                                    I might have to think pretty hard about this one.

                                                                                                                                                                                                                    • verysmart 16 hours ago
                                                                                                                                                                                                                      [flagged]