today at 2:53 AM
> 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?
today at 3:00 AM
Because symmetric ciphers don't involve patterns!
yesterday at 9:47 PM
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!
yesterday at 10:22 PM
> 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?
yesterday at 10:23 PM
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.
today at 2:44 AM
yesterday at 11:22 PM
> easily scanned for.
unless you use IP whitelisting
today at 12:16 AM
By definition that would not be a public, open port.
today at 2:09 AM
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.
today at 2:51 AM
TCPMD5 is a really terrible hack. Authentication is better done at either the application layer, or the VPN layer.
yesterday at 11:31 PM
Which is great if you're always behind a particular IP. As for the rest of the world...
today at 1:40 AM
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.
today at 2:43 AM
Don't forget to add the IP blocks of your new provider, if you ever decide to switch...
yesterday at 10:27 PM
This is an argument for security-through-obscurity.
yesterday at 10:54 PM
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.
yesterday at 11:11 PM
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.
today at 12:39 AM
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.
today at 12:48 AM
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.
today at 1:59 AM
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.
yesterday at 11:45 PM
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.
today at 2:12 AM
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.
yesterday at 11:47 PM
> 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.
today at 2:46 AM
> 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.
today at 1:24 AM
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.
today at 12:51 AM
Where is obscurity defined as low/no entropy?
yesterday at 11:59 PM
unless its 4, of course
yesterday at 11:55 PM
RSA actually is security through obscurity, where the obscurity is that nobody will figure out practical factoring.
today at 12:56 AM
> 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.
today at 3:02 AM
>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.
yesterday at 11:01 PM
The NSA itself has a secret suite of cryptographic primitives for this exact reason.
https://en.wikipedia.org/wiki/NSA_Suite_A_Cryptography
today at 12:08 AM
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.
today at 12:40 AM
“Security through obscurity” refers to the algorithm not any key material.
today at 2:01 AM
Yes, it refers to it somewhat obscurely.
yesterday at 11:13 PM
Explain how one time pad is security by obscurity.
yesterday at 11:24 PM
Because the pad is not visible to those you want to keep the communication secure from. The pad is 'obscured'.
today at 12:05 AM
That's not what the phrase means: https://en.wikipedia.org/wiki/Kerckhoffs%27s_principle
today at 12:17 AM
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.
today at 12:02 AM
We just call those secrets in the biz.
today at 12:01 AM
yesterday at 11:16 PM
It's just dark turtles all the way down
today at 1:58 AM
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!?!?”
yesterday at 11:33 PM
[dead]
yesterday at 10:52 PM
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.
yesterday at 11:06 PM
yesterday at 11:13 PM
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.
yesterday at 11:35 PM
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.
yesterday at 11:50 PM
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.
today at 1:04 AM
yesterday at 11:28 PM
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.
today at 12:12 AM
There's nothing wrong with obscurity, as long as it's not your only line of defence.
yesterday at 11:03 PM
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"
yesterday at 11:07 PM
Layered security*
yesterday at 10:51 PM
Security-through-obscurity is another slice of Swiss cheese, albeit one with a big hole.
yesterday at 10:26 PM
I would hardly consider that "dangerous."
yesterday at 10:28 PM
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.
today at 2:33 AM
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.
yesterday at 10:48 PM
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.
today at 12:22 AM
> 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.
yesterday at 10:50 PM
Eh, many crypto stacks are full of holes and exploits
yesterday at 10:49 PM
It’s been awhile, but there have been exploits. Also constant attempts.
yesterday at 11:39 PM
[dead]
today at 2:10 AM
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.
today at 3:07 AM
Consensus is, it's fine for AES-128 too.
- https://words.filippo.io/128-bits/ - https://news.ycombinator.com/item?id=47836784
yesterday at 10:53 PM
Hm how do you manage the keys? I have guesses but figured I'd just ask.
yesterday at 11:38 PM
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?
yesterday at 11:54 PM
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.
yesterday at 10:57 PM
Are pre shared keys the peer keys? Or something separate?
yesterday at 11:04 PM
No, because in a config you have two keys:
[Peer]
PublicKey = abc...
PresharedKey = xyz...today at 12:22 AM
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".
yesterday at 10:25 PM
You must think I'm crazy having run many servers with public SSH ports since 1996. I remember the telnet days...
yesterday at 10:34 PM
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.
today at 1:15 AM
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?
yesterday at 10:36 PM
Really lovely even-keeled statement that makes me feel like Wireguard continues to be in good hands.
today at 12:26 AM
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.
today at 2:25 AM
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.
today at 1:09 AM
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.
yesterday at 9:50 PM
Thank you, Jason, for your continued work on this!
yesterday at 11:53 PM
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.
today at 2:38 AM
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.
today at 12:34 AM
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?
today at 12:21 AM
How are you going to get a reliable co-maintainer without money?
I hear Jia Tan is interested.
yesterday at 10:31 PM
tailscale has to get onboard
yesterday at 11:54 PM
That's like saying git can't be improved unless GitHub gets on board?
today at 12:30 AM
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.
today at 1:04 AM
That’s how I see it and I agree
today at 2:39 AM
What I am 200% sure about is that Jason will come up with something equally great and extraordinary.
yesterday at 11:25 PM
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)
today at 12:13 AM
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.
yesterday at 10:08 PM
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
yesterday at 10:16 PM
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.
today at 12:52 AM
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).
today at 2:11 AM
I've tried to have them take patches to use TCPMD5 for PSK, but have failed.
yesterday at 10:38 PM
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?)
yesterday at 11:04 PM
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.
yesterday at 11:14 PM
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.
yesterday at 10:56 PM
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".
yesterday at 11:13 PM
Okay? That's still not a pre-shared key, it still relies on combining elliptic curves and ML-KEM doesn't it?
yesterday at 11:28 PM
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.
yesterday at 11:16 PM
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.
today at 12:21 AM
Would it be feasible/easier to add a layer with better encryption on top of SSH?
today at 12:32 AM
Like some sort of protocol that creates a virtual network perhaps.
yesterday at 11:11 PM
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.
yesterday at 10:01 PM
And this is how you should write technical updates. Simple, concise, to the point, and reassuring.
Thanks for the great work! PSK WG FTW.
today at 1:26 AM
nothing less was expected from the developer of pass.
yesterday at 9:46 PM
> 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)
yesterday at 10:29 PM
Or use two devices, a speaker and a microphone, no network.
yesterday at 10:03 PM
What a lovely update from a real human. Why does a simple message stand out so much these days.
yesterday at 11:58 PM
It's so cute that they call it SI in this article, took me a while to figure out what that meant :')
yesterday at 10:46 PM
Just rot13 everything, twice for good measure. Foolproof.
yesterday at 10:38 PM
A bunch of insane over reactions. There's literally no indication anything is wrong, other than people reading between the lines, because they're desperate for something interesting to happen.
yesterday at 10:45 PM
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?
yesterday at 11:15 PM
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.
yesterday at 11:41 PM
Its more NSA scare tactics to get people to adopt standards they control. If you think the NSA is looking out for the general public, I have a bridge in Brooklyn to sell you. These people have literal data centers dedicated to storing your pi, and have been caught defying every law in the books when it comes to spying on US citizens (and foreign citizens).
I personally think every NSA employee deserves an early retirement in a 10x10 room with a concrete bed.
today at 2:34 AM
You might want to investigate the history of the NSA a bit. Try the keyworks differential cryptanalysis and DES
today at 2:43 AM
I love to laugh at people like you who think institutions from the 50s and 60s have some fundamental values they've carried throughout the years, you're all such suckers. You love to forget how these same groups have contributed to mass killing across the world, the countless backdoors that we know about, completely ignore Snowden and the 1.5 million sq ft datacenter in Utah where they're storing all your pi.
today at 1:16 AM
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.
yesterday at 10:54 PM
Maybe it’s because they finally have a class of exploits against PQ crypto?
They’ve been known to do far dirtier tricks
yesterday at 11:14 PM
I don't think the NSA has 2^200 universes worth of quantum computers quite yet
yesterday at 11:36 PM
I'm not in a hurry to run in the direction the NSA is pointing at and telling everyone to run too, they're no friend of encryption, and actively try to undermine it however possible.
today at 12:07 AM
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?
today at 12:13 AM
I assumed you were referencing the recent "attack" on ML-DSA that Anthropic released.
today at 1:15 AM
Nope, just the plain text of the comments.
today at 1:54 AM
>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.
yesterday at 10:50 PM
[flagged]
yesterday at 11:31 PM
yesterday at 10:08 PM
> 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.
today at 2:13 AM
Someone explain? What does ECC have to do with the new announcements?
yesterday at 9:50 PM
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.
yesterday at 10:52 PM
>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
today at 12:23 AM
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!
today at 2:51 AM
[dead]
today at 12:56 AM
[dead]