Live data from Hacker News

Backdoor in upstream xz/liblzma leading to SSH server compromise

openwall.com

271–280 of 1001 posts

Re: Backdoor in upstream xz/liblzma leading to SSH server compromise

#271
post #67

The discussion to upload it to Debian is interesting on its own https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1067708

Wow, that's a lot of anonymous accounts adding comments there urging for a fast merge! And this "Hans Jansen" guy is apparently running around salsa.debian.org pushing for more updates in other projects as well: https://salsa.debian.org/users/hjansen/activity

[deleted]

Re: Backdoor in upstream xz/liblzma leading to SSH server compromise

#272
post #67

The discussion to upload it to Debian is interesting on its own https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1067708

Wow, that's a lot of anonymous accounts adding comments there urging for a fast merge! And this "Hans Jansen" guy is apparently running around salsa.debian.org pushing for more updates in other projects as well: https://salsa.debian.org/users/hjansen/activity

And now we see why I don't trust anons, aliases, or anime characters to make contributions.

My GitHub says exactly who I am!

Re: Backdoor in upstream xz/liblzma leading to SSH server compromise

#273
post #8

> openssh does not directly use liblzma. However debian and several other distributions patch openssh to support systemd notification, and libsystemd does depend on lzma. The systemd notification protocol could have been as simple as just writing a newline to a pipe, but instead you have to link to the libsystemd C library, so now security-critical daemons like openssh have additional dependencies like liblzma loaded…

[deleted]

Re: Backdoor in upstream xz/liblzma leading to SSH server compromise

#274
post #123

Earlier quoted context omitted.

I don't want to read too much into it, but the person (supposedly) submitting the PR seems to work at 1Password since December last year, as per his Linkedin. (And his Linkedin page has a link to the Github profile that made the PR).

Yeah the GitHub account looks really really legitimate. Maybe it was compromised though?

The 2 GMail accounts are 85% / mainly associated with XZ work, since 2021, per searching for them explicitly via Google.

Re: Backdoor in upstream xz/liblzma leading to SSH server compromise

#275
post #214

Yikes! Do you have any info on the individual's background or possible motivations?

I would presume it's a state actor. Generally in the blackhat world, attackers have very precise targets. They want to attack this company or this group of individuals. But someone who backdoors such a core piece of open source infrastructure wants to cast a wide net to attack as many as possible. So that fits the profile of a government intelligence agency who is interested in surveilling, well, everything. Or it co…

According to top comment he committed multiple binary files to xz for the last two years.

Most likely this is not the first backdoor, just the first one to be discovered, so it wasn't two years of work until there were results.

But I still agree that he's probably a state actor.

Re: Backdoor in upstream xz/liblzma leading to SSH server compromise

#276

Fascinating. Just yesterday the author added a `SECURITY.md` file to the `xz-java` project. > If you discover a security vulnerability in this project please report it privately. *Do not disclose it as a public issue.* This gives us time to work with you to fix the issue before public exposure, reducing the chance that the exploit will be used before a patch is released. Reading that in a different light, it says giv…

Honestly it seems like a state-based actor hoping to get whatever high value target compromised before it's made public. Reporting privately buys them more time, and allows them to let handlers know when the jig is up.

Re: Backdoor in upstream xz/liblzma leading to SSH server compromise

#277
post #42

Very annoying - the apparent author of the backdoor was in communication with me over several weeks trying to get xz 5.6.x added to Fedora 40 & 41 because of it's "great new features". We even worked with him to fix the valgrind issue (which it turns out now was caused by the backdoor he had added). We had to race last night to fix the problem after an inadvertent break of the embargo. He has been part of the xz proj…

the account was either sold or stolen

Re: Backdoor in upstream xz/liblzma leading to SSH server compromise

#278
Oof, this is on my Sid laptop:

  {0}[calvinow@mozart ~] dpkg-query -W liblzma5
  liblzma5:amd64  5.6.0-0.2
  {0}[calvinow@mozart ~] hexdump -ve '1/1 "%.2x"' /lib/x86_64-linux-gnu/liblzma.so.5 | grep -c f30f1efa554889f54c89ce5389fb81e7000000804883ec28488954241848894c2410
  1
Glad I stopped running sshd on my laptop a long time ago... still probably going to reinstall :/

Re: Backdoor in upstream xz/liblzma leading to SSH server compromise

#280
post #117
post #84

Is this a crime? Has anyone been prosecuted for adding a backdoor like this?

Has anyone been prosecuted for adding a backdoor Google up Randal Schwartz. Caution: clickhole.

Seems a little different. Based on a quick read, he gained unauthorized access to systems.

In this case, backdoor code was offered to and accepted by xz maintainers.

Post reply on HN