News for hackers. Stuff that matters.
Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by quotemstr on Saturday March 30, 2024 @07:21PM (#39879620)
Doesn't matter. A malicious sshd able to run commands arbitrary users can just run malicious commands as those users.

We'd need something more like a cryptographically attested setreuid() and execve() combination that would run only commands signed with the private key of the intended user. You'd want to use a shared clock or something to protect against replay attacks

Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by kbolino on Saturday March 30, 2024 @07:25PM (#39879640)
Yes, this won't directly protect against an attacker whose goal is to create a botnet, mine some crypto on your dime, etc. However, it will protect against corruption of the O/S itself and, in tandem with other controls, can limit the abilities an attacker has, and ensure things like auditing are still enforced (which can be tied to monitoring, and also used for forensics).

Whether it's worth it or not depends on circumstances. In many cloud environments, nuking the VM instance and starting over is probably easier than fiddling with SELinux.

Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by CanaryLayout on Saturday March 30, 2024 @11:28PM (#39881132)
even easier is to STOP HOSTING SSHD ON IPV4 ON CLEARNET

at minimum, ipv6 only if you absolutely must do it (it absolutely cuts the scans way down)

better is to only host it on vpn

even better is to only activate it with a portknocker, over vpn

even better-better is to set up a private ipv6 peer-to-peer cloud and socat/relay to the private ipv6 network (yggdrasil comes to mind, but there's other solutions to darknet)

your sshd you need for server maintenance/scp/git/rsync should never be hosted on ipv4 clearnet where a chinese bot will find it 3 secs after the route is established after boot.

Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by alrs on Sunday March 31, 2024 @01:45AM (#39881765)
Who cares about scans? Who cares if a scan comes in 4 or 6?
Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by kbolino on Sunday March 31, 2024 @09:45AM (#39884197)
Forget IPv6, just moving SSH off of port 22 stops the vast majority of drive-by attacks against sshd on the open Internet.
Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by account42 on Friday April 05, 2024 @10:27AM (#39942771)
I imagine it stops some non-targeted attempts that simply probe the entire v4 range, which is not feasible with v6. But yeah, not really buying you much, especially if there is any publicly listed service on that IP.
Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by dvdkon on Sunday March 31, 2024 @03:37AM (#39882245)
How about making ssh as secure as (or more secure than) the VPN you'd put it behind? Considering the amount of vulnerabilities in corporate VPNs, I'd even put my money on OpenSSH today.

It's not like this is SSH's fault anyway, a supply chain attack could just as well backdoor some Fortinet appliance.

Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by formerly_proven on Sunday March 31, 2024 @06:44AM (#39883084)
Honestly the only VPN I'd rank above ssh in terms of internet-worthiness is WireGuard.
Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by versteegen on Sunday March 31, 2024 @09:56AM (#39884290)
Defence in depth. Which of your layers is "more secure" isn't important if none are "perfectly secure", so having an extra (independent) layer such as a VPN is a very good idea.
Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by dvdkon on Monday April 01, 2024 @02:15AM (#39891336)
You have to decide when to stop stacking, otherwise you'd end up gating access behind multiple VPNs (and actually increasing your susceptibility to hypothetical supply-chain attacks that directly include a RAT).

I'd stop at SSH, since I don't see a conceptual difference to how a VPN handles security (unless you also need to internally expose other ports).

Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by xorcist on Sunday March 31, 2024 @12:23PM (#39885585)
OpenSSH has a much smaller attack surface, is thoroughly vetted by the best brains on the planet, and is privilege separated and sandboxed. What VPN software comes even close to that?

The only software remotely in the same league is a stripped down Wireguard. There is a reason the attacker decided to attack liblzma instead of OpenSSH.

Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by eklitzke on Sunday March 31, 2024 @03:59PM (#39887525)
This is a joke right?

If you have password authentication disabled then it shouldn't matter how many thousands of times a day people are scanning and probing sshd. Port knockers, fail2ban, and things of that nature are just security by obscurity that don't materially increase your security posture. If sshd is written correctly and securely it doesn't matter if people are trying to probe your system, if it's not written correctly and securely you're SOL no matter what.

Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by eto-san on Sunday March 31, 2024 @07:44PM (#39889355)
But ssh is written correctly. Now that other thing isn't. :D

I fail to see a problem here.