Earlier quoted context omitted.
Sysdig released a blog on friday. "For runtime detection, one way to go about it is to watch for the loading of the malicious library by SSHD. These shared libraries often include the version in their filename." The blog has the actual rule content which I haven't seen from other security vendors https://sysdig.com/blog/cve-2024-3094-detecting-the-sshd-bac...
Thanks! That’s a little disappointing since I would have thought that the way it hooked those functions could’ve been caught by a generic heuristic but perhaps that’s more common than I thought.
Xzbot: Notes, honeypot, and exploit demo for the xz backdoor
341–350 of 500 posts
Re: Xzbot: Notes, honeypot, and exploit demo for the xz backdoor
#342Edit: I misunderstood what I was reading in the link below, my original comment is here for posterity. :) > From down in the same mail thread: it looks like the individual who committed the backdoor has made some recent contributions to the kernel as well... Ouch. https://www.openwall.com/lists/oss-security/2024/03/29/10 The OP is such great analysis, I love reading this kind of stuff!
Lasse Collin is not Jia Tan until proven otherwise.
Re: Xzbot: Notes, honeypot, and exploit demo for the xz backdoor
#343Earlier quoted context omitted.
For real, it's almost like a state-sponsored exploit. It's crafted and executed incredibly well, the performance issue feels like pure luck it got found.
Was the performance issue pure luck? Or was it a subtle bit of sabotage by someone inside the attacking group worried about the implications of the capability? If it had been successfully and secretly deployed, this is the sort of thing that could make your leaders much more comfortable with starting a "limited war". There are shades of "Setec Astronomy" here.
Re: Xzbot: Notes, honeypot, and exploit demo for the xz backdoor
#344Earlier quoted context omitted.
> The thing about port knocking is that if you're on a host where you don't have the ability to port-knock, then you're not able to connect. You can type http://hostname:porttoknock in a browser. As long as you're not behind a super restrictive gateway that doesn't let you connect to arbitrary ports, you're golden.
Likely won't be enough if you're behind CGNAT and you get a different public IP on different connections.
Re: Xzbot: Notes, honeypot, and exploit demo for the xz backdoor
#345Re: Xzbot: Notes, honeypot, and exploit demo for the xz backdoor
#346> Note: successful exploitation does not generate any log entries. Does this mean, had this exploit gone unnoticed, the attacker could have executed arbitrary commands as root without even a single sshd log entry on the compromised host regarding the 'connection'?
Yeah, but then you would have ssh traffic without a matching login. Wonder if any anomaly detection would work on that
Re: Xzbot: Notes, honeypot, and exploit demo for the xz backdoor
#347Earlier quoted context omitted.
Shutting down 99.9% of speculation on how the vulnerability was found in the first place.
(1) obviously not (2) they could just say they found it during some routine dependency review or whatever
Second, maybe a routine dependency review is how they _actually_ found it but they don’t want future people like this focusing too much on that otherwise they may try to mitigate, whereas now they may focus on something inane like a 0.5 second increase in sshd’s load time or whatever.
Re: Xzbot: Notes, honeypot, and exploit demo for the xz backdoor
#348It's pretty interesting that they didn't just introduce an RCE that anyone can exploit, it requires the attacker's private key. It's ironically a very security conscious vulnerability.
I suspect the original rationale is about preserving the longevity of the backdoor. If you blow a hole wide open that anyone can enter, it’s going to be found and shut down quickly. If this hadn’t had the performance impact that brought it quickly to the surface, it’s possible that this would have lived quietly for a long time exactly because it’s not widely exploitable.
Re: Xzbot: Notes, honeypot, and exploit demo for the xz backdoor
#349Earlier quoted context omitted.
We were lucky that the backdoor called attention to itself, because it impacted the performance off ssh and introduced valgrind warnings.
Doesn't that further suggest non-state actor(s)?
Re: Xzbot: Notes, honeypot, and exploit demo for the xz backdoor
#350Earlier quoted context omitted.
Security-by-obscurity is dumb, yes. But in the context of supply-chain exploits in the theme of this xz backdoor, this statement is also myopic: > If you want more secret bits which users need to know in order to access your system, increase your password lengths, or cryptographic key sizes. If your sshd (or any other exposed service) is backdoored, then the "effective bits" of any cryptographic key size is reduced t…
Chaining multiple different login system can make sense. A more sensible solution over port knocking would be an alternative sshd implementation with a tunnel to the second sshd implementation. Naturally the first one should not run as root (similar to the port knocking daemon). That way it would not be in clear text, and the number of bits of security will be order of magnitude larger even with very simple password.…