[dead]
why is that?
Re:Show HN: A WireGuard Powered Remote Shell
by hendersoon on Sunday May 12, 2024 @10:36AM
(#40334807)
WG itself doesn't support user authentication of any kind, it's just a tunnel. If you have the right key and send a properly signed packet WG will pass it. Encryption keys are not authentication in of themselves.
> properly signed packet
How would an adversary do this without the private key?
Wireguard uses ChaCha20Poly1305, an AEAD scheme. The first A stands for Authenticated.
Re:Show HN: A WireGuard Powered Remote Shell
by yjftsjthsd-h on Sunday May 12, 2024 @11:11AM
(#40335110)
If the tool runs in userspace and authenticates with a key stored in the user's home directory, isn't it authenticating the user? AIUI this isn't running a generic tunnel; it's shuffling packets inside the program and then putting WG UDP on the wire.
Re:Show HN: A WireGuard Powered Remote Shell
by arrakeenrevived on Sunday May 12, 2024 @11:01AM
(#40335042)
This is pedantism, and is also just wrong. "if you have the right key" IS authentication. Encryption keys are used as a form as authentication all the time, it's one of the main use cases of public/private key encryption. I challenge you to explain how OpenSSH does non-password authentication without referring to encryption.
Authentication just means proving who or what you are. Secret keys, whether they be passwords or encryption keys, are one of the primary ways to do this. Just because the key is also used for something else in addition to, or as part of, that process doesn't change it from being authentication.
Re:Show HN: A WireGuard Powered Remote Shell
by yjftsjthsd-h on Sunday May 12, 2024 @11:15AM
(#40335141)
Well, regular WG authenticates at the host level (roughly), not the user level, which can matter. I think this actually does auth at the user level, but there is some nuance there.
Re:Show HN: A WireGuard Powered Remote Shell
by beeboobaa3 on Sunday May 12, 2024 @11:37AM
(#40335289)
...much like an ssh key?
Re:Show HN: A WireGuard Powered Remote Shell
by lyu07282 on Sunday May 12, 2024 @11:57AM
(#40335429)
Which can have a passphrase and an agent, all sorts of MFA. One benefit to wireguard though is it's using UDP with a much less noisy handshake, you will never even know if the port you tried connecting to runs it (if your firewall is configured correctly). It's much more stealthy, an ssh server will pronounce it's version banner and public host key to literally anyone.