It'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.
If you think of it as a state sponsored attack it makes a lot of sense to have a "secure" vulnerability in system that your own citizens might use. It looks like the whole contribution to xz was an effort to just inject that backdoor. For example the author created the whole test framework where he could hide the malicious payload. Before he started work on xz, he made contribution to libarchive in BSD which created…
Xzbot: Notes, honeypot, and exploit demo for the xz backdoor
221–230 of 500 posts
Re: Xzbot: Notes, honeypot, and exploit demo for the xz backdoor
#222Earlier quoted context omitted.
Yes.. The RCE happens at the connection stage before anything is logged.
That's insane. How exactly does this happen? Are there no EDR/IDS who can detect an RCE at the connection stage?
Re: Xzbot: Notes, honeypot, and exploit demo for the xz backdoor
#223Has anyone tried the PoC against one of the anomalous process behavior tools? (Carbon Black, AWS GuardDuty, SysDig, etc.) I’m curious how likely it is that someone would have noticed relatively quickly had this rolled forward and this seems like a perfect test case for that product category.
I don’t think GuardDuty would catch it as it doesn’t look at processes like an EDR does (CrowdStrike, Carbon black), I don’t think sysdig would catch it as looks at containers and cloud infra. Handwaving some complexity here, as GD and sysdig could prob catch something odd via privileges gained and follow-on efforts by the threat actor via this exploit.
So imo means only EDRs (monitoring processes on endpoints) or software supply chain evaluations (monitoring sec problems in upstream FOSS) are most likely to catch the exploit itself.
Leads into another fairly large security theme interestingly - dev teams can dislike putting EDRs on boxes bc of the hit on compute and UX issues if a containment happens, and can dislike limits policy and limits around FOSS use. So this exploit hits at the heart of a org-driven “vulnerability” that has a lot of logic to stay exposed to or to fix, depending on where you sit. Security industry’s problem set in a nutshell.
Re: Xzbot: Notes, honeypot, and exploit demo for the xz backdoor
#224Earlier quoted context omitted.
So who's started scanning open source lib test cases for more stuff like this?
I think it would help to try and secure signing infrastructure as much as possible. First of all, try to have 3 devs for any given project (this is the most difficult step). Make sure logging into or changing any of the signing stuff requires at least 2 of the devs, one to initiate the JIT and one to monitor. Additionally, take supply chain steps like requiring independent approval for PRs and requiring the signing p…
Re: Xzbot: Notes, honeypot, and exploit demo for the xz backdoor
#225Earlier quoted context omitted.
They could announce it without revealing their detection method. I don't see what the extra indirection buys them.
Shutting down 99.9% of speculation on how the vulnerability was found in the first place.
(2) they could just say they found it during some routine dependency review or whatever
Re: Xzbot: Notes, honeypot, and exploit demo for the xz backdoor
#226Earlier quoted context omitted.
Do we have a detailed technical analysis of the code? I read a few analysis but they all seem preliminary. It is very useful to learn from the code.
There's a few links down at the bottom of the OP to quite detailed analysis. From there you could join a Discord where discussion is ongoing.
Re: Xzbot: Notes, honeypot, and exploit demo for the xz backdoor
#227Earlier quoted context omitted.
Yes. This would surely be prosecutable under the CFAA. Honestly, if I were involved in this, I'd hope that it was, say, the FBI that caught me. I think that'd be the best chance of staying out of the Guantanamo Bay Hilton, laws be damned.
Even with the MIT disclaimer and the author not being the distributor or have any relationship with the distributor. Publishing vulnerable open source software to GitHub with a disclaimer that says it isn’t fit for any purpose seems like a bit of an oversight of using MIT license in distros to me.
You also cannot avoid criminal charges for a crime simply by shouting "don't blame me"
Re: Xzbot: Notes, honeypot, and exploit demo for the xz backdoor
#228Earlier quoted context omitted.
What if the knocking sequence was derived from a TOTP secret?
Don't have to do anything too complicated. Here's the knocker code in a short Bash script, produced by GPT4: ~ % gpt4 'write a very short bash script that takes the number stored in ~/.ssh/knock_seq, increments it by 1 and saves it to the file. It then takes the new number and concatenates it with the value stored in the file ~/.ssh/secret. It pipes the resulting string to sha1sum, spitting out binary. It then takes…
Re: Xzbot: Notes, honeypot, and exploit demo for the xz backdoor
#229It'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.
This is called NOBUS: https://en.wikipedia.org/wiki/NOBUS
Re: Xzbot: Notes, honeypot, and exploit demo for the xz backdoor
#230Is there anything actually illegal here? Like is it a plausible “business” model for talented and morally compromised developers to do this and then sell the private key to state actors without actually breaking in themselves or allowing anyone else to break in. Edit: MIT license provides a pretty broad disclaimer to say it isn’t fit for any purpose implied or otherwise.
One of those things is going to be fraud: if the maintainer is intentionally installing backdoors into their software and not telling the user, there's going to be some fraud-like statute that they'll be liable for.