News for hackers. Stuff that matters.
Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by haswell on Monday April 01, 2024 @01:09PM (#39896392)
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 backd... by eli on Monday April 01, 2024 @03:54PM (#39898419)
More to the point it prevents your enemies from using the exploit against friendly targets.

The tradeoff is that, once you find it, it's very clearly a backdoor. No way you can pretend this was an innocent bug.

Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by declan_roberts on Monday April 01, 2024 @02:09PM (#39897179)
I agree that this is probably about persistence. Initially I thought the developer was playing the long-con to dump some crypto exchange and make off with literally a billion dollars or more.

But if that was the case they wouldn't bother with the key. It'd be a one-and-done situation. It would be a stop-the-world event.

Now it looks more like nation-state spycraft.

Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by btown on Monday April 01, 2024 @03:18PM (#39897999)
It's worth also noting that the spycraft involved a coordinated harassment campaign of the original maintainer, with multiple writing styles, to accelerate a transition of maintainership to the attacker:

https://www.mail-archive.com/[email protected]/msg00566.h...

https://www.mail-archive.com/[email protected]/msg00568.h...

https://www.mail-archive.com/[email protected]/msg00569.h...

While this doesn't prove nation-state involvement, it certainly borrows from a wide-ranging playbook of techniques.

Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by allanbreyes on Monday April 01, 2024 @04:24PM (#39898785)
Ugh, that this psyops sockpuppetry may have started or contributed to the maintainer's mental health issues seems like the most depressing part of all this. Maintaining OSS is hard enough.
Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by btown on Monday April 01, 2024 @04:55PM (#39899213)
I hope that one takeaway from this entire situation is that if you're a maintainer and your users are pushing you outside your levels of comfort, that's a reflection on them, not on you - and that it could be reflective of something far, far worse than just their impatience.

If you, as a maintainer, value stability of not only your software but also your own mental health, it is entirely something you can be proud of to resist calls for new features, scope increases, and rapid team additions.

Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by heavyset_go on Monday April 01, 2024 @07:49PM (#39900799)
Yeah, that was a hard read. I think it highlights the importance of emotionally distancing yourself from your projects.

It's also interesting because it exploits the current zeitgeist when it comes to maintainers' responsibilities to their users and communities. Personally, I think it puts too much expectation on maintainers' shoulders, especially when they're working for free.

Personally, I think maintainers are doing favors for users, and if they don't like how the project is progressing or not, then too bad. That's not a popular sentiment, though.

Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by __MatrixMan__ on Monday April 01, 2024 @04:52PM (#39899183)
No good deed goes unpunished, what a shame.
Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by Delk on Monday April 01, 2024 @05:25PM (#39899561)
Probably didn't start them, considering that he already mentioned (long-term) mental health issues in the mailing list discussion in which the (likely) sock puppets started making demands.

But it's hard to see the whole thing helping, and it is some combination of depressing and infuriating. I hope he's doing ok.

Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by tapland on Monday April 01, 2024 @07:24PM (#39900586)
You only push after you've established your guy as the likely successor. If this was coordinated it was not the first move.
Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by mrkramer on Monday April 01, 2024 @04:26PM (#39898806)
At first I thought the guy who did this was a lone wolf but now I believe it was indeed state actor. They coordinated and harassed original maintainer into giving them access to the project, basically they hijacked the open source project. The poor guy(the original maintainer) was alone against state actor who was persistent with the goal of hijacking and then backdooring the open source project.

It seems like they were actively looking[0] which open source compression library they can inject with vulnerable code and then exploit and backdoor afterwards.

[0] https://lwn.net/Articles/967763/

Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by asveikau on Monday April 01, 2024 @05:03PM (#39899304)
Reading that link, it seems like the vulnerability is that a file name gets printed, so you can add terminal control characters in a file name and have it printed.

https://github.com/libarchive/libarchive/pull/1609#issuecomm...

Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by pyinstallwoes on Tuesday April 02, 2024 @03:33AM (#39903218)
> “Recently I've worked off-list a bit with Jia Tan on XZ Utils and”

> "In 2021, JiaT75 submitted a pull request to the libarchive repository with the title ‘Added error text to warning when untaring with bsdtar’ which seemed legitimate at first glance. "

Seems “Jia” is related to both

Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by sofixa on Tuesday April 02, 2024 @06:32AM (#39904158)
> At first I thought the guy who did this was a lone wolf but now I believe it was indeed state actor. They coordinated and harassed original maintainer into giving them access to the project, basically they hijacked the open source project. The poor guy(the original maintainer) was alone against state actor who was persistent with the goal of hijacking and then backdooring the open source project.

It could just as easily be a lone wolf capable of writing in different styles (really not difficult if one spends enough time online, one gets exposed to all sorts of styles) or even just your run of the mill criminal gang.

In fact, "multiaccount" cheating (where a single person has multiple accounts that interact with one another in a favourable manner, e.g. trading for stuff for reduced fees, or letting themselves be killed to pad stats, or expressing opinions leaving the impression of mass support, etc.) has been present in many MMO games for more than a decade. I recall an online game I was really into back in high school, eRepublik, which simulated real world politics, economics and warfare (in a really dumbed down version of course), and multiacounts were especially prevalent in politics, where candidates for election would often be padded by fake groups, or even entire countries being taken over by a gang of real people with like ten accounts each.

The complexity is nothing new. The only indicator this could be a state actor is the long con aspect of it. The attacker(s) were looking into years between starting and actually being able to exploit.

Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by Voultapher on Monday April 01, 2024 @04:46PM (#39899101)
I mean one person can use sock puppet accounts to write emails.
Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by yread on Monday April 01, 2024 @05:13PM (#39899418)
Maybe they weren't all sockpuppets. Here Jigar Kumar was nitpicking Jia Tan's changes:

https://www.mail-archive.com/[email protected]/msg00556.h...

That was not necessary to gain trust. Writing style is different, too. Later when Jia gained commit access he reminds him to merge it.

Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by asveikau on Monday April 01, 2024 @06:47PM (#39900302)
This looks like a very phony "debate".

I think the most convincing case made about the sock puppets is around account creation dates, and also people disappearing after they get what they need. Like Jigar disappearing after Jia becomes maintainer. Or the guy "misoeater19" who creates his debian bug tracker account to say that his work is totally blocked on needing xz 5.6.1 to be in debian unstable.

Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by pyinstallwoes on Tuesday April 02, 2024 @03:35AM (#39903227)
Ah, the good ol’ lever of urgency. Urgency frequency smells of deception.
Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by barkingcat on Monday April 01, 2024 @05:48PM (#39899787)
that's precisely what sock puppetry does ... talk/write in a different writing style to make others believe it's different people.
Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by bdowling on Tuesday April 02, 2024 @01:05AM (#39902569)
For all we know there is a whole cyber-squadron (or whatever their military units are called) behind Jia Tan and other accounts.
Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by furstenheim on Monday April 01, 2024 @05:50PM (#39899810)
I actually wondered how many packages they harassed until they got access to one such
Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by metrxqin on Tuesday April 02, 2024 @01:10AM (#39902591)
I'm literally shocked by the conversations in the mail-list, it's blatantly an exploitation of others' kindness.
Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by meowface on Monday April 01, 2024 @03:01PM (#39897792)
>But if that was the case they wouldn't bother with the key. It'd be a one-and-done situation. It would be a stop-the-world event.

Why not? It's possible someone else could've discovered the exploit before the big attack but decided not to disclose it. Or that they could've disclosed it and caused a lot of damage the attacker didn't necessarily want. And they easily could've been planning both a long-term way to access a huge swath of machines and also biding their time for a huge heist.

They have no reason to not restrict the backdoor to their personal use. And it probably is spycraft of some sort, and I think more likely than not it's a nation-state, but not necessarily. I could see a talented individual or group wanting to pull this off.

Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by varenc on Monday April 01, 2024 @05:42PM (#39899717)
I think we need to consider the context. The attacker ultimately only had control over the lzma library. I'm skeptical that there's an innocent looking way that lzma could have in the open introduced an "accidental" RCE vuln that'd affect sshd. Of course I agree that they also wanted an explicit stealth backdoor for all the other reasons, but I don't think a plausibly deniable RCE or authentication bypass vuln would have even been possible.
Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by juitpykyk on Monday April 01, 2024 @06:37PM (#39900218)
You're talking as if securing a backdoor with public cryptography is some unimaginable feat of technology.

It's literally a couple hours work.

Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by kbenson on Monday April 01, 2024 @06:48PM (#39900311)
I don't think they were using complexity as the reason for that assumption, but instead goals. Adding security doesn't require a nation state's level of resources, but it is a more attractive feature for a nation state that wants to preserve it over time and prevent adversaries from making use of it.
Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by heavyset_go on Monday April 01, 2024 @07:43PM (#39900743)
This makes sense in closed source products where you'll never get to audit the source for such exploits, but little sense in open source projects where anyone can audit it.

That's to say an enterprise router or switch would likely have secured exploits put there by corporate and national security agencies, whereas open source exploits would benefit from the probable deniability.

Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by neodymiumphish on Monday April 01, 2024 @06:51PM (#39900333)
And on the contrary, creating a vulnerability that’s not identifiable to a limited attack group provides for a bit more deniability and anonymity. It’s hard to say which is more favorable by a nation-state actor.
Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by usrusr on Monday April 01, 2024 @07:24PM (#39900587)
An interesting angle: if this was somehow observed in use instead of getting discovered without observing use, there would be a glaring bright cui bono associated with what it was being used for.

Theoretically, I could even imagine that public key security motivated by some "mostly benign" actor who fell in love with the question "could I pull this off?" dreading the scenario of their future hacker superpower falling in the wrong hands. It's not entirely unthinkable that an alternative timeline where this was never discovered would only ever see this superbackdoor getting used for harmless pranks, winning bets and the like. In this unlikely scenario, the discovery, through the state actor and crime syndicate activities undoubtedly inspired by the discovery, would paradoxically lead to a less safe computing world than the alternative timeline where the person with the key had free RCE almost everywhere.

Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by justinclift on Monday April 01, 2024 @07:33PM (#39900654)
It'll be kind of tragic if this backdoor turns out to be the developer's pet "enable remote debugging" code, and they didn't mean for it to get out into a release. ;)
Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by unkulunkulu on Monday April 01, 2024 @09:46PM (#39901524)
I would be scared to work near a person who writes his debugging tools this way :D
Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by justinclift on Tuesday April 02, 2024 @12:52AM (#39902499)
Heh Heh Heh

"It seemed like a good idea at the time" is a pretty common story though. ;)

Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by parl_match on Tuesday April 02, 2024 @12:01AM (#39902258)
Inserting a change like this as a one off would cause lots of scrutiny, which would probably get it detected. Instead, the bad actor spent years contributing to the project before dropping this.

So, while writing the exploit might be a couple of hours work, actually pulling it off is quite a bit more difficult.

Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by londons_explore on Tuesday April 02, 2024 @08:13AM (#39904848)
Plenty of open source maintainers spend only a few hours a month on their projects.

For many projects, that is enough to become the main contributor.

Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by heavyset_go on Monday April 01, 2024 @07:39PM (#39900710)
> Now it looks more like nation-state spycraft.

I disagree, plenty of exploits implemented WireGuard-like crypto key access to them.

Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by chpatrick on Monday April 01, 2024 @05:04PM (#39899313)
Also people can come and immediately undo whatever you did if it's not authenticated.
Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by Beijinger on Monday April 01, 2024 @05:58PM (#39899888)
This is just a safety measure that it does not blow up in your own face (country).
Re:Xzbot: Notes, honeypot, and exploit demo for the xz backd... by CommitSyn on Monday April 01, 2024 @11:23PM (#39902072)
Not only did it mandate authentication, but there was also a Killswitch, and there's no other reason for that than because you have reasons to suspect someone may have access to this sensitive world-stopper exploit and use it against you. That leaves simply a (reasonably, but still) paranoid person, and people worried about that+consequences are unlikely to have the mental well-being to pull this off, or, a group of people.