News for hackers. Stuff that matters.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by rwmj on Friday March 29, 2024 @12:55PM (#39866275)
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 project for 2 years, adding all sorts of binary test files, and to be honest with this level of sophistication I would be suspicious of even older versions of xz until proven otherwise.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by move-on-by on Friday March 29, 2024 @01:18PM (#39866551)
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 give me time to adjust my exploits and capitalize on any targets. Makes me wonder what other vulns might exist in the author's other projects.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ncr100 on Friday March 29, 2024 @03:22PM (#39867960)
Security Researchers: Is this request-for-private-disclosure + "90-days before public" reasonable?

It's a SEVERE issue, to my mind, and 90 days seems too long to me.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by bawolff on Friday March 29, 2024 @04:12PM (#39868502)
Whether its reasonable is debatable, but that type of time frame is pretty normal for things that aren't being actively exploited.

This situation is perhaps a little different as its not an accidental bug waiting to be discovered but an intentionally placed exploit. We know that a malicious person already knows about it.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by londons_explore on Friday March 29, 2024 @05:04PM (#39868991)
If you were following Google Project Zero's policy (which many researchers do), any in-the-wild exploits would trigger an immediate reveal.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by larschdk on Friday March 29, 2024 @05:13PM (#39869089)
Detecting a security issue is one thing. Detecting a malicious payload is something completely different. The latter has intent to exploit and must be addressed immediately. The former has at least some chance of noone knowing about it.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by cjbprime on Friday March 29, 2024 @04:46PM (#39868806)
In this particular case, there is a strong reason to expect exploitation in the wild to already be occurring (because it's an intentional backdoor) and this would change the risk calculus around disclosure timelines.

But in the general case, it's normal for 90 days to be given for the coordinated patching of even very severe vulnerabilities -- you are giving time not just to the project maintainers, but to the users of the software to finish updating their systems to a new fixed release, before enough detail to easily weaponize the vulnerability is shared. Google Project Zero is an example of a team with many critical impact findings using a 90-day timeline.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ang_cire on Friday March 29, 2024 @05:22PM (#39869163)
As someone in security who doesn't work at a major place that get invited to the nice pre-notification notifications, I hate this practice.

My customers and business are not any less important or valuable than anyone else's, and I should not be left being potentially exploited, and my customers harmed, for 90 more days while the big guys get to patch their systems (thinking of e.g. Log4J, where Amazon, Meta, Google, and others were told privately how to fix their systems, before others were even though the fix was simple).

Likewise, as a customer I should get to know as soon as someone's software is found vulnerable, so I can then make the choice whether to continue to subject myself to the risk of continuing to use it until it gets patched.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by hatter on Friday March 29, 2024 @07:46PM (#39870293)
> My ... business are not any less ... valuable than anyone else's,

Plainly untrue. The reason they keep distribution minimal is to maximise the chance of keeping the vuln secret. Your business is plainly less valuable than google, than walmart, than godaddy, than BoA. Maybe you're some big cheese with a big reputation to keep, but seeing as you're feeling excluded, I guess these orgs have no more reason to trust you than they have to trust me, or hundreds of thousands of others who want to know. If they let you in, they'd let all the others in, and odds are greatly increased that now your customers are at risk from something one of these others has worked out, and either blabbed about or has themselves a reason to exploit it.

Similarly plainly, by disclosing to 100 major companies, they protect a vast breadth of consumers/customer-businesses of these major companies at a risk of 10,000,000/100 (or even less, given they may have more valuable reputation to keep). Changing that risk to 12,000,000/10,000 is, well, a risk they don't feel is worth taking.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by squeaky-clean on Saturday March 30, 2024 @03:14AM (#39872565)
> Your business is plainly less valuable than google, than walmart, than godaddy, than BoA.

The company I work for has a market cap roughly 5x that of goDaddy and we're responsible for network connected security systems that potentially control whether a person can physically access your home, school, or business. We were never notified of this until this HN thread.

If your BofA account gets hacked you lose money. If your GoDaddy account gets hacked you lose your domain. If Walmart gets hacked they lose... What money and have logistics issues for a while?

Thankfully my company's products have additional safeguards and this isn't a breach for us. But what if it was? Our customers can literally lose their lives if someone cracks the security and finds a way to remotely open all the locks in their home or business.

Don't tell me that some search engine profits or someone's emails history is "more valuable" than 2000 schoolchildren's lives.

How about you give copies of the keys to your apartment and a card containing your address to 50 random people on the streets and see if you still feel that having your Gmail account hacked is more valuable.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by SonOfLilit on Saturday March 30, 2024 @07:50AM (#39873956)
Sorry, but that's not a serious risk analysis. The average person would be hurt a lot more by a godaddy breach by a state actor than by a breach of your service by a state actor.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jpc0 on Saturday March 30, 2024 @02:00PM (#39877085)
I think from an exposure point of view, I'm less likely to worry about the software side of my physical security being exploited that the actual hardware side.

None of the points you make are relevant since I have yet to see any software based entry product whose software security can be concidered more than lackluster at best, maybe your company is better since you didn't mention a name I can't say otherwise.

What I'm saying is your customers are more likely to have their doors physically broken than remotely opened by software and you are here on about life and death because of a vuln in xz?

If your companies market cap is as high as you say and they are as security aware as you say why aren't they employing security researchers and actively on the forefront of finding vulns and reporting them? That would get them an invite to the party.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by account42 on Wednesday April 03, 2024 @07:39AM (#39916130)
Man if it was ever appropriate to tell someone to touch grass this would be it.

The think of the children part is a nice touch as well. 10/10 copypasta would repost.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by maerF0x0 on Saturday March 30, 2024 @12:08PM (#39876149)
> Your business is plainly less valuable than google, than walmart, than godaddy, than BoA.

Keep in mind it's the EROI not market cap.

A company is worth attacking if their reward:effort ratio is right. Smaller companies have a much lower effort required.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by cjbprime on Friday March 29, 2024 @05:25PM (#39869191)
OpenSSL's "notification of an upcoming critical release" is public, not private.

You do get to know that the vulnerability exists quickly, and you could choose to stop using OpenSSL altogether (among other mitigations) once that email goes out.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by sidewndr46 on Friday March 29, 2024 @09:32PM (#39871001)
if your system has already been compromised at the root level, it does not matter in the least bit
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Thorrez on Saturday March 30, 2024 @12:40AM (#39871872)
Well if you assume everyone has already been exploited, disclosing quickly vs slowly won't prevent that.

Also, if something is being actively exploited, usually there's no or very little embargo.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by freedomben on Friday March 29, 2024 @06:50PM (#39869873)
Being in a similar boat, I heartily agree.

But I don't want anyone else to get notified immediately because the odds that somebody will start exploiting people before a patch is available is pretty high. Since I can't have both, I will choose the 90 days for the project to get patches done and all the packagers to include them and make them available, so that by the time it's public knowledge I'm already patched.

I think this is a Tragedy of the Commons type of problem.

Caveat: This assume the vuln is found by a white hat. If it's being exploited already or is known to others, then I fully agree the disclosure time should be eliminated and it's BS for the big companies to get more time than us.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by wyldberry on Friday March 29, 2024 @05:31PM (#39869234)
I empathize with this as I've been in the same boat, but all entities are not equal when performing triage.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by oceanplexian on Friday March 29, 2024 @06:53PM (#39869896)
Yeah I worked in FAANG when we got the advance notice of a number of CVEs. Personally I think it's shady, I don't care how big Amazon or Google is, they shouldn't get special privileges because they are a large corporation.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by kelnos on Saturday March 30, 2024 @01:54AM (#39872203)
I don't think the rationale is that they are a large corporation or have lots of money. It's that they have many, many, many more users that would be affected than most companies have.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by sdenton4 on Saturday March 30, 2024 @08:34AM (#39874236)
I imagine they also have significant resources to contribute to dealing with breaches - eg, analysing past cookouts by the bad actor, designing mitigations, etc.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by umanwizard on Friday March 29, 2024 @09:45PM (#39871058)
> My customers and business are not any less important or valuable than anyone else's

Of course they are. If Red Hat has a million times more customers than you do then they are collectively more valuable almost by definition.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by InvertedRhodium on Friday March 29, 2024 @09:59PM (#39871143)
If OP is managing something that is critical to life - think fire suppression controllers, or computers that are connected to medical equipment, I think it becomes very difficult to compare that against financial assets.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jen20 on Saturday March 30, 2024 @01:22AM (#39872071)
Such systems should be airgapped…
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by solarengineer on Saturday March 30, 2024 @01:24AM (#39872078)
I can think of two approaches for such companies:

a. Use commercial OS vendors who will push out fixes.

b. Set up a Continuous Integration process where everything is open source and is built from the ground up, with some reliance on open source platforms such as distros.

One needs different types of competence and IT Operational readiness in each approach.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by squeaky-clean on Saturday March 30, 2024 @03:21AM (#39872608)
> b. Set up a Continuous Integration process where everything is open source and is built from the ground up, with some reliance on open source platforms such as distros.

How would that have prevented this backdoor?

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ajdlinux on Saturday March 30, 2024 @04:05AM (#39872822)
At a certain scale, "economic" systems become critical to life. Someone who has sufficiently compromised a systemically-important bank can do things that would result in riots breaking out on the street all over a country.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by codedokode on Saturday March 30, 2024 @05:34AM (#39873255)
Something that is critical to life should not be connected to Internet.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by AlexandrB on Saturday March 30, 2024 @09:27AM (#39874640)
And yet it seems like every new car is.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by richrichie on Saturday March 30, 2024 @11:12AM (#39875601)
Sshhh now you are starting to talk like a rightwinger. Alex Jones has been saying this for a long time ;)
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by concordDance on Sunday March 31, 2024 @04:44AM (#39882543)
You could use the EPA dollar to life conversion ratio.

Though anything actually potentially lethal shouldn't really have a standard Internet connection. E.g. nuclear power plants, trains, planes controls, heavy industrial equipment, nuclear weapons...

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by account42 on Wednesday April 03, 2024 @07:46AM (#39916179)
In that case OP should not design systems were a sshd compromise can have a life-threatening impact. Just because it's easier for everything to be controlled from the cloud doesn't mean that others need to feel sympathy when that turnes out to be as bad of an idea as everyone else has said.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by voidfunc on Saturday March 30, 2024 @02:15AM (#39872310)
> My customers and business are not any less important or valuable than anyone else's

Hate to break it to you but yes they are.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by hulitu on Saturday March 30, 2024 @06:35AM (#39873535)
> but to the users of the software to finish updating their systems to a new fixed release,

Is there "a new fixed release" ?

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by sterlind on Friday March 29, 2024 @05:16PM (#39869106)
I think you have to take the credibility of the maintainer into account.

If it's a large company, made of people with names and faces, with a lot to lose by hacking its users, they're unlikely to abuse private disclosure. If it's some tiny library, the maintainers might be in on it.

Also, if there's evidence of exploitation in the wild, the embargo is a gift to the attacker. The existence of a vulnerability in that case should be announced, even if the specifics have to be kept under embargo.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by fmajid on Friday March 29, 2024 @05:43PM (#39869335)
In this case the maintainer is the one who deliberately introduced the backdoor. As Andres Freund puts it deadpan, "Given the apparent upstream involvement I have not reported an upstream bug."
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by decoy78 on Friday March 29, 2024 @06:27PM (#39869673)
imho it depends on the vuln. I've given a vendor over a year, because it was a very low risk vuln. This isn't a vuln though - this is an attack.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by account42 on Wednesday April 03, 2024 @07:55AM (#39916270)
> imho it depends on the vuln. I've given a vendor over a year, because it was a very low risk vuln.

But why? A year is a ridiculous time for fixing a vulnerability even a minor one. If a vendor is taking that long its because they don't prioritize security at all and are just dragging their feet.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by sidewndr46 on Friday March 29, 2024 @09:31PM (#39870996)
I've always laughed my ass off at the idea of a disclosure window. It takes less than a day to find RCE that grants root privileges on devices that I've bothered to look at. Why on earth would I bother spending months of my time trying to convince someone to fix something?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by BartjeD on Saturday March 30, 2024 @02:42AM (#39872407)
The fraudulent author must have enjoyed the 'in joke' -- He's the one create vulnerabilities..
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by xyst on Friday March 29, 2024 @02:56PM (#39867666)
90 day dark window for maintainers is SOP though. Then after 90 days, it’s free game for public disclosure
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by tw04 on Friday March 29, 2024 @03:41PM (#39868152)
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 com... by szundi on Friday March 29, 2024 @03:20PM (#39867938)
How many of people like this one exist?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ldayley on Friday March 29, 2024 @04:12PM (#39868499)
If this question had a reliable (and public) answer then the world would be a very different place!

That said, this is an important question. We, particularly those us who work on critical infrastructure or software, should be asking ourselves this regularly to help prevent this type of thing.

Note that it's also easy (and similarly catastrophic) to swing too far the other way and approach all unknowns with automatic paranoia. We live in a world where we have to trust strangers every day, and if we lose that option completely then our civilization grinds to a halt.

But-- vigilance is warranted. I applaud these engineers who followed their instincts and dug into this. They all did us a huge service!

EDIT: wording, spelling

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by josephg on Friday March 29, 2024 @06:56PM (#39869918)
Yeah thanks for saying this; I agree. And as cliche as it is to look for a technical solution to a social problem, I also think better tools could help a lot here.

The current situation is ridiculous - if I pull in a compression library from npm, cargo or Python, why can that package interact with my network, make syscalls (as me) and read and write files on my computer? Leftpad shouldn’t be able to install crypto ransomware on my computer.

To solve that, package managers should include capability based security. I want to say “use this package from cargo, but refuse to compile or link into my binary any function which makes any syscall except for read and write. No open - if I want to compress or decompress a file, I’ll open the file myself and pass it in.” No messing with my filesystem. No network access. No raw asm, no trusted build scripts and no exec. What I allow is all you get.

The capability should be transitive. All dependencies of the package should be brought in under the same restriction.

In dynamic languages like (server side) JavaScript, I think this would have to be handled at runtime. We could add a capability parameter to all functions which issue syscalls (or do anything else that’s security sensitive). When the program starts, it gets an “everything” capability. That capability can be cloned and reduced to just the capabilities needed. (Think, pledge). If I want to talk to redis using a 3rd party library, I pass the redis package a capability which only allows it to open network connections. And only to this specific host on this specific port.

It wouldn’t stop all security problems. It might not even stop this one. But it would dramatically reduce the attack surface of badly behaving libraries.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Guvante on Friday March 29, 2024 @08:20PM (#39870521)
Doesn't this exact exploit not fixed by your capability theory?

It is hijacking a process that has network access at runtime not build time.

The build hack grabs files from the repo and inspects build parameters (in a benign way, everyone checks whether you are running on X platform etc)

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by josephg on Saturday March 30, 2024 @02:50AM (#39872439)
The problem we have right now is that any linked code can do anything, both at build time and at runtime. A good capability system should be able to stop xz from issuing network requests even if other parts of the process do interact with the network. It certainly shouldn't have permission to replace crc32_resolve() and crc64_resolve() via ifunc.

Another way of thinking about the problem is that right now every line of code within a process runs with the same permissions. If we could restrict what 3rd party libraries can do - via checks either at build time or runtime - then supply chain attacks like this would be much harder to pull off.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by im3w1l on Saturday March 30, 2024 @04:44AM (#39872989)
I'm not convinced this is such a cure-all as any library must necessarily have the ability to "taint" its output. Like consider this library. It's a compression library. You would presumably trust it to decompress things right? Like programs? And then you run those programs with full permission? Oops..
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by josephg on Saturday March 30, 2024 @05:35AM (#39873266)
It’s not a cure-all. I mean, we’re talking about infosec - so nothing is. But that said, barely any programs need the ability to execute arbitrary binaries. I can’t remember the last time I used eval() in JavaScript.

I agree that it wouldn’t stop this library from injecting backdoors into decompressed executables. But I still think it would be a big help anyway. It would stop this attack from working.

At the big picture, we need to acknowledge that we can’t implicitly trust opensource libraries on the internet. They are written by strangers, and if you wouldn’t invite them into your home you shouldn’t give them permission to execute arbitrary code with user level permissions on your computer.

I don’t think there are any one size fits all answers here. And I can’t see a way to make your “tainted output” idea work. But even so, cutting down the trusted surface area from “leftpad can cryptolocker your computer” to “Leftpad could return bad output” sounds like it would move us in the right direction.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Guvante on Sunday March 31, 2024 @11:12PM (#39890589)
There are attacks that embed hacks into built compilers so unless you are looking to write your software from scratch you need to trust people.

And by scratch I mean "without modern hardware" given supply chain attacks also apply to the hardware you build from.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by josephg on Monday April 01, 2024 @10:28PM (#39901795)
Of course we need to trust people to some degree. There's an old Jewish saying - put your trust in god, but your money in the bank. I think its like that. I'm all for trusting people - but I still like how my web browser sandboxes every website I visit. That is a good idea.

We (obviously) put too much trust in little libraries like xz. I don't see a world in which people start using fewer dependencies in their projects. So given that, I think anything which makes 3rd party dependencies safer than they are now is a good thing. Hence the proposal.

The downside is it adds more complexity. Is that complexity worth it? Hard to say. Thats still worth talking about.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ui2RjUen875bfFA on Tuesday April 02, 2024 @04:48AM (#39903592)
i guess the big opensource community should put a little bit more trust in statistics or integrate statistic evaluation in their decission making to use specific products in their supply chains.

there are some researches on the right track already https://www.se.cs.uni-saarland.de/projects/congruence/

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by fauigerzigerk on Saturday March 30, 2024 @06:01AM (#39873386)
This approach could work for dynamic libraries, but a lot of modern ecosystems (Go, Rust, Swift) prefer to distribute packages as source code that gets compiled with the including executable or library.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by josephg on Saturday March 30, 2024 @09:34AM (#39874714)
Yes, and?

The goal is to restrict what included libraries can do. As you say, in languages like Rust, Go or Swift, the mechanism to do this would also need to work with statically linked code to work. And thats quite tricky, because there are no isolation boundaries between functions in executables.

It should still be possible to build something like this. It would just be inconvenient. In rust, swift and go you'd probably want to implement something like this at compile time.

In rust, I'd start by banning unsafe in dependencies. (Or whitelisting which projects are allowed to use unsafe code.) Then add special annotations on all the methods in the standard library which need special permissions to run. For example, File::open, fork, exec, networking, and so on. In cargo.toml, add a way to specify which permissions your child libraries get. "Import serde, but give it no OS permissions". When you compile your program, the compiler can look at the call tree of each function to see what actually gets called, and make sure the permissions match up. If you call a function in serde which in turn calls File::open (directly or indirectly), and you didn't explicitly allow that, the program should fail to compile.

It should be fine for serde to contain some utility function that calls the banned File::open, so long as the utility function isn't called.

Permissions should be in a tree. As you get further out in the dependency tree, libraries get fewer permissions. If I pass permissions {X,Y} to serde, serde can pass permission {X} to one of its dependencies in turn. But serde can't pass permission {Q} to its dependency - since it doesn't have that capability itself.

Any libraries which use unsafe are sort of trusted to do everything. You might need to insist that any package which calls unsafe code is actively whitelisted by the cargo.toml file in the project root.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by fauigerzigerk on Sunday March 31, 2024 @06:27AM (#39882999)
>It should still be possible to build something like this. It would just be inconvenient.

Inconvenient is quite the understatement. Designing and implementing something like this for each and every language compiler/runtime requires hugely more effort than doing it on the OS level. The likelihood of mistakes is also far greater.

Perhaps it's worth exploring whether it can be done on the LLVM level so that at least some languages can share an implementation.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by saagarjha on Saturday March 30, 2024 @09:46AM (#39874826)
Do you understand how ifuncs work? They are in the address space in the application that they run in. liblzma is resolving its own pointers!
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Bulat_Ziganshin on Saturday March 30, 2024 @12:16AM (#39871791)
if I got it right, the attack uses glibc IFUNC mechanism to patch sshd (and only sshd) to directly run some code in liblzma when sshd verifies logins.

so the problem is IFUNC mechanism, which has its valid uses but can be EASILY misused for any sort of attacks

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by josephg on Saturday March 30, 2024 @02:41AM (#39872402)
Honestly, I don't have a lot of hope that we can fix this problem for C on linux. There's just so much historical cruft in present, spread between autotools, configure, make, glibc, gcc and C itself that would need to be modified to support capabilities.

The rule we need is "If I pull in library X with some capability set, then X can't do anything not explicitly allowed by the passed set of capabilities". The problem in C is that there is currently no straightforward way to firewall off different parts of a linux process from each other. And dynamic linking on linux is done by gluing together compiled artifacts - with no way to check or understand what assembly instructions any of those parts contain.

I see two ways to solve this generally:

- Statically - ie at compile time, the compiler annotates every method with a set of permissions it (recursively) requires. The program fails to compile if a method is called which requires permissions that the caller does not pass it. In rust for example, I could imagine cargo enforcing this for rust programs. But I think it would require some changes to the C language itself if we want to add capabilities there. Maybe some compiler extensions would be enough - but probably not given a C program could obfuscate which functions call which other functions.

- Dynamically. In this case, every linux system call is replaced with a new version which takes a capability object as a parameter. When the program starts, it is given a capability by the OS and it can then use that to make child capabilities passed to different libraries. I could imagine this working in python or javascript. But for this to work in C, we need to stop libraries from just scanning the process's memory and stealing capabilities from elsewhere in the program.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by estebarb on Saturday March 30, 2024 @10:49AM (#39875415)
Or take the Chrome / original Go approach: load that code in a different process, use some kind of RPC. With all the context switch penalty... sigh, I think it is the only way, as the MMU permissions work at a page level.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by josephg on Saturday March 30, 2024 @03:44PM (#39877951)
Firefox also has its solution of compiling dependencies to wasm, then compiling the wasm back into C code and linking that. It’s super weird, but the effect is that each dependency ends up isolated in bounds checked memory. No context switch penalty, but instead the code runs significantly slower.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by AgentME on Saturday March 30, 2024 @08:41AM (#39874306)
A process can do little to defend itself from a library it's using which has full access to its same memory. There is no security boundary there. This kind of backdoor doesn't hinge on IFUNC's existence.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by saagarjha on Saturday March 30, 2024 @09:47AM (#39874833)
The problem is that the attacker has code execution in sshd, not ifuncs
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by saalweachter on Friday March 29, 2024 @07:53PM (#39870331)
Assume 3% of the population is malicious.

Enough to be cautious, enough to think about how to catch bad actors, not so much as to close yourself off and become a paranoid hermit.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by pizzafeelsright on Friday March 29, 2024 @09:58PM (#39871140)
Huh. I never really thought of it as a percentage.

I've been evil, been wonderful, and indifferent at different stages in life.

I have known those who have done similar for money, fame, and boredom.

I think, given a backstory, incentive, opportunity, and resources it would be possible to most people to flip from wouldn't to enlisted.

Leverage has shown to be the biggest lever when it comes to compliance.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by XorNot on Friday March 29, 2024 @10:38PM (#39871348)
It's doubtful you've been evil, or at least, you are really lacking in imagination of the true scope of what that word implies.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by mlsu on Saturday March 30, 2024 @12:32AM (#39871853)
The line between good and evil cuts through the heart of every person
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by saulpw on Saturday March 30, 2024 @12:54AM (#39871935)
"Assume that 3% of the people you encounter will act maliciously."
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by heresie-dabord on Saturday March 30, 2024 @07:47AM (#39873942)
We live in a time of populous, wealthy dictatorships that have computer-science expertise are openly hostile to the US and Canada.

North America is only about 5% of the world's population. [1] (We can assume that malicious actors are in North America, too, but this helps to adjust our perspective.)

The percentage of maliciousness on the Internet is much higher.

[1] _ See continental subregions. https://en.wikipedia.org/wiki/List_of_continents_and_contine...

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by tomthehero on Saturday March 30, 2024 @08:27AM (#39874191)
If you put it in other words, US and Canada are openly hostile to the rest of the world.

Bullies who would have supported Hitler had he been named Netanyahu.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by heresie-dabord on Saturday March 30, 2024 @11:36AM (#39875845)
> If you put it in other words

You may of course choose whatever words you like. But your statement is nonsense, and the failures in the Middle East are all humanity's fault.

The kakistocracies of CN, RU, and IR are not the feeble foes of democracy and capitalism that they were in the 20th century.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by richrichie on Saturday March 30, 2024 @11:21AM (#39875683)
Huh? The empirical evidence we have - thanks to Snowden leaks - paints a different picture. NSA is the biggest malicious actor with nearly unlimited resources at hand. They even insert hardware backdoors and intercept shipment to do that.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by heresie-dabord on Saturday March 30, 2024 @05:03PM (#39878639)
> NSA is the biggest malicious actor

I'm curious, how do you rank CN, RU, and IR?

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by richrichie on Sunday March 31, 2024 @11:16AM (#39885013)
They are all active players, but no where close to the top dog.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by rieter on Monday April 01, 2024 @10:01PM (#39901607)
That doesn't mean that the entire population of those countries is actively hostile to you.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by account42 on Wednesday April 03, 2024 @08:19AM (#39916488)
The US government itself is openly hostile to the US (as well as to the rest of the world).

> The percentage of maliciousness on the Internet is much higher.

A baseless assumption.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by heresie-dabord on Friday March 29, 2024 @07:57PM (#39870363)
Threat actors create personas. We will need strong social trust to protect our important projects and dependencies.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by account42 on Wednesday April 03, 2024 @08:01AM (#39916321)
> We, particularly those us who work on critical infrastructure or software

We should also be asking ourselves if we are working on critical infrastructure. Lasse Collin probably did not consider liblzma being loaded by sshd when vetting the new maintainer. Did the xz project ever agree to this responsibility?

We should also be asking ourselfs if each dependency of critical infrastructure is worth the risk. sshd linking libsystemd just to write a few bytes into an open fd is absurd. libsystemd pulling in liblzma because hey it also does compressed logging is absurd. Yet this kind of absurd dependency bloat is everywhere.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by hulitu on Saturday March 30, 2024 @08:20AM (#39874138)
> How many of people like this one exist?

I guess every 3 letter agency has at least one. You can do the math. They havent't learned anything after Solar Winds.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by PedroBatista on Friday March 29, 2024 @01:12PM (#39866482)
Given the recent ( not so recent ) attacks/"bugs" I feel there is a need to do more than the already hard task of investigating and detecting attacks but also to bring IRL consequences to these people.

My understanding is that right now it's pretty much a name and shame of people who most of the time aren't even real "people" but hostile agents either working for governments or criminal groups ( or both )

Getting punched in the face is actually a necessary human condition for a healthy civilization.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by buildbot on Friday March 29, 2024 @01:16PM (#39866530)
In the article it says CISA was notified - that sounds like it's going to be a federal investigation if nothing else. If I was this person, I wouldn't be in the USA (or any US friendly nation) ASAP.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by graemep on Friday March 29, 2024 @01:28PM (#39866716)
One of Jia Tan's recent contributions is "Speed up CRC32 calculation on LoongArch" I would guess the odds are that this is not someone in the US.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by hangonhn on Friday March 29, 2024 @03:15PM (#39867884)
It's also very possible that the account was compromised and taken over. A two years long con with real useful work is a lot of patience and effort vs. just stealing a weakly protected account. I wonder if MFA shouldn't be a requirement for accounts that contribute to important OSS projects.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by dralley on Friday March 29, 2024 @03:51PM (#39868270)
>A two years long con with real useful work is a lot of patience and effort vs. just stealing a weakly protected account.

The long-con theory seems a bit more plausible at the moment

https://github.com/google/oss-fuzz/pull/10667

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by wyldberry on Friday March 29, 2024 @04:23PM (#39868598)
If you really step back and think about it, this type of behavior is perfectly aligned with any number of well resourced criminal groups and state actors. Two years of contributing in less visible software with the goal of gaining trust and then slowly pushing your broken fix in.

To me that's way more plausible than losing control of your account and the person who compromised it then having someone over a long time insert the backdoor that took a long time to develop and then obfuscate it.

Likely someone at GH is talking to some government agencies right now about the behavior of the private repos of that user and their associated users.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by sonicanatidae on Friday March 29, 2024 @04:41PM (#39868770)
This would be the smarter attack vector, but I've noticed over time that these people are just assholes. They aren't patient. They are in for the smash/grab.

I would not be surprised if there was a group using this approach, but I doubt most of them are/would. If they were that dedicated, they'd just have a fucking job, instead of being dicks on the internet for a living.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by wyldberry on Friday March 29, 2024 @05:29PM (#39869222)
For some groups they certainly are.

However at this point: every developed nation has a professional offensive security group that have varying degrees of potency. All are more resourced than 99.9% of organizations defending and enjoy legal autonomy in their country and allied countries for their work.

If you're getting salaried comfortably, and you have near infinite resources, a two year timeline is trivial. As an American, I always like to point to things we know our own services have done first[0].

Each actor group have their own motivations and tactics[1]. As someone who spent a lot of time dealing with a few state actors, you learn your adversaries tricks of the trade and they are patient for the long-con because they can afford to be.

[0] - https://www.npr.org/2020/03/05/812499752/uncovering-the-cias... [1] - https://learn.microsoft.com/en-us/microsoft-365/security/def...

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by cjbprime on Friday March 29, 2024 @05:06PM (#39869018)
I think you are confusing non-state e.g. ransomware groups, which are usually not part of a government (although some exceptions like North Korea likely exist) with state-sponsored hackers who are often directly working under military command. Soldiers are not "dicks on the internet".
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by willdr on Friday March 29, 2024 @05:54PM (#39869418)
As someone who has been in a fair few discord chats with soldiers, I'd beg to differ...
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by sonicanatidae on Monday April 01, 2024 @03:56PM (#39898446)
>As someone who has been in a fair few discord chats with soldiers, I'd beg to differ...

As someone that's spent a lot of time in darker places, I would agree.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by stephc_int13 on Friday March 29, 2024 @06:57PM (#39869933)
This is not that costly. Growing bonsai trees also takes a lot of patience, decades, but you don't have to grow only one at a time, the pros are growing them in large numbers, with minimal work on each individual trees once in a while.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by teddyh on Friday March 29, 2024 @07:03PM (#39869985)
There is a survivorship bias problem there; what if the stupid criminals are the only ones which you notice?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Phenylacetyl on Friday March 29, 2024 @04:52PM (#39868863)
But what if being a dick on the internet is the job they do for a living?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by IncreasePosts on Friday March 29, 2024 @04:06PM (#39868442)
It might not even be a long time. He might have just been approached exactly because of his history to insert the back door. And offered either money, or blackmailed or threatened
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by hangonhn on Friday March 29, 2024 @04:16PM (#39868531)
Oh man. The was a scenario that didn't cross my mind. I was too narrowly focused on the technical aspects rather than the social aspects of security. Great point.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Arrath on Friday March 29, 2024 @07:14PM (#39870080)
What if this contributor was a member of a state actor/persistent threat group and, like some totally legit software dev houses, they encourage their people to contribute to OSS projects for the whole personal pursuit/enjoyment/fulfillment angle?

With the added bonus that sometimes they get to pull off a longcon like this.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by dist-epoch on Friday March 29, 2024 @03:36PM (#39868105)
This is most likely not his first backdoor, but the first which was detected.

So most likely he didn't wait two years to benefit.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jnxx on Friday March 29, 2024 @05:15PM (#39869104)
I am thinking more in so-called rubberhose cryptoanalysis.

https://xkcd.com/538/

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ranger_danger on Friday March 29, 2024 @05:17PM (#39869114)
> It's also very possible that the account was compromised and taken over

Or they WERE legit and simply went rogue, perhaps due to external factors.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by fmajid on Friday March 29, 2024 @05:46PM (#39869364)
2 years of one engineer's time is very cheap, compared to e.g. the NSA's CryptoAG scam. I'd say most likely a Chinese intelligence plant, kindly offering to relieve the burden of the original author of xz.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by rdtsc on Friday March 29, 2024 @05:57PM (#39869440)
I got the same idea. On XZ dev mailing list there were a few discussions about "is there a maintainer?" 2-3 years ago. It's not hard to find these types discussions and then dedicate a few years of effort to start "helping out" and eventually be the one signing releases for the project. That's peanuts for a state actor.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by throwaway384638 on Friday March 29, 2024 @07:01PM (#39869967)
This right here. This is exactly what I would be doing - find small broke maintainers offer them a few hundred grand - with a target in mind.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by rrix2 on Friday March 29, 2024 @02:38PM (#39867493)
That was a review of someone else's work? https://github.com/tukaani-project/xz/pull/86
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Fnoord on Saturday March 30, 2024 @11:48AM (#39875977)
Since that repo is disabled: here is a mirror of the discussion [1]

[1] https://archive.is/tksCR

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by buildbot on Friday March 29, 2024 @01:35PM (#39866802)
Yeah I saw that - I wouldn't bet on them being in the US but who knows. Maybe they just really love CRC32 ;) And introducing backdoors (if it that was them not an account takeover).
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by kevin_b_er on Friday March 29, 2024 @02:14PM (#39867233)
Those tarballs are PGP signed, too..
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by dreamingincode on Friday March 29, 2024 @05:09PM (#39869047)
The full name "Jia Cheong Tan" doesn't sound like Mainland China. The name and actions could be intentionally misleading though.

https://news.ycombinator.com/item?id=39867737

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by graemep on Friday March 29, 2024 @06:08PM (#39869513)
Names can be faked, and even real names are not a great indicator.

Unless you have some very specific cultural knowledge you could not make even vaguely useful deductions about my location, nationality, culture, ethnicity etc. from my name. I get a lot of wrong guesses though!

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by viraptor on Friday March 29, 2024 @05:44PM (#39869344)
We're way too global now for this to be more than a tiny extra signal. People move around, families preserve names.

Also nobody checked that person's id, so "Jia" is only slightly more meaningful than "ghrssbitrvii".

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by rurban on Monday April 01, 2024 @07:46AM (#39893086)
Since his only appearance outside of github and git repos is on some Taiwanese blogs, can we please change all occurances of China to Taiwan please?

And some others hints at Eastern Europe, comparing the timezones. Taiwan ist still the strongest hint though.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by computerfriend on Friday March 29, 2024 @03:26PM (#39867996)
From their Git commits, they're in China's time zone.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by stephenr on Friday March 29, 2024 @05:16PM (#39869107)
I assume you mean UTC+8... that covers about 20% of the earth's population, besides China it includes parts of Russia, a bunch of SEA and Western Australia.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by fmajid on Friday March 29, 2024 @05:47PM (#39869374)
China is 20& of the world's population...
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jcgrillo on Friday March 29, 2024 @05:58PM (#39869447)
My git commits are sometimes in UTC, depending on which computer I make them from. Sometimes my laptop just switches timezones depending on whether I'm using wifi or LTE. I wouldn't put much weight on the timezone.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jnxx on Friday March 29, 2024 @06:34PM (#39869757)
The time stamp of a git commit depends on the system clock of the computer the commit was checked in. This cannot be checked by github & co (except that they could reject commits which have time stamps in the future).
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by supposemaybe on Friday March 29, 2024 @06:57PM (#39869935)
Remember that agencies like NSA, GCHQ etc will always use false flags in their code, even when it doesn’t have as high risk of exposure as a backdoor in public has.

Looking at the times of commits shouldn’t be given much value at all. A pretty pointless endeavour.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by astrange on Saturday March 30, 2024 @04:22AM (#39872907)
State actors are actually known for not doing that; after all, there's no need to hide when what you're doing is legal. They also tend to work 9-5 in their own timezones.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by account42 on Thursday April 04, 2024 @10:13AM (#39930677)
It might be legal but would (or at least should) be seen as an attack by all other countries using the software, even allies, and in a saner world wouldl receive a strong political response.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by berdario on Friday March 29, 2024 @09:24PM (#39870953)
But the actual interactions with Github are done between 12.00 UTC and 18.00 UTC

https://news.ycombinator.com/item?id=39870925

https://play.clickhouse.com/play?user=play#U0VMRUNUIHRvSG91c...

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by zone411 on Friday March 29, 2024 @11:49PM (#39871681)
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by berdario on Saturday March 30, 2024 @06:20AM (#39873473)
Interesting!

As some of the Tweet replies mentioned, they shipped releases that contained the backdoor, and committed other questionable changes at the "usual" times. For sure we're almost certainly not dealing with a compromised workstation, so I don't think that would explain the different times for the worst offending changes.

Maybe he has some technical experts/handlers/managers that had to oversee when they introduced the actual malicious changes, and thus this reflects when he got the go-ahead signal from these other people (and thus that reflects their working hours?)

Or maybe they were just travelling at that time? (maybe travelling to visit the aforementioned handlers? Or travel to visit family... even criminals have a mom and dad)

Also, keep in mind that my Clickhouse query includes all of the Github interactions (for example, timestamp of issue comments)... and unlike a Git commit timestamp, it's hard to fake those (because you'd need to schedule the posting of such comments, probably via the API. Not impossible, but easier to think that JiaT75 just used the Gitub UI to write comments), the Tweet mentions just "commit history"

Usually the simpler explanation has less chance of being wrong... thinking of some possibilities:

- Chinese/Taiwanese state actor, who employs people 9-5 (but somehow, their guy worked 20.00 - 02.00 local time)

- Chinese/Taiwanese rogue group/lone wolf... moonlighting on this exploit after their day job (given that to interact with Lasse they'd be forced to work late, this is not outside of the realm of possibilities)

- Non-Chinese state actor, employing someone 9-5 (consistent with most of the Github interactions), wanting to pin responsibility on China/Taiwan (+0800 timezone for commits), which for some unexplained reason pushed the worst offending changes at really weird times.

- Chinese/Taiwanese state actor, that wanted to pin the blame on western state actors (by making all of the changes at times compatible with someone working in Europe), and somehow they slipped up when pushing the worst offending changes.

- Chinese/Taiwanese state actor, employing someone in Europe (if they need to get approval of changes/gain the trust of the previous maintainer Lasse, it might make sense to have better/more timezone overlap)... which for some weird (yet "innocent") reason, kept the device that they worked on, configured with a +0800 timezone

- Non-Chinese state actor, pretending to be a Chinese entity that wanted to pin the blame on a western entity and slip up by making the worst offending changes at 3am (i.e. it was not a slip up, but it's part of the misdirection efforts.)

Some of these hypotheses are a bit farfetched, but reality is stranger than fiction

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by offmycloud on Friday March 29, 2024 @04:36PM (#39868722)
CISA Advisory: https://www.cisa.gov/news-events/alerts/2024/03/29/reported-...

Note that it say "Fedora 41" in the CISA page link to Red Hat, but Red Hat changed the blog title to "Fedora 40" and left the HTML page title as "Fedora 41".

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by rubymamis on Friday March 29, 2024 @04:01PM (#39868381)
We shouldn't rule out the probability that this account is from a U.S. agency as well.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by wannacboatmovie on Friday March 29, 2024 @05:01PM (#39868959)
Just so I understand, you're alleging that a U.S. agency was, among other things, submitting patches for a mainland Chinese home-grown CPU architecture (Loongson)?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by boutique on Friday March 29, 2024 @05:10PM (#39869059)
No, they're not. They are saying that due to the extraordinary circumstances with this case US agencies cannot be excluded from suspicion. At this time no actor seems to be a more likely perpetrator than the next. (Keep in mind that false-flag operations are a very common occurrence in cyber warfare and this cannot be ruled out yet.)
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by yorwba on Friday March 29, 2024 @05:10PM (#39869054)
Aren't you confusing JiaT75 and xry111?

And if someone wanted to attack a target running on Loongson, they would certainly have to make sure the code can actually run there in the first place.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by FLT8 on Friday March 29, 2024 @06:08PM (#39869520)
It doesn't seem out of the question that the U.S. or allied nations might want to be involved in the development effort around these CPUs. Even if initially it's just to build some credibility for this account so future adversarial patches are accepted with less suspicion? If you think that's implausible, I'm interested why?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by EthanHeilman on Friday March 29, 2024 @06:33PM (#39869747)
We shouldn't rule it out, but it seems unlikely to me.

This is more reckless than any backdoor I can think of by a US agency . NSA backdoored Dual EC DRBG, which was extremely reckless, but this makes that look careful and that was the Zenith of NSA recklessness. The attackers here straight up just cowboy'd the joint. I can't think of any instance in which US intelligence used sock puppets on public forums and mailinglists to encourage deployment of the backdoored software and I maintain a list of NSA backdoors: https://www.ethanheilman.com/x/12/index.html

It just doesn't seem like their style.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by oceanplexian on Friday March 29, 2024 @07:06PM (#39870014)
The CIA had plans to commit terrorist acts against American civilians to start a war against Cuba in the 60s. This is quite literally their style. For example, perhaps they were planning to blame the hack of a power plant or critical infrastructure on this exploit, then use the "evidence" that was leaked to prove it was China, and from there carry out an offensive operation against Chinese infrastructure. There are lots of subversive reasons they would want to do this.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by astrange on Saturday March 30, 2024 @04:24AM (#39872914)
The CIA in 2024 really doesn't have any continuity with itself in 1960. Things like the Church Commission changed how it was governed.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by EthanHeilman on Saturday March 30, 2024 @06:38PM (#39879367)
You are referring to Operation Northwoods [0], a set of plans from the 1960s, all of which were rejected.

Operation Northwoods came about because Brig. Gen. Edward Lansdale, asked the CIA to come up with a list of pretexts that might be used to justify an invasion of Cuba. This request had a number of planners at the CIA enumerate possible false flags that could be used as a pretext. One of those plans was a terror attack against US citizens. Operation Northwoods was rejected and never implemented.

The US has plans for nearly everything, but there is a massive difference between a plan that some CIA analyst is pitching and something the US is likely or even able to do. The US had all sorts of plans for how to handle a pandemic, but then when one actually happened, the plans couldn't be implemented because the US didn't actually have the capabilities the plans called for.

> example, perhaps they were planning to blame the hack of a power plant or critical infrastructure on this exploit, then use the "evidence" that was leaked to prove it was China, and from there carry out an offensive operation against Chinese infrastructure.

Backdooring OpenSSH would in no way function as a pretext for attacks on Chinese infrastructure. No one outside the tech companies cares about this. The US also doesn't need to invent hacking pretexts, you could just point to one of many exposed Chinese hacking incidents.

[0] : https://en.wikipedia.org/wiki/Operation_Northwoods

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by sneak on Friday March 29, 2024 @02:52PM (#39867619)
What law do you think is being broken here?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by AlexCoventry on Friday March 29, 2024 @03:05PM (#39867767)
Maybe https://www.law.cornell.edu/uscode/text/18/1030#a_5 ?

> knowingly causes the transmission of a program, information, code, or command, and as a result of such conduct, intentionally causes damage without authorization, to a protected computer;

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jethro_tell on Friday March 29, 2024 @04:36PM (#39868728)
How does posting an exploit POC differ here?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by schlauerfox on Friday March 29, 2024 @04:51PM (#39868859)
Intent. It's a big part of law and prosecution.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by cjbprime on Friday March 29, 2024 @05:10PM (#39869060)
No, freedom of speech (as far as I know) protects even exploit code. The statutes being linked would cover using the backdoor to gain unauthorized entry to a system. I think the question of whether anything illegal has occurred from the public facts is unclear, at least to me, and interesting.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jethro_tell on Friday March 29, 2024 @05:13PM (#39869082)
I see a dev on the project has just posted that it has been seen in the wild, so I guess you'd have standing there.

https://gist.github.com/thesamesam/223949d5a074ebc3dce9ee78b...

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by wtallis on Friday March 29, 2024 @06:05PM (#39869492)
The first amendment might overrule the cited law if that law didn't already include a requirement for intentional harm. But since the law does already have that requirement, there's not really an opportunity for a freedom of speech justification to be what protects a non-malicious publication of a proof of concept. The law isn't trying to infringe on freedom of speech.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by cjbprime on Sunday March 31, 2024 @04:14AM (#39882422)
But my argument isn't that freedom of speech could be used as an excuse for something that would otherwise be illegal -- my argument is that publishing and discussing exploit code is a constitutionally-protected activity. The CFAA statutes can be violated by gaining unauthorized access to a protected computer system, but that did not happen in the process of authoring and publishing the exploit code. The attacker was authorized to release new versions of the software, and they did. Their choice of what to make their software actually do is not regulated by the government, any more than a musician's choice of which lyrics to include in their song. It is their creative expression

If an attacker then actually uses the backdoor created by the new release to gain unauthorized access to a protected computer system, then obviously there's a CFAA violation there. The public facts don't contain documented examples of this having happened (yet), though it will be unsurprising if that changes.

So it is still not obvious, at least to me, that any crime under US law has occurred so far. I am not a lawyer, though I'm aware of how badly the government has lost the previous court cases that attempted to restrict what humans can put in source code.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by weinberg on Friday March 29, 2024 @06:22PM (#39869633)
And I bet if it ended up on a NATO system, things escalate quickly for the person / nation states being scrutinized (https://www.nato.int/cps/en/natohq/topics_78170.htm)
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by oceanplexian on Friday March 29, 2024 @06:55PM (#39869913)
A federal investigation into what, itself? The primary actors doing this type of thing are the US Government.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by progbits on Friday March 29, 2024 @05:30PM (#39869230)
> Getting punched in the face is actually a necessary human condition for a healthy civilization.

Aside from signed commits, we need to bring back GPG key parties and web of trust. When using a project you would know how many punches away from the committers you are.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by woodruffw on Friday March 29, 2024 @05:59PM (#39869451)
PGP is more famous for "web of trust" topologies, not chains of trust.

For all of their nerd cred, key parties didn't accomplish very much (as evidenced by the fact that nothing on the Internet really broke when the WoT imploded a few years ago[1]). The "real" solution here is mostly cultural: treating third-party software like the risky thing it actually is, rather than a free source of pre-screened labor.

[1]: https://inversegravity.net/2019/web-of-trust-dead/

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by weinzierl on Friday March 29, 2024 @06:25PM (#39869661)
Yes, but there was also little pressure to really build the WOT. People, like myself, did it because it was fun, but no one really relied on it. This could change, but it is still far from certain if it'd work given enough pressure.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by progbits on Friday March 29, 2024 @06:02PM (#39869475)
Chain/web was typo, corrected, thanks.

I know of the key party issues. But there is some value to knowing how far removed from me and people I trust the project authors are.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by msm_ on Friday March 29, 2024 @07:15PM (#39870093)
Nowadays i achieve this with linkedin[1] connections. Less nerd cred, but achieves roughly the same purpose (most of the people I care about in my niche are at most a 3rd degree connection - a friend of a friend of a friend).

[1] formerly also twitter, at least partially.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by woodruffw on Friday March 29, 2024 @06:21PM (#39869621)
> But there is some value to knowing how far removed from me and people I trust the project authors are

That's true!

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by EthanHeilman on Friday March 29, 2024 @06:23PM (#39869638)
The web of punches?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by throw10920 on Thursday April 04, 2024 @10:24PM (#39938093)
> Getting punched in the face is actually a necessary human condition for a healthy civilization.

This is factually false - in fact, it's literally the direct opposite of the truth. "Getting punched in the face" is base violence that is incompatible with a healthy civilization. A good government with a robust justice system is what is actually needed for a healthy civilization.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by pfortuny on Friday March 29, 2024 @02:02PM (#39867106)
Unfortunately, this is how good bad actors work: with a very long-term point of view. There is no “harmless” project any more.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by port443 on Friday March 29, 2024 @04:09PM (#39868462)
I think its much more likely this was not a bad actor, given their long history of commits.

It's a known fact that China will "recruit" people to operate them. A quote:

> They talk to them, say my friend, I see you like our special menu. Are you from China? Are you here on a VISA? Do you have family back there? Would you like your family to stay alive? Is your loyalty to this temporary employer or is your loyalty to your motherland? You know, a whole bunch of stuff like that. That’s how Chinese intelligence operations acts...

This just gives feelings of less "compromised account" and more "Your account is now our account"

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Johnny555 on Friday March 29, 2024 @04:22PM (#39868591)
Isn't that still a "bad actor" even if they are coerced into it?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Terr_ on Friday March 29, 2024 @05:29PM (#39869221)
For the purposes of security discussions, I would say yes. You often don't know their real identity let alone their motivations and tribulations.

However if we were critiquing characters in a book-- especially ones where narrative voice tells us exactly their true motivations--then maybe not, and they get framed as a "dupe" or "manipulated" etc.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Almondsetat on Friday March 29, 2024 @06:02PM (#39869474)
"bad actor" doesn't mean "bad faith", it's not a value judgement
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ip26 on Friday March 29, 2024 @07:09PM (#39870039)
I believe your parent is trying to make a distinction that the handle's history may not be suspect, only recent activity, positing a rubber-hose type compromise.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by foobiekr on Friday March 29, 2024 @04:49PM (#39868835)
Yes.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by zeroCalories on Friday March 29, 2024 @04:23PM (#39868604)
I think we should seriously consider something like a ts clearance as mandatory for work on core technologies. Many other projects, both open and closed, are probably compromised by foreign agents.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by cesarb on Friday March 29, 2024 @04:32PM (#39868697)
> I think we should seriously consider something like a ts clearance as mandatory for work on core technologies.

Was xz/lzma a core technology when it was created? Is my tiny "constant time equality" Rust crate a core technology? Even though it's used by the BLAKE3 crate? By the way, is the BLAKE3 crate a core technology? Will it ever become a core technology?

With free software in general, things do not start a "core technology"; they become a "core technology" over time due to usage. At which point would a maintainer have to get a TS clearance? Would the equivalent of a TS clearance from my Latin America country be acceptable? And how would I obtain it? Is it even available to people outside the military and government (legit question, I never looked)?

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by zeroCalories on Friday March 29, 2024 @04:48PM (#39868823)
We probably shouldn't use your code at all, is the real answer. You can get TS, it just costs a lot of money.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by stackskipton on Friday March 29, 2024 @06:08PM (#39869514)
In United States, you cannot apply for a clearance. You must get a job that requires a clearance, then start application process and wait.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by msm_ on Friday March 29, 2024 @07:31PM (#39870206)
Who is "we"? Are you from the US by any chance? Do you mean that the US government should rewrite every piece of core architecture (including Linux, Ssh, Nginx...) from scratch? Because they are all "contaminated" and actually were created by non-americans.

If that's the case, you do you. Do you also think that all other countries should do the same, and rewrite everything from scratch for their government use (without foreign, for example American, influence)? And what about companies? Should they be forced to switch to their government's "safe" software, or can they keep using Linux and ssh? What about multi-national companies? And what even counts as a "core" software?

So yeah, I don't think it's a good idea.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by zeroCalories on Friday March 29, 2024 @08:35PM (#39870622)
We can keep it between NATO plus friends.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by AnonymousPlanet on Saturday March 30, 2024 @10:13AM (#39875094)
Wow, I can't decide which is the bigger act of sabotage to open source, your ideas or the actual backdoor.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by csdreamer7 on Friday March 29, 2024 @04:50PM (#39868847)
The Linux kernel is complaining about a lack of funding for CI-one of the highest visibility projects out there. Where will the money come from for this?

Corps? Aside from Intel most of them barely pay to upstream their drivers.

The govt? The US federal government cut so much of it's support since the 70s and 80s.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by zeroCalories on Friday March 29, 2024 @04:59PM (#39868946)
You're right, but accepting code from random Gmail accounts can't be the solution. Honestly the Linux kernel is a bloated mess, and will probably never be secured.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by imiric on Friday March 29, 2024 @07:10PM (#39870051)
Accepting code from any source without properly reviewing it is surely the actual problem, no? This person only infiltrated this project because there was no proper oversight.

Maintainers need to be more stringent and vigilant of the code they ship, and core projects that many other projects depend upon should receive better support, financial and otherwise, from users, open source funds and companies alike. This is a fragile ecosystem that this person managed to exploit, and they likely weren't the only one.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by zeroCalories on Friday March 29, 2024 @08:42PM (#39870667)
Maintainers can't fully review all code that comes in. They don't have the resources. Even if they could give it a good review, a good programmer could probably still sneak stuff in. That's assuming a maintainer wasn't compromised, like in this case. We need a certain level of trust that the contributors are not malicious.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Hackbraten on Friday March 29, 2024 @09:06PM (#39870835)
Definitely this.

I’ve been a package maintainer for a decade. I make it a habit to spot check the source code of every update of every upstream package, hoping that if many others do the same, it might make a difference.

But this backdoor? I wouldn’t have been able to spot it to save my life.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by imiric on Friday March 29, 2024 @11:05PM (#39871480)
This wasn't caused by not reviewing the code of a dependency. This was a core maintainer of xz, who gradually gained trust and control of the project, and was then able to merge changes with little oversight. The failure was in the maintenance of xz, which would of course be much more difficult to catch in dependent projects. Which is why it's so impressive that it was spotted by an OpenSSH user. Not even OpenSSH maintainers noticed this, which points to a failure in their processes as well, to a lesser degree.

I do agree that it's unreasonable to review the code of the entire dependency tree, but reviewing own code thoroughly and direct dependencies casually should be the bare minimum we should expect maintainers to do.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Hackbraten on Saturday March 30, 2024 @02:06AM (#39872269)
> Not even OpenSSH maintainers noticed this, which points to a failure in their processes as well, to a lesser degree.

The OpenSSH project has nothing to do with xz. The transitive dependency on liblzma was introduced by a patch written by a third party. [1] You can't hold OpenSSH project members accountable for something like this.

[1]: https://bugs.debian.org/778913

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by imiric on Saturday March 30, 2024 @02:21AM (#39872325)
Alright, that's fair. But I mentioned them as an example. Surely liblzma is a dependency in many projects, and _none_ of them noticed anything strange, until an end user did?

This is a tragedy of the commons, and we can't place blame on a single project besides xz itself, yet we can all share part of the blame to collectively do better in the future.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by imiric on Friday March 29, 2024 @10:34PM (#39871323)
One of the primary responsibilities of a maintainer is to ensure the security of the software. If they can't keep up with the pace of development in order to ensure this for their users, then this should be made clear to the community, and a decision should be made about how to proceed. Open source maintenance is an often stressful and thankless role, but this is part of the problem that allowed this to happen. Sure, a sophisticated attacker would be able to fool the eyes of a single tired maintainer, but the chances of that happening are much smaller if there's a stringent high bar of minimum quality, and at least one maintainer understands the code that is being merged in. Change proposals should never be blindly approved, regardless of who they come from.

At the end of the day we have to be able to answer why this happened, and how we can prevent it from happening again. It's not about pointing fingers, but about improving the process.

BTW, there have been several attempts at introducing backdoors in the Linux kernel. Some manage to go through, and perhaps we don't know about others, but many were thwarted due to the extreme vigilance of maintainers. Thankfully so, as everyone is well aware of how critical the project is. I'm not saying that all projects have the resources and visibility of Linux, but clearly vigilance is a requirement for lowering the chances of this happening.

> That's assuming a maintainer wasn't compromised, like in this case.

What makes you say that? Everything I've read about this (e.g. [1]) suggests that this was done by someone who also made valid contributions and gained gradual control of the project, where they were allowed to bypass any checks, if they existed at all. The misplaced trust in external contributions, and the lack of a proper peer review process are precisely what allowed this to happen.

[1]: https://boehs.org/node/everything-i-know-about-the-xz-backdo...

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by zeroCalories on Friday March 29, 2024 @11:14PM (#39871511)
My understanding is that the attacker was the only maintainer of xz, that was trusted by upstream maintainers. They couldn't realistically check his work. The defence against this can't be "do better, volunteer maintainers". Maybe we could have better automated testing and analysis, but OSS is allergic to those.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by imiric on Saturday March 30, 2024 @02:36AM (#39872387)
Sure, I'm not saying this is the only solution, or that it's foolproof. But this should be a wake up call for everyone in the OSS community to do better.

Projects that end up with a single maintainer should raise some flags, and depending on their importance, help and resources should be made available. We've all seen that xkcd, and found it more amusing than scary.

One idea to raise awareness: a service that scans projects on GitHub and elsewhere, and assigns maintenance scores, depending on various factors. The bus factor should be a primary one. Make a scoreboard, badges, integrate it into package managers and IDEs, etc. GitHub itself would be the ideal company to implement this, if they cared about OSS as much as they claim to do.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by zeroCalories on Saturday March 30, 2024 @05:23AM (#39873217)
Okay, so instead of one random Gmail account taking over a critical project, we need two or three?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by AnonymousPlanet on Friday March 29, 2024 @05:21PM (#39869161)
That's a very US centric view and would practically split the open source community along the atlantic at best and fracture it globally at worst. Be careful what you wish for.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by zeroCalories on Friday March 29, 2024 @08:56PM (#39870761)
I trust NATO members.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by AnonymousPlanet on Saturday March 30, 2024 @02:11PM (#39877193)
Oh, how generous.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by rieter on Tuesday April 02, 2024 @03:58PM (#39910216)
Even Turkey?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Meetvelde on Friday March 29, 2024 @04:28PM (#39868646)
That's hard to do when the development of these libraries is so international. Not to mention that it's already so hard to find maintainers for some of these projects. Given that getting a TS clearance is such a long and difficult process, it would almost guarantee more difficulty in finding people to do this thankless job.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by zeroCalories on Friday March 29, 2024 @04:54PM (#39868885)
It doesn't need to be TS for open source(but for closed, I'm leaning yes). But all code for these core technologies need to be tied to a real person that can be charged in western nations. Yes, it will make it harder to get people, but with how important these technologies are, we really should not be using some random guys code in the kernel.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by guinea-unicorn on Friday March 29, 2024 @05:33PM (#39869256)
Don't forget that the NSA bribed RSA (the company) to insert a backdoor into their RNG. Being in western jurisdiction doesn't mean you won't insert backdoors into code. It just changes whom you will target with these backdoors. But they all equally make our technology less trustworthy so they are all equally despicable.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by zeroCalories on Friday March 29, 2024 @05:40PM (#39869319)
It will significantly cut down on Russian and Chinese back doors, which is still an improvement, Mr. Just Made an Account.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by rwmj on Friday March 29, 2024 @04:29PM (#39868666)
That just means the bad actors will all have clearance while putting in a bunch of hurdles for amateur contributors. The only answer is the hard one, constant improvement in methods to detect and mitigate bugs.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by zeroCalories on Friday March 29, 2024 @05:04PM (#39868994)
"Constant improvement" sounds like "constantly playing catch-up". Besides that, someone with TS can be arrested and charged, and I don't want amateur contributors.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by msm_ on Friday March 29, 2024 @07:37PM (#39870238)
>and I don't want amateur contributors.

And you're free to not accept amateur contributions to the OS projects you maintain. Hell, you can require security clearance for your contributors right now, if you want.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by zeroCalories on Friday March 29, 2024 @08:53PM (#39870739)
Software like that already exists. I'm saying open source should do better.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by isbvhodnvemrwvn on Friday March 29, 2024 @05:04PM (#39868999)
This only ensures the backdoors are coming from governments that issued the clearances, nothing more. I prefer more competition, at least there is incentive to detect those issues.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by zeroCalories on Friday March 29, 2024 @05:16PM (#39869110)
It will ensure that my OS doesn't have code from random Gmail accounts. If someone with U.S clearance submits a backdoor, they should either be charged in the U.S, or extradited to somewhere that will charge them. We have no idea who this person is, and even if we did we probably could not hold them accountable.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by failbuffer on Friday March 29, 2024 @07:01PM (#39869964)
Killing your pipeline for innovation and talent development doesn't make you secure, it makes you fall behind. The Soviet Union found this out the hard way when they made a policy decision to steal chip technology instead of investing in their own people. They were outpaced and the world came to use chips, networks, and software designed by Americans.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by zeroCalories on Friday March 29, 2024 @08:54PM (#39870751)
That's the exact opposite of what I'm saying we do. We need to invest in engineers we can trust, and cut off those we can't.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by mardifoufs on Saturday March 30, 2024 @12:04AM (#39871742)
Who's we? Americans? Sure that's fine for you, but Americans aren't exactly trustworthy outside of the US either and I say that as someone who's usually pro US. This sort of mentality just shows a lack of understanding of how most of the world sees the US. Even in places like say, france, the us is seen as an ally but a very untrustworthy one. Especially since out of all the confirmed backdoors up until now, most of them were actually US made.

If this backdoor turns out to be linked to the US, what would your proposal even solve?

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by zeroCalories on Saturday March 30, 2024 @05:16AM (#39873182)
"We" doesn't have to be the U.S. This is a false dichotomy that I see people in this thread keep pushing. I suspect in bad faith, by the people that want to insert backdoors. As a baseline, we could keep the contributors to NATO and friends. If a programmer is caught backdooring, they can be charged and extradited to and from whatever country.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by arter4 on Saturday March 30, 2024 @10:21AM (#39875159)
If it's just an extradition issue, the US has extradition treaties with 116 countries. You'd still have to 1) ensure that user is who they say they are (an ID?) and 2) they are reliable and 3) no one has compromised their accounts.

1) and 3) (and, to an extent, 2) )are routinely done, to some degree, by your average security-conscious employer. Your employer knows who you are and probably put some thought on how to avoid your accounts getting hacked.

But what is reliability? Could be anything from "this dude has no outstanding warrants" to "this dude has been extensively investigated by a law enforcement agency with enough resources to dig into their life, finances, friends and family, habits, and so on".

I might be willing to go through these hoops for an actual, "real world" job, but submitting myself to months of investigation just to be able to commit into a Github repository seems excessive.

Also, people change, and you should be able to keep track of everyone all the time, in case someone gets blackmailed or otherwise persuaded to do bad things. And what happens if you find out someone is a double agent? Rolling back years of commits can be incredibly hard.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by zeroCalories on Saturday March 30, 2024 @11:41AM (#39875907)
Getting a TS equivalent is exactly what helps minimize them chances that someone is compromised. Ideally, such an investigation would be transferable between jobs/projects, like normal TS clearance is. If someone is caught, yes rolling back years isn't practical, but we probably ought to look very closely at what they've done, like is probably being done with xz.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by arter4 on Saturday March 30, 2024 @11:51AM (#39876001)
I guess it depends on the ultimate goal.

If the ultimate goal is to avoid backdoors in critical infrastructures (think government systems, financial sector, transportation,...) you could force those organizations to use forks managed by an entity like CISA, NIST or whatever.

If the ultimate goal is to avoid backdoors in random systems (i.e. for "opportunistic attacks"), you have to keep in mind random people and non-critical companies can and will install unknown OSS projects as well as unknown proprietary stuff, known but unmaintained proprietary stuff (think Windows XP), self-maintained code, and so on. Enforcing TS clearances on OSS projects would not significantly mitigate that risk, IMHO.

Not to mention that, as we now know, allies spy and backdoor allies (or at least they try)... so an international alliance doesn't mean intelligence agencies won't try to backdoor systems owned by other countries, even if they are "allies".

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by zeroCalories on Saturday March 30, 2024 @01:34PM (#39876834)
The core systems of Linux should be secured, regardless of who is using it. We don't need every single open source project to be secured. It's not okay to me that SSH is potentially vulnerable, just because it's my personal machine. As for allies spying on each other, that certainly happens, but is a lot harder to do without significant consequences. It will be even harder if we make sure that every commit is tied to a real person that can face real consequences.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by arter4 on Saturday March 30, 2024 @02:07PM (#39877138)
The "core systems of Linux" include the Linux kernel, openssh, xz and similar libraries, coreutils, openssl, systemd, dns and ntp clients, possibly curl and wget (what if a GET on a remote system leaks data?),... which are usually separate projects.

The most practical way to establish some uniform governance over how people use those tools would involve a new OS distribution, kinda like Debian, Fedora, Slackware,... but managed by NIST or equivalent, which takes whatever they want from upstream and enrich it with other features.

But it doesn't stop here. What about browsers (think about how browsers protect us from XSS)? What about glibc, major interpreters and compilers? How do you deal with random Chrome or VS Code extensions? Not to mention "smart devices"...

Cybersecurity is not just about backdoors, it is also about patching software, avoiding data leaks or misconfigurations, proper password management, network security and much more.

Relying on trusted, TS cleared personnel for OS development doesn't prevent companies from using 5-years old distros or choosing predictable passwords or exposing critical servers to the Internet.

As the saying goes, security is not a product, it's a mindset.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by zeroCalories on Saturday March 30, 2024 @05:28PM (#39878848)
We wouldn't have to change the structure of the project to ensure that everyone is trustworthy.

As for applications beyond the core system, that would fall on the individual organizations to weigh the risks. Most places already have a fairly limited stack and do not let you install whatever you want. But given that the core system isn't optional in most cases, it needs extra care. That's putting aside the fact that most projects are worked on by big corps that do go after rogue employees. Still, I would prefer if some of the bigger projects were more secure as well.

Your "mindset" is basically allowing bad code into the Kernel and hoping that it gets caught.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by arter4 on Sunday March 31, 2024 @04:21AM (#39882452)
>Your "mindset" is basically allowing bad code into the Kernel and hoping that it gets caught.

Not at all. I'm talking about running more and more rigorous security tests because you have to catch vulnerabilities, 99% of which are probably introduced accidentally by an otherwise good, reliable developer.

This can be done in multiple ways. A downstream distribution which adds its own layers of security tests and doesn't blindly accept upstream commits. An informal standard on open source projects, kinda like all those Github projects with coverage tests shown on the main repo page. A more formal standard, forcing some critical companies to only adopt projects with a standardized set of security tests and with a sufficiently high score. All these approaches focus on the content, not on the authors, since you can have a totally good-willing developer introducing critical vulnerabilities (not the case here, apparently, but it happens all the time).

On top of that, however, you should also invest in training, awareness, and other "soft" issues that are actually crucial in order to actualy improve cybersecurity. Using the most battle-tested operating systems and kernels is not enough if someone actually puts sensitive data on an open S3 bucket, or if someone only patches their systems once a decade, or if someone uses admin/admin on an Internet-facing website.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by colinsane on Friday March 29, 2024 @05:37PM (#39869290)
how many people in PRISM had such clearance? and how many of them would i trust? precisely zero.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by vmladenov on Friday March 29, 2024 @05:10PM (#39869061)
This seems infeasible for projects like LLVM that depend on international collaboration.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by okasaki on Friday March 29, 2024 @05:42PM (#39869328)
A quote from... your arse?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by joveian on Friday March 29, 2024 @07:00PM (#39869958)
That is what I thought too but it wasn't hard to find:

https://darknetdiaries.com/transcript/21/

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by threeseed on Friday March 29, 2024 @06:24PM (#39869649)
It's also a known fact that China will coerce people by threatening family and friends.

Seen this happen to friends here in Australia who were attending pro-Taiwan protests.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by dang on Friday March 29, 2024 @07:02PM (#39869971)
We detached this subthread from https://news.ycombinator.com/item?id=39867106.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by hangonhn on Friday March 29, 2024 @03:17PM (#39867911)
I imagine it might be easier to just compromise a weakly protected account than to actual put in a 2 years long effort with real contributions. If we mandated MFA for all contributors who contribute to these really important projects then we can know with greater certainty if it was really a long con vs. a recently compromised account.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by the8472 on Friday March 29, 2024 @04:22PM (#39868596)
github already mandates MFA for members of important projects
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by rst on Friday March 29, 2024 @08:02PM (#39870394)
Which helps with some kinds of threats, but not all. It keeps someone from pretending to be the maintainer -- but if an actual maintainer is compromised, coerced, or just bad from the start and biding their time, they can still do whatever they want with full access rights.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by the8472 on Friday March 29, 2024 @08:43PM (#39870675)
You probably should have replied that to the GP, not me. I only clarified that what they were suggesting already is the case.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by rvense on Friday March 29, 2024 @05:43PM (#39869336)
Doesn't it mandate it for everyone? I don't use it anymore and haven't logged in since forever, but I think I got a series of e-mails that it was being made mandatory.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ryukoposting on Friday March 29, 2024 @06:33PM (#39869739)
It will soon. I think I have to sort it out before April 4. My passwords are already >20 random characters, so I wasn't going to do it until they told me to.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by pabs3 on Saturday March 30, 2024 @05:55AM (#39873360)
If you are using pass to store those, check out pass-otp and browserpass, since GitHub still allows TOTP for MFA. pass-otp is based on oathtool, so you can do it more manually too if you don't use pass.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ryukoposting on Tuesday April 02, 2024 @09:13AM (#39905372)
My solution is far shittier than any of those.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by loeg on Friday March 29, 2024 @07:01PM (#39869963)
It mandates it for everyone. I'm locked out of Github because fuck that.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by illusive4080 on Friday March 29, 2024 @07:56PM (#39870353)
Why opposed to MFA? Source code is one of the most important assets in our realm.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by userbinator on Friday March 29, 2024 @08:25PM (#39870556)
Freedom is far more important.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by illusive4080 on Friday March 29, 2024 @08:28PM (#39870571)
But you can use any totp authenticator. The protocol is free and open.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by userbinator on Friday March 29, 2024 @08:36PM (#39870627)
It's more to make the point that "no means no." An act of protest.

(I have written a TOTP implementation myself. I do not have a GH account, and likely never will.)

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Dylan16807 on Friday March 29, 2024 @08:48PM (#39870712)
It's ridiculous to say "no means no" about not wanting to use a password to get an account, right?

What makes TOTP different from a password in terms of use or refusal?

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ndriscoll on Friday March 29, 2024 @10:45PM (#39871390)
Browsers don't save the TOTP seed and auto fill it for you for one, making it much less user friendly than a password in practice.

The main problem I have with MFA is that it gets used too frequently for things that don't need that much protection, which from my perspective is basically anything other than making a transfer or trade in my bank/brokerage. Just user-hostile requiring of manual action, including finding my phone that I don't always keep on me.

It's also often used as a way to justify collecting a phone number, which I wouldn't even have if not for MFA.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by saagarjha on Saturday March 30, 2024 @08:43AM (#39874324)
Mine does. Yours doesn't?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jeromegv on Saturday March 30, 2024 @09:15AM (#39874561)
We are talking of non-SMS MFA
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by creatonez on Friday March 29, 2024 @08:38PM (#39870638)
Should you have the freedom to put in a blank password, too?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by voidz on Saturday March 30, 2024 @03:46AM (#39872734)
My password is a single 'a'. Nobody will ever guess that one.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Freedom2 on Saturday March 30, 2024 @02:31AM (#39872368)
They have the freedom to request whatever authentication method they want.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by hobobaggins on Friday March 29, 2024 @08:34PM (#39870609)
Most people will have to sync their passwords (generally strong and unique, given that it's for github) to the same device where their MFA token is stored, rendering it (almost) completely moot, but at a significantly higher risk of permanent access loss (depending on what they do with the reset codes, which, if compromised, would also make MFA moot.) (a cookie theft makes it all moot as well.)

The worse part is that people think they're more protected, when they're really not.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Dylan16807 on Friday March 29, 2024 @08:52PM (#39870738)
Bringing everyone up to the level of "strong and unique password" sounds like a huge benefit. Even if your "generally" is true, which I doubt, that leaves a lot of gaps.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by account42 on Thursday April 04, 2024 @04:46AM (#39927967)
Doesn't help that a lot of companies still just allow anyone with access to the phone number to gain access to the account (via customer support or automated SMS-based account recovery).
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by loeg on Friday March 29, 2024 @08:54PM (#39870747)
It's inconvenient, SMS 2FA is arguably security theater, and redundant with a real password manager. Hopefully Passkeys kills 2FA for most services.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Hawxy on Friday March 29, 2024 @09:06PM (#39870841)
FYI github already supports using passkeys as a combined login/2FA source. I haven't used my 2FA codes for a while now.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by illusive4080 on Sunday March 31, 2024 @02:21PM (#39886642)
SMS 2FA is the devil. It’s the reason I haven’t swapped phone numbers even though I get 10-15 spam texts a day. The spam blocking apps don’t help and intrude on my privacy.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by LtWorf on Friday March 29, 2024 @09:27PM (#39870969)
My source code is important to others but not to me. I have backups. but 2FA is annoying to me.

It's very easy to permanently lose accounts when 2FA is in use. If I lose my device my account is gone for good.

Tokens from github never expire, and can do everything via API without ever touching 2FA, so it's not that secure.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Brian_K_White on Friday March 29, 2024 @09:49PM (#39871075)
"If I lose my device my account is gone for good."

Incorrect, unless you choose not to record your seeds anywhere else, which is not a 2fa problem.

2fa is in the end nothing more than a 2nd password that just isn't sent over the wire when used.

You can store a totp seed exactly the same as a password, in any form you want, anywhere you want, and use on a brand new device at any time.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by LtWorf on Saturday March 30, 2024 @02:03AM (#39872243)
> Incorrect, unless you choose not to record your seeds anywhere else, which is not a 2fa problem.

You know google authenticator app introduced a backup feature less than 1 year ago right?

You know phones break all the time right?

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Brian_K_White on Saturday March 30, 2024 @02:45AM (#39872418)
You know google authenticator doesn't matter right? You know you could always copy your totp seeds since day one regardless of which auth app or it's features or limits right? You know that a broken device does not matter at all, because you have other copies of your seeds just like the passwords, right?

When I said they are just another password, I was neither lying nor in error. I presume you can think of all the infinite ways that you would keep copies of a password so that when your phone or laptop with keepassxc on it breaks, you still have other copies you can use. Well when I say just like a password, that's what I mean. It's just another secret you can keep anywhere, copy 50 times in different password managers or encrypted files, print on paper and stick in a safe, whatever.

Even if some particular auth app does not provide any sort of manual export function (I think google auth did have an export function even before the recent cloud backup, but let's assume it didn't), you can still just save the original number the first time you get it from a qr code or a link. You just had to know that that's what those qr codes are doing. They aren't single-use, they are nothing more than a random secret which you can keep andbcopy and re-use forever, exactly the same as a password. You can copy that number into any password manager or plain file or whatever you want just like a password, and then use it to set up the same totp on 20 different apps on 20 different devices, all working at the same time, all generating valid totp codes at the same time, destroy them all, buy a new phone, retrieve any one of your backup keepass files or printouts, and enter them into a fresh app on a fresh phone and get all your totp fully working again. You are no more locked out than by having to reinstall a password manager app and access some copy of your password db to regain the ordinary passwords.

The only difference from a password is, the secret is not sent over the wire when you use it, something derived from it is.

Google authenticators particular built in cloud copy, or lack of, doesn't matter at all, and frankly I would not actually use that particular feature or that particular app. There are lots of totp apps on all platforms and they all work the same way, you enter the secret give it a name like your bank or whatever, select which algorithm (it's always the default, you never have to select anything) and instantly the app starts generating valid totp codes for that account the same as your lost device.

Aside from saving the actual seed, let's say you don't have the original qr code any more (you didn't print it or screenshot it or right-click save image?) there is yet another emergency recovery which is the 10 or 12 recovery passwords that every site gives you when you first set up totp. You were told to keep those. They are special single-use passwords that get you in without totp, but each one can only be used once. So, you are a complete space case and somehow don't have any other copiesbof your seeds in any form, including not even simple printouts or screenshots of the original qr code, STILL no problem. You just burn one of your 12 single-use emergency codes, log in, disable and re-enable totp on that site, get a new qr code and a new set of emergency codes. Your old totp seed and old emergency codes no longer work so thow those out. This time, not only keep the emergency codes, also keep the qr code, or more practical, just keep the seed value in the qr code. It's right there in the url in the qr code. Sometimes they even display the seed value itself in plain text so that you can cut & paste it somewhere, like into a field in keepass etc.

In fact keepass apps on all platforms also will not only store the seed value but display the current totp for it just like a totp app does. But a totp app is a more convenient.

And for proper security, you technically shouldn't store both the password and the totp seed for an account in the same place, so that if someone gains access to one, they don't gain access to both. That's inconvenient but has to be said just for full correctness.

I think most sites do a completely terrible job of conveying just what totp is when you're setting it up. They tell you to scan a qr code but they kind of hide what that actually is. They DO all explain about the emergency codes but really those emergency codes are kind of stupid. If you can preserve a copy of the emergency codes, then you can just as easily preserve a copy of the seed value itself exactly the same way, and then, what's the point of a hanful of single-use emergency passwords when you can just have your normal fully functional totp seed?

Maybe one use for the emergency passwords is you could give them to different loved ones instead of your actual seed value?

Anyway if they just explained how totp basically works, and told you to keep your seed value instead of some weird emergency passwords, you wouldn't be screwed when a device breaks, and you would know it and not be worried about it.

Now, if, because of that crappy way sites obscure the process, you currently don't have your seeds in any re-usable form, and also don't have your emergency codes, well then you will be F'd when your phone breaks.

But that is fixable. Right now while it works you can log in to each totp-enabled account, and disable & reenable totp to generate new seeds, and take copies of them this time. Set them up on some other device just to see that they work. Then you will no longer have to worry about that.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Takennickname on Saturday March 30, 2024 @07:49AM (#39873952)
ChatGPT summary:

It emphasizes that TOTP seeds, like passwords, can be copied and securely stored in multiple ways, ensuring access even if a device is lost or breaks. The text criticizes the common misunderstanding and undercommunication regarding the nature of TOTP seeds and emergency recovery codes provided during setup, suggesting that proper management and backup of these seeds eliminate the risk of losing access to accounts protected by TOTP. It also touches on security practices, like not storing TOTP seeds and passwords together, to prevent simultaneous compromise.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by LtWorf on Saturday March 30, 2024 @06:45PM (#39879428)
> since day one

But if you forgot to do it on day one, you can't do it on day two because there is no way of getting them out other than rooting the phone.

Giving how your premise was wrong, I won't bother to read that novel you wrote. I'll just assume it's all derived from the wrong premise.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Brian_K_White on Saturday March 30, 2024 @08:15PM (#39879996)
My original statement was only that this is not a 2fa problem, which was and still is true.

The fact that you did not know this does not change this fact.

I acknowledged that web sites don't explain this well, even actively hide it. So it's understandable not to know this.

But I also reminded that this doesn't actually matter because you WERE also given emergency recovery passwords, and told to keep them, and told why, and how important they were.

You were never at risk of being locked out from a broken device EVEN THOUGH you didn't know about saving the seed values, UNLESS you also discarded the emergency codes, which is not a 2fa problem, it's an "I didn't follow directions" problem.

And even if all of that happened, you can still, right now, go retroactively fix it all, and get all new seed values and save them this time, as long long as your one special device happens to be working right now. It doesn't matter what features google authenticator has today, or had a year ago. It's completely and utterly irrelevant.

My premis remains correct and applicable. Your statement that 2fa places you at at risk was incorrect. You may possibly be at risk, but if so you did that to yourself, 2fa did not do that to you.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by LtWorf on Tuesday April 02, 2024 @12:54AM (#39902513)
> But I also reminded that this doesn't actually matter because you WERE also given emergency recovery passwords, and told to keep them, and told why, and how important they were.

Ah yes those… the codes I must go to a public library to print, on a public computer, public network and public printer. I can't really see any problem with the security of this.

And then I must never forget where I put that very important piece of paper. Not in 10 years and after moving 3 times…

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Brian_K_White on Tuesday April 02, 2024 @05:51AM (#39903919)
You can save a few bits of text any way you want. You can write them in pencil if you want just as a backup against google killing your google drive or something. Or just keep them in a few copies of a password manager db in a few different places. It's trivial.

What in the world is this library drama?

No one is this obtuse, so your arguments are most likely disingenuous.

But if they are sincere, then find a nephew or someone to teach you how your computer works.

Libraries? Remembering something for 10 years? Moving? Oh the humanity!

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by account42 on Thursday April 04, 2024 @04:53AM (#39928005)
> You can save a few bits of text any way you want.

So I can keep them on the same device that I keep my passwords, right?

> Or just keep them in a few copies of a password manager db in a few different places.

Great now you no longer have 2FA but just a longer password.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Brian_K_White on Thursday April 04, 2024 @06:13PM (#39936451)
Yes, you can keep them on the same device if you choose to.

Or not. You decide how much effort you want and where you want to place the convenience vs security slider.

Yes, if you keep both factors not only on the same device but in the same password manager, then both factors essentially combine into nothing but a longer password.

I did say from the very first, that the seeds are nothing other than another password.

Except there is still at least one difference which I will say for at least the 3rd time... the totp secret is not transmitted over the wire when it is used, the password is. That is actually a significant improvement all by itself even if you do everything else the easy less secure way.

And you do not have to store the seeds the convenient less secure way. You can have them in a different password app with a different master password on the same device, or on seperate devices, or in seperate physical forms. You can store them any way you want, securely, or less securely.

The point is that even while opting to do things all the very secure way, you are still not locked out of anything when a single special device breaks, because you are not limited to only keeping a single copy of the seeds or the emergency passwords in a single place like on a single device or a single piece of paper.

You are free to address any "but what about" questions you decide you care about in any way you feel like.

The only way you were ever screwed is by the fact that the first time you set up 2fa for any site, most sites don't explain the actual mechanics but just walk you through a sequence of actions to perform without telling you what they actually did, and so at the end of following those directions you ARE left with the seeds only stored in a single place. And in the particular case of Google Authenticator, stored in a more or less inaccessible place in some android sqlite file you can't even manually get to without rooting your phone probably. And were never even told about the seed value at all. You were given those emergency passwords instead.

That does leave you with a single precious drvice that must not break or be lost. But the problem is only a combination of those bad directions given by websites, and the limitations of one particular totp app when that app didn't happen to display or export or cloud-backup the seeds until recently.

Even now Googles answer is a crap answer, because Google can see the codes unencrypted on their server, and Google can kill your entire gooogle account at sny time and you lose everything, email, drive , everything, instantly, no human to argue with. That is why I said even today I still would not use Google Authenticator for totp.

Except even in that one worst case, you still had the emergency passwords, which you were always free to keep in whatever way works for you. There is no single thing you must or must not do, there is only what kinds of problems are the worst problems for you.

Example: if what you are most concerned about is someone else getting ahold of a copy of those emergency passwords, then you want to have very few copies of them and they should be off-line and inconvenient to access. IE a printed hard copy in a safe deposit box in switzerland.

If what you are most concerned about is accidentally destroying your life savings by losing the password and the investment site has no further way to let you prove your ownership, then keep 10 copies in 10 different physical forms and places so that no matter what happens, you will always be able to access at least one of them. One on goggle drive, one on someone else's google drive in case yours is killed, one on onedrive, one on paper at home, one on paper in your wallet, one on your previous phonr that you don't use but still works, etc etc.

You pick whichever is your biggest priority, and address that need however you want, from pure convenience to pure security and all possible points in between. The convenient way has security downsides. The secure way has convenience downsides. But you are not forced to live with the downsides of either the convenient way or the secure way.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Brian_K_White on Sunday March 31, 2024 @02:31PM (#39886740)
My original, correct, message was perfectly short.

You don't like long full detailed explainations, and you ignore short explainations. Pick a lane!

A friend of mine a long time ago used to have a humorous classification system, that people fell into 3 groups: The clued, The clue-able, The clue-proof.

Some people already understand a thing. Some people do not understand a thing, but CAN understand it. Some people exist in a force bubble of their own intention that actively repels understanding.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by LtWorf on Sunday March 31, 2024 @03:33PM (#39887311)
I see that in your classification system an important entry is missing. The ones who disagree.

In your quest to convince me you forgot to even stop to ponder if you're right at all. And in my view, you aren't.

Perhaps the problem isn't that I don't understand you. Perhaps I understand you perfectly well but I understand even more, to realise that you're wrong :)

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Brian_K_White on Sunday March 31, 2024 @03:53PM (#39887477)
You have not shown me being wrong.

No one is stopping you.

This is a silly thing to argue about but hey I'm silly so let's unpack your critique of the classification system

There is no 4th classification. It only speaks of understanding not agreeing.

Things that are matters of opinion may still be understood or not understood.

Whether a thing is a matter of opinion or a matter of fact, both sides of a disagreement still slot into one of those classes.

If a thing is a matter of opinion, then one of the possible states is simply that both sides of a disagreement understand the thing.

In this case, it is not a matter of opinion, and if you want to claim that I am the one who does not understand, that is certainly possible, so by all mrans, show how. What fact did I say that was not true?

Keep trying solier. You never know. (I mean _I_ know, but you don't. As far as you know, until you go find out, I might be wrong.)

Whatever you do, don't actually go find out how how it works.

Instead, continue avoiding finding out how it works, because holy cow after you've gone this far... it's one thing to just be wrong about something, everyone always has to start out not understanding something, that's no failing, but to have no idea what you're talking about yet try to argue about it, in error the whole time..., I mean they (me) were such an insufferable ass already trying to lecture YOU, but for them (me) to turn out to have been simply correct in every single fact they spoke, without even some technicality or anything to save a little face on? Absolutely unthinkable.

Definitely better to save yourself from that by just never investigating.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by LtWorf on Monday April 01, 2024 @04:24AM (#39891875)
> No one is stopping you.

You are too busy writing novels and raging at me to read what I wrote with an open mind.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jeromegv on Saturday March 30, 2024 @09:17AM (#39874572)
There has been other apps doing the same as Google Authenticator for 10 years and they didn’t require you not to lose your phone.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by LtWorf on Saturday March 30, 2024 @06:44PM (#39879417)
And why would I invest the time to figure this all out when the only one being advantaged are others?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jjav on Friday March 29, 2024 @10:14PM (#39871220)
> Why opposed to MFA? Source code is one of the most important assets in our realm.

Because if you don't use weak passwords MFA doesn't add value. I do recommend MFA for most people because for most people their password is the name of their dog (which I can look up on social media) followed by "1!" to satisfy the silly number and special character rules. So yes please use MFA.

But if your (like my) passwords are 128+bits out of /dev/random, MFA isn't adding value.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by admax88qqq on Friday March 29, 2024 @10:33PM (#39871322)
Sure it is. If your system ever gets keylogged and somebody gets your password you are compromised

With MFA even if somebody has your password if they don't have your physical authenticator too then you're relatively safe.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ndriscoll on Saturday March 30, 2024 @12:17AM (#39871793)
If you have a keylogger, they can also just take your session cookie/auth tokens or run arbitrary commands while you're logged in. MFA does nothing if you're logging into a service on a compromised device.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by mr_mitm on Saturday March 30, 2024 @02:20AM (#39872321)
Keyloggers can be physically attached to your keyboard. There could also be a vulnerability in the encryption of wireles keyboards. Certificate-based MFA is also phishing resistant, unlike long, random, unique passwords.

There are plenty of scenarios where MFA is more secure than just a strong password.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by RaisingSpear on Saturday March 30, 2024 @04:52AM (#39873030)
But password managers typically don't send keyboard commands to fill in a password, so a physical device would be useless.

> There are plenty of scenarios where MFA is more secure than just a strong password.

And how realistic are they? Or are they just highly specific scenarios where all the stars must align, and are almost never going to happen?

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by mr_mitm on Saturday March 30, 2024 @05:51AM (#39873341)
I don't think phishing is such an obscure scenario.

The point is also that you as an individual can make choices and assess risk. As a large service provider, you will always have people who reuse passwords, store them unencrypted, fall for phishing, etc. There is a percentage of users that will get their account compromised because of bad password handling which will cost you, and by enforcing MFA you can decrease that percentage, and if you mandate yubikeys or something similar the percentage will go to zero.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by RaisingSpear on Saturday March 30, 2024 @07:30AM (#39873841)
> I don't think phishing is such an obscure scenario.

For a typical person, maybe, but for a tech-minded individual who understands security, data entropy and what /dev/random is?

And I don't see how MFA stops phishing - it can get you to enter a token like it can get you to enter a password.

I'm also looking at this from the perspective of an individual, not a service provider, so the activities of the greater percentage of users is of little interest to me.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by mr_mitm on Saturday March 30, 2024 @07:42AM (#39873910)
> And I don't see how MFA stops phishing - it can get you to enter a token like it can get you to enter a password.

That's why I qualified it with "certificate-based". The private key never leaves the device, ideally a yubikey-type device.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by RaisingSpear on Saturday March 30, 2024 @07:54AM (#39873986)
> That's why I qualified it with "certificate-based". The private key never leaves the device

Except that phishing doesn't require the private key - it just needs to echo back the generated token. And even if that isn't possible, what stops it obtaining the session token that's sent back?

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by mr_mitm on Saturday March 30, 2024 @08:29AM (#39874206)
The phisher will not receive a valid token, though, because you sign something that contains the domain you are authenticating to.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by RaisingSpear on Saturday March 30, 2024 @08:54AM (#39874395)
The phisher can just pass on whatever you sign, and capture the token the server sends back.

Sure, you can probably come up with some non-HTTPS scheme that can address this, but I don't see any site actually doing this, so you're back to the unrealistic scenario.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by mr_mitm on Saturday March 30, 2024 @10:45AM (#39875373)
No, because the phisher will get a token that is designated for, say, mircos0ft.com which microsoft.com will not accept. It is signed with the user's private key and the attacker cannot forge a signature without it.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by RaisingSpear on Sunday March 31, 2024 @06:25AM (#39882981)
I think we're talking past each other a bit here.

If I were trying to phish someone, I wouldn't attack the public key crypto part, so how domains come into play during authentication doesn't matter. I'd just grab the "unencrypted" session token at the end of the exchange.

Even if you somehow protected the session token (sounds dubious), there's still plenty a phisher could do, since it has full MITM capability.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by account42 on Thursday April 04, 2024 @05:05AM (#39928080)
A password manager is also not going to fill in the password on mircos0ft.com so is perfectly safe in this scenario. You need a MitM-style attack or a full on client compromise in both cases, which are vulnerable to session cookie exfiltration or just remote control of your session no matter the authentication method.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by smw on Saturday March 30, 2024 @10:17AM (#39875121)
Doesn't work for FIDO-based tokens, they auth the site as well, so won't send anything to phishing site.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by RaisingSpear on Sunday March 31, 2024 @06:22AM (#39882969)
From my understanding, FIDO isn't MFA though (the authenticator may present its own local challenge, but I don't think the remote party can mandate it).

There's also the issue of how many sites actually use it, as well as how it handles the loss of or inability to access private keys etc. I generally see stuff like 'recovery keys' being a solution, but now you're just back to a password, just with extra steps.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ndriscoll on Saturday March 30, 2024 @10:24AM (#39875187)
These scenarios are getting into some Mission Impossible level threats.

Most people use their phones most of the time now, meaning the MFA device is the same device they're using.

Of the people who aren't using a phone, how many are using a laptop with a built in keyboard? It's pretty obvious if you have a USB dongle hanging off your laptop.

If you're using a desktop, it's going to be in a relatively secure environment. Bluetooth probably doesn't even reach outside. No one's breaking into my house to plant a keylogger. And a wireless keyboard seems kind of niche for a desktop. It's not going to move, so you're just introducing latency, dropouts, and batteries into a place where they're not needed.

Long, random, unique passwords are phishing resistant. I don't know my passwords to most sites. My web browser generates and stores them, and only uses them if it's on the right site. This has been built in functionality for years, and ironically it's sites like banks that are most likely to disable auto fill and require weak, manual passwords.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by mr_mitm on Saturday March 30, 2024 @11:35AM (#39875827)
I mean, both can be true at the same time. I have to admit that I only use MFA when I'm forced to, because I also believe my strong passwords are good enough. Yet I can still acknowledge that MFA improves security further and in particular I can see why certain services make it a requirement, because they don't control how their users choose and use their passwords and any user compromise is associated with a real cost, either for them like in the case of credit card companies or banks, or a cost for society, like PyPI, Github, etc.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by martinflack on Saturday March 30, 2024 @10:48AM (#39875403)
These days I wonder about all the cameras in a modern environment and "keylogging" from another device filming the user typing.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by heyoni on Saturday March 30, 2024 @12:33AM (#39871857)
Session keys expire and can be scoped to do anything except reset password, export data, etc…that’s why you’ll sometimes be asked to login again on some websites.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ndriscoll on Saturday March 30, 2024 @12:51AM (#39871919)
If you're on a service on a compromised device, you have effectively logged into a phishing site. They can pop-up that same re-login page on you to authorize whatever action they're doing behind the scenes whenever they need to. They can pretend to be acting wonky with a "your session expired log in again" page, etc.

This is part of why MFA just to log in is a bad idea. It's much more sensible if you use it only for sensitive actions (e.g. changing password, authorizing a large transaction, etc.) that the user almost never does. But you need everyone to treat it that way, or users will think it's just normal to be asked to approve all the time.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by snnn on Saturday March 30, 2024 @02:06AM (#39872266)
Some USB keys have a LCD screen on it to prevent that. You can comprise the computer that the key was inserted to, but you cannot comprise the key. If you see the things messages shows up on your computer screen differs from the messages on the key, you reject the auth request.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by throwaway2990 on Saturday March 30, 2024 @12:24AM (#39871821)
Haha yes they do. Everyone stores their 2fa in 1Password so once that’s stolen by a key longer they’re fucked.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by 12_throw_away on Friday March 29, 2024 @11:59PM (#39871720)
> But if your (like my) passwords are 128+bits out of /dev/random, MFA isn't adding value.

no. a second factor of authentication is completely orthogonal to password complexity.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by samatman on Friday March 29, 2024 @10:26PM (#39871280)
The slogan is "something you know and something you have", right?

I don't have strong opinions about making it mandatory, but I turned on 2FA for all accounts of importance years ago. I use a password manager, which means everything I "know" could conceivably get popped with one exploit.

It's not that much friction to pull out (or find) my phone and authenticate. It only gets annoying when I switch phones, but I have a habit of only doing that every four years or so.

You sound like you know what you're doing, that's fine, but I don't think it's true that MFA doesn't add security on average.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jjav on Friday March 29, 2024 @10:49PM (#39871408)
> It only gets annoying when I switch phones

Right. I don't ever want to tie login to a phone because phones are pretty disposable.

> I don't think it's true that MFA doesn't add security on average

You're right! On average it's better, because most people have bad password and/or reuse them in more than one place. So yes MFA is better.

But if your password is already impossible to guess (as 128+ random bits are) then tacking on a few more bytes of entropy (the TOTP seed) doesn't do much.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by satokema on Friday March 29, 2024 @11:29PM (#39871603)
Those few bits are the difference between a keylogged password holder waltzing in and an automated monitor noticing that someone is failing the token check and locking the account before any damage occurs.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by StillBored on Saturday March 30, 2024 @01:48AM (#39872180)
I think your missing parents point, both are just preshared keys, one has some additional fuzz around it so that the user in theory isn't themselves typing the same second key in all the time, but much of that security is in keeping the second secret in a little keychain device that cannot itself leak the secret. Once people put the seeds in their password managers/phones/etc its just more data to steal.

Plus, the server/provider side remains a huge weak point too. And the effort of enrolling/giving the user the initial seed is suspect.

This is why the FIDO/hardware passkeys/etc are so much better because is basically hardware enforced two way public key auth, done correctly there isn't any way to leak the private keys and its hard has hell to MITM. Which is why loss of the hw is so catastrophic. Most every other MFA scheme is just a bit of extra theater.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jjav on Saturday March 30, 2024 @03:00AM (#39872490)
> both are just preshared keys

Exactly, that's it. Two parties have a shared secret of, say 16 bytes total, upon which authentication depends.

They could have a one byte long password but a 15 byte long shared secret used to compute the MFA code. The password is useless but the MFA seed is unguessable. Maybe have no password at all (zero length) and 16 byte seed. Or go the other way and a 16 byte password and zero seed. In terms of an attacker brute forcing the keyspace, it's always the same, 16 bytes.

We're basically saying (and as a generalization, this is true) that the password part is useless since people will just keep using their pets name, so let's put the strenght on the seed side. Fair enough, that's true.

But if you're willing to use a strong unique password then there's no real need.

(As to keyloggers, that's true, but not very interesting. If my machine is already compromised to the level that it has malicious code running logging all my input, it can steal both the passwords and the TOTP seeds and all the website content and filesystem content and so on. Game's over already.)

> This is why the FIDO/hardware passkeys/etc are so much better

Technically that's true. But in practice, we now have a few megacorporations trying to own your authentication flow in a way that introduces denial of service possibilities. I must control my authentication access, not cede control of it to a faceless corporation with no reachable support. I'd rather go back to using password123 everywhere.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by White_Wolf on Saturday March 30, 2024 @08:36AM (#39874247)
Your password is useless when it comes to hardware keyloggers. We run yearly tests to see if people check for "extra hardware". Needles to say we have a very high failure rate.

It's hard to get a software keylooger installed on a corp. machine. It's easy to get physical access to the office or even their homes and install keyloggers all over the place and download the data via BT.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jjav on Saturday March 30, 2024 @01:00PM (#39876525)
> Your password is useless when it comes to hardware keyloggers.

You are of course correct.

This is where threat modeling comes in. To really say if something is more secure or less secure or a wash, threat modeling needs to be done, carefully considering which threats you want to cover and not cover.

I this thread I'm talking from the perspective of an average individual with a personal machine and who is not interesting enough to be targeted by corporate espionage or worse.

Thus, the threat of operatives breaking into my house and installing hardware keyloggers on my machines is not part of my threat model. I don't care about that at all, for my personal use.

For sensitive company machines or known CxOs and such, yes, but that's a whole different discussion and threat model exercise.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by __s on Friday March 29, 2024 @03:53PM (#39868294)
This seems like a great way to invest in supporting open source projects in meantime if these projects are being used by these actors. Just have to maintain an internal fork without the backdoors

Maybe someone can disrupt the open source funding problem by brokering exploit bounties /s

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by guinea-unicorn on Friday March 29, 2024 @05:36PM (#39869285)
I find it funny how MFA is treated as if it would make account takeover suddenly impossible. It's just a bit more work, isn't it? And a big loss in convenience.

I'd much rather see passwords entirely replaced by key-based authentication. That would improve security. Adding 2FA to my password is just patching a fundamentally broken system.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ryukoposting on Friday March 29, 2024 @06:31PM (#39869714)
Customer service at one of my banks has an official policy of sending me a verification code via email that I then read to them over the phone, and that's not even close to the most "wrong" 2FA implementation I've ever seen. Somehow that institution knows what a YubiKey is, but several major banks don't.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Liquix on Friday March 29, 2024 @08:18PM (#39870502)
Financial institutions are very slow to adopt new tech. Especially tech that will inevitably cost $$$ in support hours when users start locking themselves out of their accounts. There is little to no advantage to being the first bank to implement YubiKey 2FA. To a risk-averse org, the non-zero chance of a botched rollout or displeased customers outweighs any potential benefit.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by grepfru_it on Saturday March 30, 2024 @12:16AM (#39871789)
Uh many banks provide MFA. And secure with hardware keys. It’s just that your level of assets doesn’t warrant that kind of protection.

Source: worked at all the major banks, all the wealthy clients use hardware MFA

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by heyoni on Saturday March 30, 2024 @12:30AM (#39871846)
They’re a bank. If they can secure their portals with hardware keys, at least allow customers to onboard their own keys.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by LtWorf on Saturday March 30, 2024 @02:51AM (#39872444)
My bank gave me an hardware token to protect my 5k€ account.

Get better banks people :)

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by grepfru_it on Saturday March 30, 2024 @12:08PM (#39876142)
I meant to say in the us. You know how backwards we are here :)
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by wsc981 on Saturday March 30, 2024 @03:58AM (#39872792)
The bank I used in The Netherlands provides a MFA device as well. The device requires an ATM card as well to generate a random number.

This is the default for all their customers, wealthy or not.

https://www.abnamro.nl/en/commercialbanking/internetbanking/...

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by grepfru_it on Saturday March 30, 2024 @12:06PM (#39876127)
I meant to say in the us :)
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by monksy on Friday March 29, 2024 @08:41PM (#39870657)
They're pretty terrible when they do.

For the longest time the max password size was 8 characters and the csr knew what your password was.

Heck I've had Chase security tell me they'd call me back.. dude that's exactly how people get compromised.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by biglost on Saturday March 30, 2024 @12:34AM (#39871862)
A friensd bank, hopefully not the one i use, only allow a password off 6 digits. Yes You read it right, 6 fucking digits to login, i hace him the asvice to run away from that shitty bank
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by foepys on Saturday March 30, 2024 @02:30AM (#39872365)
Did this bank start out as a "telephone bank"? One of the largest German consumer banks still does this because they were the first "direct bank" without locations and typing in digits on the telephone pad was the most secure way of authenticating without telling the "bank teller" your password. So it was actually a good security measure but it is apparently too complicated to update their backend to modern standards.

They do require 2FA, though.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by asm0dey on Saturday March 30, 2024 @04:12AM (#39872868)
DiBa?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by doubled112 on Friday March 29, 2024 @08:56PM (#39870766)
Exactly. 8 character password in the 2010s as the only factor was fine. It was only my money we're talking about.

Now I have to wait for an SMS. Great...

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by throwaway2990 on Saturday March 30, 2024 @12:19AM (#39871800)
SMS is fine on most countries. It’s just America is dumb and allows number transfers to anyone.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by hwertz on Saturday March 30, 2024 @02:47AM (#39872428)
Nope, I read The Register (UK based) and they've had scandals from celebrities having their confidential SMS messages leaked; SMS spoofing; I think they even have SIM cloning going on every now and then in UK and some European countries. (since The Register is a tech site, my recollection is some carriers took technical measures to prevent these issues while quite a few didn't.)

I don't think it's a thing that happens that often in UK etc.; but, it doesn't happen that frequently in the US either. It's just a thing that can potentially happen.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by throwaway2990 on Saturday March 30, 2024 @03:14AM (#39872568)
UK has plenty of other problems to solve first with identity thief.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by croemer on Saturday March 30, 2024 @07:52AM (#39873969)
...where identity is proved by utility bills instead of government issued id
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by doubled112 on Saturday March 30, 2024 @08:12AM (#39874097)
How else do you prove you live some place?

“I pay the bills there” is barely better than nothing, though. We do this in Canada too. It is what I used for a driver’s license one renewal.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by KiwiJohnno on Saturday March 30, 2024 @01:17AM (#39872039)
Its also been a problem in Australia, Optus (2nd biggest teleco) used to allow number porting or activating sim against an existing account with a bare minimum of detail - Like a name, address and date of birth. If you had those details of a target you could clone their SIM and crack any SMS based MFA.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by chris_wot on Saturday March 30, 2024 @08:58AM (#39874431)
Is that alllowed now still?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by throwaway2990 on Saturday March 30, 2024 @06:07PM (#39879137)
Apparently changed in 2022 to protect consumers.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by StillBored on Saturday March 30, 2024 @01:29AM (#39872096)
SMS is not E2E encrypted, so for all intents is just a plain text message that can/has been snooped. Might as well just send a plaintext emails as well.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by eru on Saturday March 30, 2024 @01:20AM (#39872064)
Number transfers in other countries is also mostly just a question of a bit of social engineering.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by throwaway2990 on Saturday March 30, 2024 @03:09AM (#39872539)
No. Most require some form of identification or matching identification between mobile providers.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by macrolime on Saturday March 30, 2024 @11:39AM (#39875875)
I recently had an issue with a sim card and went to phone store that gave me a new one and disabled the old. They're supposed to ask for ID, but often doesn't bother. This is true for pretty much every country. Phone 2FA is simply completely insecure.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by eru on Saturday March 30, 2024 @09:16PM (#39880423)
If the ID matching is done by humans, you can use social engineering on it.

See the sibling comment.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by vladvasiliu on Saturday March 30, 2024 @06:14AM (#39873449)
I don’t know about other parts, but here in France SMS is a shitshow. I regularly fail to receive them even though I know I have good reception.

This happened the other day while I was on a conference call with perfect audio and video using my phone’s mobile data.

A few weeks back, had some shop which sends out an SMS to inform you the job’s done tell me this is usually hit and miss when I complained about not hearing from them.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by high_priest on Saturday March 30, 2024 @09:29AM (#39874660)
Many single radio phones can either receive sms/calls, or transmit data. My relative owns such a device and cannot use internet during calls or receive/make calls during streaming like YT video playback.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by vladvasiliu on Saturday March 30, 2024 @10:11AM (#39875077)
In my case this is an iPhone 14 pro. I'm pretty sure I can receive calls while using data, since I often look things up on the internet while talking to my parents.

And, by the way, the SMS in question never arrived. I don't know if there's some kind of timeout happening, and the network gives up after a while. Some 15 years ago I remember getting texts after an hour or two if I only had spotty reception. This may of course have changed in the meantime, plus this is a different provider.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by dewey on Saturday March 30, 2024 @08:07AM (#39874077)
SS7 is a global issue, and so is social engineering to get a number transferred or SIM card transferred.

https://hitcon.org/2015/CMT/download/day1-d-r0.pdf

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by darkr on Saturday March 30, 2024 @02:29AM (#39872361)
> There is little to no advantage to being the first bank to implement YubiKey 2FA

Ideally they’d just implement passkeys (webauthn/fido). More secure, and it works with iOS, android, 1password, and yubikeys

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by krinchan on Friday March 29, 2024 @09:02PM (#39870813)
Just say BofA.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by snnn on Saturday March 30, 2024 @01:31AM (#39872111)
Not actually. Even if you enabled passkey, you still can login to their phone app via SMS. So it is not more secure. People who knows how to do SMS attacks certainly knows how to install a mobile app. And BofA gave their customers a fake assurance.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by eairy on Saturday March 30, 2024 @12:13AM (#39871778)
I'm security consultant in the financial industry. I've literally been involved in the decision making on this at a bank. Banks are very conservative, and behave like insecure teenagers. They won't do anything bold, they all just copy each other.

I pushed YubiKey as a solution and explained in detail why SMS was an awful choice, but they went with SMS anyway.

It mostly came down to cost. SMS was the cheapest option. YubiKey would involve buying and sending the keys to customers, and they having the pain/cost of supporting them. There was also the feeling that YubiKeys were too confusing for customers. The nail in the coffin was "SMS is the standard solution in the industry" plus "If it's good enough for VISA it's good enough for us".

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by heyoni on Saturday March 30, 2024 @12:28AM (#39871840)
But why won’t banks at least support customer provided yubikeys?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by intelVISA on Saturday March 30, 2024 @02:04AM (#39872252)
Banks loathe anything relating, or adjacent, to good SWE principles.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by mulmen on Saturday March 30, 2024 @01:52AM (#39872197)
> But why won’t banks at least support customer provided yubikeys?

> support

You answered your own question.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by heyoni on Saturday March 30, 2024 @11:58AM (#39876065)
And that’s the answer isn’t it? Banks are behind the times in terms of security and tech.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by eru on Saturday March 30, 2024 @01:21AM (#39872066)
Because it's extra hassle?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jalk on Saturday March 30, 2024 @05:49AM (#39873333)
Bank of America supports user purchased TOTP devices.

https://www.bankofamerica.com/security-center/online-mobile-...

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by rainbowzootsuit on Saturday March 30, 2024 @08:46AM (#39874338)
Brokerage, not bank, but you can do Yubikey-only at Vanguard.

https://www.bogleheads.org/forum/viewtopic.php?t=349826

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by mlrtime on Saturday March 30, 2024 @09:04AM (#39874487)
The largest US crypto brokerages/exchanges support yubikey.

Some will provide and require them for top customers to ensure they are safe.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ryukoposting on Sunday March 31, 2024 @08:58PM (#39889802)
I'd guess part of the reason is that customers would blame the bank when their YubiKey doesn't work, which would become a nuisance for them as much as the YubiKey's usability issues are a nuisance for the customer.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by dalyons on Saturday March 30, 2024 @01:25PM (#39876747)
I mean your employer wasn’t wrong. Yubikeys ARE way too confusing for the average user, way too easy to lose, etc. maybe have it as an option for power users, but they were right it would be a disastrous default.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ryukoposting on Saturday March 30, 2024 @01:27PM (#39876763)
Interesting. I assumed a lot of client software for small banks was vendored - I know that's the case for brokerages. Makes it all the weirder that they all imitate each other.

Here's the thing about SMS: your great aunt who doesn't know what a JPEG is, knows what a text is. Ok, she might not fully "get it" but she knows where to find a text message in her phone. My tech-literate fiancée struggles to get her YubiKey to work with her phone, and I've tried it with no more luck than she's had. YubiKeys should be supported but they're miles away from being usable enough to totally supplant other 2FA flows.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by gonzo41 on Saturday March 30, 2024 @04:28AM (#39872933)
Banks are in a tough spot. Remember, banks have you as a customer, they also have a 100 year old person who still wants to come to the branch in person as a customer. Not everyone can grapple with the idea of a Yubikey, or why their bank shouldn't be protecting their money like it did in the past.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by codedokode on Saturday March 30, 2024 @08:49AM (#39874357)
The problem is that the bank will automatically enable online access and SMS-confirmed transfers for that 100 year old person who doesn't even know how to use Internet.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by AgentME on Friday March 29, 2024 @07:12PM (#39870066)
Passkeys are being introduced right now in browsers and popular sites like a MFA option, but I think the intention is that they will grow and become the main factor in the future.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by riddley on Friday March 29, 2024 @08:44PM (#39870684)
From what I've seen they're all controlled by huge tech companies. Hard pass.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by doubled112 on Friday March 29, 2024 @09:01PM (#39870807)
I liked the username, password and TOTP combination. I could choose my own password manager, and TOTP generator app, based on my preferences.

I have a feeling this won't hold true forever. Microsoft has their own authenticator now, Steam has another one, Google has their "was this you?" built into the OS.

Monetization comes next? "View this ad before you login! Pay 50c to stay logged in for longer?"

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by AgentME on Friday March 29, 2024 @11:35PM (#39871634)
Passkeys are an open standard with multiple implementations. It represents the opposite of the trend you're worried about there.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by thayne on Saturday March 30, 2024 @12:30AM (#39871844)
But the way it is designed, you can require a certain provider, and you can bet at least some sites will start requiring attestation from Google and or Apple.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by nmadden on Saturday March 30, 2024 @06:28AM (#39873506)
Do they do attestation by default? I thought for Apple at least that was only a feature for enterprise managed devices (MDM). Attestation is also a registration-time check, so doesn’t necessarily constrain where the passkey is synced to later on.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by tux3 on Saturday March 30, 2024 @04:18AM (#39872896)
MS Azure Active Entra's FIDO2 implementation only allows a select list of vendors. You need a certification from FIDO ($,$$$), you need to have an account that can upload on the MDS metadata service, and you need to talk to MS to see if they'll consider adding you to the list

It's not completely closed, but in practice no one on that list is a small independent open source project, those are all the kind of entrenched corporate security companies you'd expect

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by endgame on Saturday March 30, 2024 @09:31AM (#39874685)
Because that worked so well for OpenID. If you're lucky, you have the choice of which BigTech account you can use.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by wepple on Saturday March 30, 2024 @12:38AM (#39871870)
TOTP has substantial security gaps to make it a non-starter.

Maybe a pubkey system where you choose your own client would be what you’re looking for?

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by pabs3 on Saturday March 30, 2024 @05:52AM (#39873349)
TLS Client Certs (aka mTLS) is an option for that, but the browser UI stuff for it is terrible and getting worse.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by doubled112 on Saturday March 30, 2024 @08:14AM (#39874105)
I couldn’t imagine trying to train the general public to use mTLS and deploy that system.

I’m not even sure it is difficult. Most people I’ve talked to in tech don’t even realize it is a possibility. Certificates are “complicated” as they put it.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by LoganDark on Saturday March 30, 2024 @02:36AM (#39872388)
> Google has their "was this you?" built into the OS.

Not only that, but it's completely impossible to disable or remove that functionality or even make TOTP the primary option. Every single time I try to sign in, Google prompts my phone first, giving me a useless notification for later, and I have to manually click a couple of buttons to say "no I am not getting up to grab my phone and unlock it for this bullshit, let me enter my TOTP code". Every single time.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by AgentME on Friday March 29, 2024 @11:28PM (#39871598)
I don't understand this criticism. What is being controlled? Passkeys are an open standard that a browser can implement with public key crypto.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ndriscoll on Saturday March 30, 2024 @12:41AM (#39871876)
Doesn't passkeys give the service a signature to prove what type of hardware device you're using? e.g. it provides a way for the server to check whether you are using a software implementation? It's not really open if it essentially has type of DRM built in.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by LoganDark on Saturday March 30, 2024 @02:39AM (#39872398)
You're thinking of hardware-backed attestation, which provides a hardware root of trust. I believe passkeys are just challenge-response (using public key cryptography). You could probably add some sort of root of trust (for example, have the public key signed by the HSM that generated it) but that would be entirely additional to the passkey itself.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by pabs3 on Saturday March 30, 2024 @05:53AM (#39873355)
Passkeys do have the option of attestation, but the way Apple at least do them means Apple users won't have attestation, so most services won't require attestation.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by SahAssar on Friday March 29, 2024 @10:21PM (#39871250)
Password managers are adding support (as in they control the keys) and I've used my yubikeys as "passkeys" (with the difference that I can't autofill the username).

It's a good spec. I wish more people who spread FUD about it being a "tech-giant" only thing would instead focus on the productive things like demanding proper import/export between providers.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by LtWorf on Sunday March 31, 2024 @03:01AM (#39882066)
You realise that the second your password manager has it, then it's no longer MFA but it's just 1 factor authentication with extra steps right?

Password manager turns something you know into something you own. If also the something you own is in the password manager itself… it's the same as requiring extra long passwords.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by pabs3 on Saturday March 30, 2024 @05:50AM (#39873338)
They also require JavaScript to work unfortunately.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by pabs3 on Saturday March 30, 2024 @05:51AM (#39873343)
KeepassXC is working on supporting them natively in software, so you would not need to trust big tech companies, unless you are logging into a service that requires attestation to be enabled.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by hangonhn on Friday March 29, 2024 @05:44PM (#39869346)
yeah someone replied to one of my comments about adding MFA that an attacker can get around all that simply by buying the account from the author. I was way too narrowly focused on the technical aspects and was completely blind to other avenues like social engineering, etc.

All very fair points.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by apitman on Friday March 29, 2024 @07:05PM (#39869998)
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by fsckboy on Saturday March 30, 2024 @10:37AM (#39875289)
>I'd much rather see passwords entirely replaced by key-based authentication

I've never understood how key-based systems are considered better. I understand the encryption angle, nobody is compromising that. But now I have a key I need to personally shepherd? where do I keep it, and my backups, and what is the protection on those places? how many local copies, how many offsite? And I still need a password to access/use it, but with no recourse should I lose or forget. how am I supposed to remember that? It's all just kicking the same cans down the same roads.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by LtWorf on Friday March 29, 2024 @09:23PM (#39870947)
As I said recently in a talk I gave, 2FA as implemented by pypy or github is meaningless, when in fact all actions are performed via tokens that never expire, that are saved inside a .txt file on the disk.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by heyoni on Saturday March 30, 2024 @12:37AM (#39871867)
Passwords have full scope of permission while session tokens can be limited.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by LtWorf on Sunday March 31, 2024 @03:35PM (#39887324)
In pypi to obtain a token that is limited in scope you must first generate an unlimited token.

True story.

In gh you can generate a limited one, but it's not really clear on what the permissions actually mean, so it's trial and error… which means most people will get tired and grant random stuff to have them working.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by heyoni on Sunday March 31, 2024 @04:42PM (#39887902)
I didn’t know that about pypi but github has seemed ok to me. I’ve also implemented my own scoped authentication systems so even if they’re not perfect I know it can be done
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by CapstanRoller on Friday March 29, 2024 @10:59PM (#39871451)
Doesn't GH explicitly warn against using non-expiring tokens?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by yrro on Friday March 29, 2024 @11:31PM (#39871613)
I wonder what the point is, I don't remember GitHub warning me that I've used the se SSH key for years...
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by LtWorf on Saturday March 30, 2024 @02:03AM (#39872247)
And?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by tw04 on Friday March 29, 2024 @11:56PM (#39871711)
For some random server, sure. For a state sponsored attack? Having an embedded exploit you can use when convenient, or better yet an unknown exploit affecting every linux-based system connected to the internet that you can use when war breaks out - that's invaluable.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by eru on Saturday March 30, 2024 @01:19AM (#39872050)
Yes, but even states have only finite resources, so even for them compromising an account would be cheaper.

(But you are right that a sleeper would be affordable for them.)

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by treflop on Saturday March 30, 2024 @01:56AM (#39872210)
Having one or two people on payroll to occasionally add commits to a project isn't exactly that expensive if it pays off. There are ~29,000,000 US government employees (federal, state and local). Other countries like China and India have tens of millions of government employees.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by danieldk on Saturday March 30, 2024 @03:02AM (#39872501)
And they might as well be working on compromising other projects using different handles.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by eru on Saturday March 30, 2024 @07:56AM (#39873995)
Not all government employees are equally capable.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by EvmRoot on Saturday March 30, 2024 @12:28PM (#39876285)
Even if they contract it out, at $350/hr (which is not a price that would raise any flags), that is less that $750k. Even with a fancy office, couple of laptops and 5' monitors, this is less than a day at the bombing range or a few minutes keeping an aircraft carrier operational.

Even a team of 10 people working on this - the code and social aspect - would be a drop in the bucket for any nation-state.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by dgellow on Saturday March 30, 2024 @08:06AM (#39874068)
It’s a very cheap investment given the blast radius
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by EasyMark on Saturday March 30, 2024 @12:58AM (#39871953)
they might not have been playing the long con. maybe approached by actors willing to pay them a lot of money to try and slip in a back door. I'm sure a deep dive into code contributions would clear that up for anyone familiar with the code base and some free time.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by bobba27 on Saturday March 30, 2024 @04:43AM (#39872985)
They did fuck up quite a bit though. They injected their payload before they checked if oss-fuzz or valgrind or ... would notice something wrong. That is sloppy and should have been anticipated and addressed BEFORE activating the code.

Anyway. This team got caught. What are the odds that this state-actor that did this, that this was the only project / team / library that they decided to attack?

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by account42 on Thursday April 04, 2024 @04:42AM (#39927927)
Using sockpuppets to pressure the original maintainer into granting commit access in the first place backs the long con theory.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by gamer191 on Saturday March 30, 2024 @03:09AM (#39872538)
This PR from July 8 2023 is suspicious, so it was very likely a long con: https://github.com/google/oss-fuzz/pull/10667
[dead]
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by account42 on Thursday April 04, 2024 @05:15AM (#39928141)
Git signing would not have helped here. In fact, the tags and release archives were signed.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by bobba27 on Saturday March 30, 2024 @04:32AM (#39872950)
This is a state sponsored event. Pretty poorly executed though as they were tweaking and modifying things in their and other tools after the fact though.

As a state sponsored project. What makes you think this is their only project and that this is a big setback? I am paranoid myself to think yesterdays meeting went like : "team #25 has failed/been found out. Reallocate resources to the other 49 teams."

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ametrau on Friday March 29, 2024 @03:14PM (#39867867)
Probably a state actor. You can look far into the future when you’re working for the party.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by DrewRWx on Friday March 29, 2024 @04:06PM (#39868441)
And that long term perspective could be used constructively instead!
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by calvinmorrison on Friday March 29, 2024 @07:31PM (#39870209)
Which like, also wouldn't be totally weird if I found out that the xz or whatever library maintainer worked for the DoE as a researcher? I kind of expect governments to be funding this stuff.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by CanaryLayout on Saturday March 30, 2024 @02:26AM (#39872345)
From what I read on masto, the original maint had personal life breakdown, etc. Their interest in staying as primary maint is gone.

This is a very strong argument for FOSS to pick up the good habit of ditching/un-mainlining projects where they are sitting around for state actors to volunteer injecting commits to, and dep-stripping active projects from this cruft.

Who wants to maintain on a shitty compression format? Someone who is dephunting, it turns out.

Okay so your pirate-torrent person needs liblzma.so Offer it in the scary/oldware section of the package library that you need to hunt down the instructions to turn on. Let the users see that it's marked as obsolete, enterprises will see that it should go on the banlist.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by soraminazuki on Saturday March 30, 2024 @02:44AM (#39872415)
Um, what? This incident is turning into such a big deal because xz is deeply ingrained as a core dependency in the software ecosystem. It's not an obscure tool for "pirates."
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Bulat_Ziganshin on Saturday March 30, 2024 @08:06AM (#39874073)
Collin worked on XZ and its predecessor ~15 years. It seems that he did that for free, at least in recent times. Anyone will lose motivation to work for free over this period of time.

At the same time, XZ became a cornerstone of major Linxus distributions, being systemd dependency and loaded, in particular, as part of sshd. What could go wrong?

In hindsight, the commercial idea of Red Hat, utilizing the free work of thousands of developers working "just for fun", turned out to be not so brilliant.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by wannacboatmovie on Saturday March 30, 2024 @01:23PM (#39876720)
On the contrary, this is a good example for why 'vulnerable' OSS projects that have become critical components, for which the original developer has abandoned or lost interest, should be turned over to an entity like RedHat who can assign a paid developer. It's important to do this before some cloak and dagger rando steps out of the shadows to offer friendly help, who oh by the way happens to be a cryptography and compression expert.

A lot of comments in this thread seem to be missing the forest for the trees: this was a multiyear long operation that targeted a vulnerable developer of a heavily-used project.

This was not the work of some lone wolf. The amount of expertise needed and the amount of research and coordination needed to execute this required hundreds of man-hours. The culprits likely had a project manager....

Someone had to stalk out OSS developers to find out who was vulnerable (the xz maintainer had publicly disclosed burnout/mental health issues); then the elaborate trap was set.

The few usernames visible on GitHub are like pulling a stubborn weed that pops up in the yard... until you start pulling on it you don't realize the extensive reality lying beneath the surface.

The implied goal here was to add a backdoor into production Debian and Red Hat EL. Something that would take years to execute. This was NOT the work of one person.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jnxx on Friday March 29, 2024 @06:49PM (#39869863)
And, Joey Hess has counted at least 750 commits to xz from that handle.

https://hachyderm.io/@joeyh/112180715824680521

This does not look trust-inspiring. If the code is complex, there could be many more exploits hiding.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ebfe1 on Friday March 29, 2024 @07:10PM (#39870048)
clickhouse has pretty good github_events dataset on playground that folks can use to do some research - some info on the dataset https://ghe.clickhouse.tech/

Example of what this user JiaT75 did so far:

https://play.clickhouse.com/play?user=play#U0VMRUNUICogRlJPT...

pull requests mentioning xz, 5.6 without downgrade, cve being mentioned in the last 60 days:

https://play.clickhouse.com/play?user=play#U0VMRUNUIGNyZWF0Z...

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by palijer on Saturday March 30, 2024 @07:05PM (#39879537)
Yeah. It would be interesting to see who adopted to the compromised versions and how quickly, compared to how quickly they normally adopt new versions (not bots pulling upgrades, but how quickly maintainers approve and merge them)

If there were a bunch of people who adopted it abnormally fast compared to usual, might point to there being more "bad actors" in this operation (said at the risk of sounding paranoid if this turns out to be a state run thing)

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by waynesonfire on Friday March 29, 2024 @08:35PM (#39870618)
750 commits... is xz able to send e-mails yet?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by wyldfire on Friday March 29, 2024 @08:57PM (#39870773)
No. But if you have any centrifuges they will probably exhibit inconsistent behavior.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by shermantanktop on Friday March 29, 2024 @11:49PM (#39871683)
Maybe it’s the centrifuges which will send the mail, making the world’s first uranium-enriching spam botnet.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by lovasoa on Saturday March 30, 2024 @03:58AM (#39872796)
Yes, it sends an email containing your private key on installation.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by soraminazuki on Saturday March 30, 2024 @06:13AM (#39873438)
It's hardly surprising given that parsing is generally considered to be a tricky problem. Plus, it's a 15 years old project that's widely used. 750 commits is nothing to sneer about. No wonder the original maintainer got burned out.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by account42 on Thursday April 04, 2024 @03:55AM (#39927673)
750 is not that many commits if you follow a commit style where each independent change gets its own commit.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by indigodaddy on Friday March 29, 2024 @09:20PM (#39870923)
Anyone have any level of confidence that for example EL7/8 would not be at risk even if more potential exploits at play?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Gelob on Friday March 29, 2024 @11:59PM (#39871718)
RedHat blog says no versions of RHEL are affected.

https://www.redhat.com/en/blog/urgent-security-alert-fedora-...

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by alex_duf on Saturday March 30, 2024 @04:16AM (#39872886)
Ah the grieving steps of a company:

We don't have a security problem

The security problem isn't affecting anyone

The people affected are only few

We're sorry about the security problem, please change your password

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by chx on Saturday March 30, 2024 @07:45AM (#39873928)
Are you implying Redhat is not reliable in their security disclosures?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by alex_duf on Sunday March 31, 2024 @08:23AM (#39883628)
I was attempting a joke, but clearly that didn't convey, and isn't really in the hacker news spirit.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Zenul_Abidin on Friday March 29, 2024 @10:32PM (#39871315)
I don't think EL7 gets minor version updates anymore though
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by soraminazuki on Friday March 29, 2024 @09:47PM (#39871064)
I wouldn't count on it. RedHat packages contain lots of backported patches.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by indigodaddy on Friday March 29, 2024 @11:24PM (#39871572)
Right, that notion was what was making me nervous
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by worthless-trash on Saturday March 30, 2024 @01:11AM (#39872009)
At least in my group, the backports are hand picked to solve specific problems, not just random wholesale backports.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by soraminazuki on Saturday March 30, 2024 @02:25AM (#39872342)
Sure, they aren't backporting patches wholesale. But the patches that did get backported, if any, needs much more scrutiny given the situation.

The thing about enterprise Linux distros is that they have a long support period. Bug fixes and security patches pile up.

Fortunately though, xz doesn't seem to have a lot of backported patches.

https://git.centos.org/rpms/xz/blob/c8s/f/SPECS/xz.spec https://git.centos.org/rpms/xz/blob/c7/f/SPECS/xz.spec

But take glibc for example. The amount of patches makes my head spin.

https://git.centos.org/rpms/glibc/blob/c8s/f/SPECS/glibc.spe...

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by bobba27 on Saturday March 30, 2024 @04:27AM (#39872925)
For the duration of a major release, up until ~x.4 pretty much everything from upstream gets backported with a delay of 6-12 months, depending on how conservative to change the rhel engineer maintaining this part of the kernel is.

After ~x.4 things slow down and only "important" fixes get backported but no new features.

After ~x.7 or so different processes and approvals come into play and virtually nothing except high severity bugs or something that "important customer" needs will be backported.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by worthless-trash on Saturday March 30, 2024 @04:59AM (#39873070)
Sadly, 8.6 and 9.2 kernel are the exception to this. Mainly as they are openshift container platform and fedramp requirements.

The goal is that 8.6, 9.2 and 9.4 will have releases at least every two weeks.

Maybe soon all Z streams will have a similar release cadence to keep up with the security expectations, but will keep a very similar expectations that you outlined above.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by rwmj on Saturday March 30, 2024 @08:07AM (#39874076)
These changes were not backported to RHEL.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jnxx on Saturday March 30, 2024 @01:41AM (#39872145)
If this is a conspiracy or a state-sponsored attack, they might have gone specifically for embedded devices and the linux kernel. Here archived from tukaani.org:

https://web.archive.org/web/20110831134700/http://tukaani.or...

> XZ Embedded is a relatively small decompressor for the XZ format. It was developed with the Linux kernel in mind, but is easily usable in other projects too.

> *Features*

> * Compiled code 8-20 KiB

> [...]

> * All the required memory is allocated at initialization time.

This is targeted at embedded and real-time stuff. Could even be part of boot loaders in things like buildroot or RTEMS. And this means potentially millions of devices, from smart toasters or toothbrushes to satellites and missiles which most can't be updated with security fixes.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jnxx on Saturday March 30, 2024 @03:17AM (#39872592)
One scenario for malicious code in embedded devices would be a kind of killswitch which listens to a specific byte sequence and crashes when encountering it. For a state actor, having such an exploit would be gold.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by HankB99 on Saturday March 30, 2024 @10:53AM (#39875444)
That's an "interesting" thought.

One of my complaints about so many SciFi stories is the use of seemingly conventional weapons. I always thought that with so much advanced technology that weapons would be much more sophisticated. However if the next "great war" is won not by the side with the most destructive weapons but by the side with the best kill switch, subsequent conflicts might be fought with weapons that did not rely on any kind of computer assistance.

This is eerily similar to Einstein's (purported) statement that if World War III was fought with nuclear weapons, World War IV would be fought with sticks and stones. Similar, but for entirely different reasons.

I'm trying to understand why the characters in Dune fought with swords, pikes and knives.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ethbr1 on Saturday March 30, 2024 @11:19AM (#39875656)
> I'm trying to understand why the characters in Dune fought with swords, pikes and knives.

Because the slow blade penetrates the shield. (And personal shields are omnipresent)

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by cblum on Saturday March 30, 2024 @11:36AM (#39875847)
> I'm trying to understand why the characters in Dune fought with swords, pikes and knives.

At least part of the reason is that the interaction between a lasgun and a shield would cause a powerful explosion that would kill the shooter too. No one wants that and no one will give up their shield, so they had to go back to melee weapons.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by potro on Saturday March 30, 2024 @12:29PM (#39876302)
Were drones unthinkable at the time of Dune creation? Or suicide attacks?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by throwaway7356 on Saturday March 30, 2024 @12:41PM (#39876385)
No, there is a in-world reason at least for no drones. Wikipedia:

> However, a great reaction against computers has resulted in a ban on any "thinking machine", with the creation or possession of such punishable by immediate death.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ethbr1 on Saturday March 30, 2024 @04:27PM (#39878305)
For anyone who wants the short version: https://www.youtube.com/watch?v=2YnAs4NpRd8

tl;dr - Machine intelligences existed in Dune history, were discovered to be secretly controlling humanity (through abortion under false pretenses, forced sterilization, emotional/social control, and other ways), then were purged and replaced with a religious commandment: "Thou shalt not make a machine in the likeness of a human mind"

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by lobocinza on Saturday March 30, 2024 @02:07PM (#39877136)
In the book Paul is attacked by an insect drone while in his room. The drone was controlled by a Harkonnen agent placed weeks in anticipation inside a structure of the palace so it was also a suicide attack as the agent had no chance to escape and would die of hunger/thirsty if not found.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Muromec on Saturday March 30, 2024 @12:49PM (#39876427)
There is a drone attack in a first movie
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by cam-o-man on Saturday March 30, 2024 @05:26PM (#39878834)
No, and there is a (piloted) drone attack in the first book -- Paul is attacked by a hunter-seeker.

The reason nobody tries to use the lasgun-shield interaction as a weapon is because the resulting explosion is indistinguishable from a nuclear weapon, and the Great Convention prohibits the use of nukes on human targets.

Just the perception of having used a nuclear device would result in the House which did so becoming public enemy #1 and being eradicated by the Landsraad and Sardaukar combined.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by archi42 on Saturday March 30, 2024 @08:54PM (#39880291)
Nope. That's all I'm going to spoiler;-)

@Potro: If you liked the movie, read the books. I don't read a lot anymore, but during sick leave I started with the first book. Didn't stop until I finished the main story, including the sequels by Frank Herbert's son about a month later. That's like... uh... nine books?

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by mr_toad on Sunday March 31, 2024 @05:32AM (#39882741)
> I'm trying to understand why the characters in Dune fought with swords, pikes and knives.

Because the author wanted a pseudo-medieval setting.

(The shields and the prohibition against computers, nukes etc were just clever plot devices to make advanced weapons unusable).

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by varjag on Saturday March 30, 2024 @04:15AM (#39872878)
All this circus makes me happy for never moving from sysvinit on embedded.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jnxx on Saturday March 30, 2024 @04:25AM (#39872920)
It is not just systemd which uses xz. For example, Debian's dpkg links xz-utils.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ahartmetz on Saturday March 30, 2024 @05:58AM (#39873370)
However, this particular attack only works through libsystemd to compromise sshd and it is related to systemd's kitchen sink "design".
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by JdeBP on Saturday March 30, 2024 @08:06AM (#39874070)
It's related to excessive coupling between modules and low coherence.

There is a way for programs to implement the systemd readiness notification protocol without using libsystemd, and thus without pulling in liblzma, which is coupled to libsystemd even though the readiness notification protocol does not require any form of compression. libsystemd provides a wide range of things which have only weak relationships to each other.

There are in fact two ways, as two people independently wrote their own client code for the systemd readiness notification protocol, which really does not require the whole of libsystemd and its dependencies to achieve. (It might be more than 2 people nowadays.)

* https://jdebp.uk/FGA/unix-daemon-readiness-protocol-problems...

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Matl on Saturday March 30, 2024 @08:42AM (#39874321)
It's easy to have your existing biases validated if you already dislike systemd. The reality is that systemd is much more coherently designed than its predecessors from a 'end user interface' point of view, hence why its units are largely portable etc. which was not the case for sysvinit.

The reality is that it is not systemd specifically but our modern approach to software design where we tend to rely on too much third party code and delight in designing extremely flexible, yet ultimately extremely complex pieces of software.

I mean this is even true as far as the various CPU attack vectors have shown in recent years, that yes speculative execution is a neat and 'clever' optimization and that we rely on it for speed, but that maybe that was just too clever a path to go down and we should've stuck with simpler designs that would maybe led to slower speedups but a more solid foundation to build future CPU generations on.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ds-tech_media on Sunday March 31, 2024 @05:40AM (#39882777)
People hate systemd from an ethical, philosophical, and ideological standpoint. People love systemd for the efficiency, economics, etc. It's like ideal vs production.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by account42 on Wednesday April 03, 2024 @12:34PM (#39919552)
Let's be real, sshd loading random libraries it doesn't actually need because distros patched in a kitchen sink library is inexcusable. That kitchen sink library is libsystemd and it follows the same kitchen sink design principle that systemd-opponents have been criticising all along. But its easier to accuse them of being biased rather consider that maybe they have a point.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by EvmRoot on Saturday March 30, 2024 @12:17PM (#39876210)
This is only evidence that libsystemd is popular. If you want to 0wn a bunch of systems, or even one particular system but make it non-obvious, you choose a popular package to mess with.

BeOS isn't getting a lot of CVEs attached to it, these days. That doesn't mean its good or secure, though.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by varjag on Saturday March 30, 2024 @05:04PM (#39878648)
All that could change if BeOS adopts systemd.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jnxx on Saturday March 30, 2024 @02:36AM (#39872385)
Also, the XZ file format, which was designed by Lasse Collins, was analyzed and seems to have a number of problems in terms of reliability and security:

https://www.nongnu.org/lzip/xz_inadequate.html

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by masklinn on Saturday March 30, 2024 @03:14AM (#39872573)
That is just technical disagreements and sour grapes by someone involved in a competing format (Lzip).

There’s no evidence Lasse did anything “wrong” beyond looking for / accepting co-maintainers, something package authors are taken to task for not doing every time they have life catching up or get fed up and can’t / won’t spend as much time on the thing.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jnxx on Saturday March 30, 2024 @03:26AM (#39872635)
You appeal to trust people and give them the benefit of doubt which is normally a good thing. But is this appropiate here?

If this is a coordinated long-term effort by a state entity, there is no reason to trust the supposed creator of the project, especially given what it was targeting from the start.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by masklinn on Saturday March 30, 2024 @04:24AM (#39872919)
> You appeal to trust people and give them the benefit of doubt which is normally a good thing. But is this appropiate here?

Yes.

Without evidence to the contrary there is no reason to believe Lasse has been anything other than genuine so all you're doing is insulting and slandering them out of personal satisfaction.

And conspiratorial witch hunts are actively counter-productive, through that mode of thinking it doesn't take much imagination to figure out you are part of the conspiracy for instance.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jnxx on Saturday March 30, 2024 @05:50AM (#39873336)
The thing is there are two possibilities:

1. An important project has an overburdened / burnt out maintainer, and that project is taken over by a persona who appears to help kindly, but is part of a campaign of a state actor.

2. A state actor is involved in setting up such a project from the start.

The first possibility is not only being an asshole to the original maintainer, but it is also more risky - that original maintainer surely feels responsible for his creation and could ring alarm bells. This is not unlikely because he knows the code. And alarm bells is something that state actors do not like.

The second possibility has the risk of the project not being successful, which would mean a serious investment in resources to fail. But that could be countered by having competent people working on that. And in that case, you don't have any real persons,just account names.

What happened here? I don't know.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Delk on Saturday March 30, 2024 @06:39AM (#39873552)
I don't think state actors would care one bit about being assholes. Organized crime black hats probably wouldn't either.

The original maintainer has said in the past, before Jia Tan's increased involvement and stepping up as a maintainer, that he couldn't put as much into the project due to mental health and other reasons [1]. Seems to fit possibility number one rather well.

If you suspect that Lasse Collin was somehow in it from the start, that'd mean the actor orchestrated the whole thing about mental health and not being able to keep up with sole maintainership. Why would they even do that if they had the project under their control already?

Of course we don't know what's really been happening with the project recently, or who's behind the backdoor and how. But IMO creating suspicions about the original maintainer's motives based entirely on speculation is also a bit assholey.

edit: [1] https://www.mail-archive.com/[email protected]/msg00567.h...

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jnxx on Saturday March 30, 2024 @07:17AM (#39873771)
> Why would they even do that

More layers of obfuscation. For example in order to be able to attribute the backdoor to a different party.

It is of course also possible that Lasse Collins is a nice real person who just has not been able to review this. Maybe he is too ill,or has to care for an ill spouse, or perhaps he is not even alive any more. Who knows him as a person (not just an account name) and knows how he is doing?

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by roenxi on Saturday March 30, 2024 @08:32AM (#39874220)
That is kinda crazy - state actors don't need to care about that level of obfuscation. From a state's perspective the situation here would be simple - hire a smart & patriotic programmer to spend ~1+ years maintaining an important package, then they slip a backdoor in. There isn't any point in making it more complicated than that.

They don't even need plausible deniability, groups like the NSA have been caught spying on everyone and it doesn't hurt them all that much. The publicity isn't ideal. But it only confirms what we already new - turns out the spies are spying on people! Who knew.

There are probably dozens if not hundreds of this sort of attempt going on right now. I'd assume most don't get caught. Or go undetected for a many years which is good enough enough. If you have government money on the budget, it makes sense to go with large-volume low-effort attempts rather than try some sort of complex good-cop-bad-cop routine.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ds-tech_media on Sunday March 31, 2024 @05:32AM (#39882744)
You're correct about a great many things. State actors do things in broad-daylight, get exposed, and it's no fuss to them at all. But that depends on which "sphere of influence" you live in. Russia and China have made major changes to key parts of their critical infrastructure based on revelations that might only result in a sub-committee in US Congress.

But to establish a significant contributor to a key piece of software, not unlike xz, is an ideal position for a state actor. The developer doesn't even need to know who/why, but they could be financially/ideologically aligned. This is what intelligence officers do. They manage real human assets who exist naturally. But to have someone long-established as an author of a project is the exact type of asset they want. Even if they push the code, people immediately start considering how it could have been done by someone else. Yes, it's conspiratorial/paranoid thinking but there's nothing more paranoid than state intelligence trade craft.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by saagarjha on Saturday March 30, 2024 @08:37AM (#39874256)
You can imagine all the layers of obfuscation you want, but it doesn't seem necessary to explain what is going on here.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by johnisgood on Saturday March 30, 2024 @09:06AM (#39874503)
On https://www.mail-archive.com/[email protected]/msg00567.h..., Lasse Collin mentions long-term mental health issues among other things.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by beanjuiceII on Saturday March 30, 2024 @10:31AM (#39875243)
would be nice if he'd come out with some statements considering he's still committing to xz as of few hours ago

https://git.tukaani.org/?p=xz.git;a=commit;h=f9cf4c05edd14de...

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by LigmaBaulls on Saturday March 30, 2024 @10:49AM (#39875412)
You mean a statement like this https://tukaani.org/xz-backdoor/
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by doug_durham on Saturday March 30, 2024 @01:06PM (#39876571)
It makes me wonder. Is it possible to develop a robust Open Source ecosystem without destroying the mental health of the contributors? Reading his posting really made me feel for him. There are exceedingly few people who are willing do dedicate themselves to developing critical system in the first place. Now there is the burden of extensively vetting every volunteer contributor who helps out. This does not seem sustainable. Perhaps users of open source need to contribute more resources/money to the software that makes their products possible.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by themoonisachees on Saturday March 30, 2024 @09:17AM (#39874575)
False dichotomy much? It doesn't have to be a motivated state actor pulling the strings from the begging. It could also just be some guy, who decided he didn't care anymore and either wanted to burn something or got paid by someone (possibly a state actor) to do this.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by w4ffl35 on Saturday March 30, 2024 @05:42AM (#39873293)
What if the maintainer IS the hacker? Where's the evidence they're two different people? I don't think these things are true but calling into question motivations and asking more questions isn't slander (plus it's written which would make it libel, but it's not that either). We are all affected by this, so these are valid concerns.

The downvotes on this and unwillingness to consider the original maintainer may be malicious is disturbing and doesn't inspire trust in the OSS community.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by w4ffl35 on Saturday March 30, 2024 @09:51AM (#39874877)
Downvote me all you want. Your denial of a potential reality reveals how deeply you think.
[dead]
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by rmast on Saturday March 30, 2024 @12:43PM (#39876391)
Recall that the original maintainer had mental health issues and other things that likely led to the perceived need to bring on someone to help maintain xz.

This brings up some integrity questions about you and other people bringing forth accusations in order to make the original maintainer feel pressure to bring on someone else to replace the one that inserted a backdoor after several years of ostensibly legitimate commits.

Hopefully this helps you see that these sorts of accusations are a slippery slope and unproductive. Heck, you could then turnaround and accuse me of doing something nefarious by accusing you.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by thinkingemote on Saturday March 30, 2024 @12:45PM (#39876400)
It's possible that he was intentionally pressured and his mental health made bad or worse by the adversary to increase stress. The adversary would then propose to help them reduce the stress.

It's probably straight out of many playbooks.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by w4ffl35 on Saturday March 30, 2024 @12:56PM (#39876492)
Additionally to the guy's above point, replacing him after this incident would complete that play
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by w4ffl35 on Saturday March 30, 2024 @12:52PM (#39876453)
Actually my solution as outlined on twitter was to enforce non anon commits, and i stated it is a bad idea to replace him, so try again.

And, as stated above, I don't think he's malicious, it's still something that must be considered. Sweeping the possibility away is weird.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by rmast on Saturday March 30, 2024 @01:13PM (#39876633)
I don’t stalk all of your social media posts, so from my perspective I don’t see any of the solutions you’ve posted elsewhere — which brings up a good point to keep in mind: none of us see the complete picture (or can read minds to know what someone else really thinks).

The possibility can be kept in mind and considered even if it isn’t being actively discussed. I think in this case, most people think he is not malicious — and feel that unless new compelling evidence to show otherwise appears, potentially starting a harmful rumor based on speculation is counterproductive.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by w4ffl35 on Saturday March 30, 2024 @01:21PM (#39876701)
I'm not starting a harmful rumor. People are asking legitimate questions in order to paint the whole picture. Being gaslit is very weird.

> I don't stalk your socials

I mentioned it because you called my intent into question.

Why are people running cover for the maintainer of a repo that just tried to backdoor sshd when others are asking legitimate questions?

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by rmast on Saturday March 30, 2024 @02:08PM (#39877158)
You might not be trying to start a rumor, but other people could when they try to answer the questions from a place of ignorance — if you take a look at the comments on a gist summarizing the backdoor, there are quite a few comments by z-nonymous that seem to be insinuating that other specific GitHub users are complicit in things by looking at their commits in various non-xz repositories.

No one is running cover, just that most information so far points to the original maintainer not knowing that the person brought on to help out had ulterior motives, and likely wasn’t even who they purported to be. If you were running an open source project and facing burnout as the sole maintainer, I’d imagine you’d exercise perfect judgement and do a full background check on the person offering to help? I think many of us would like to believe we’d do better, but the reality is, most of us would have fallen for the same trick. So now imagine having to deal with the fallout not just on the technical side, but also the never-ending questions surrounding your professional reputation that people just keep bring up — sounds like a recipe for depression, possibly even suicidal thoughts.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by w4ffl35 on Saturday March 30, 2024 @03:12PM (#39877696)
I am running an open source project. Yes if someone was eager to help and was making changes to things that involved security, I would make them doxx themselves and submit to a background check
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by rmast on Saturday March 30, 2024 @03:31PM (#39877862)
Well, good for you being one of the few exceptions who would make everyone submit themselves to a proper background check (presumably also covering the cost) before giving any write/commit access to the repo. That’s more than even most large open source projects do before giving access.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by w4ffl35 on Saturday March 30, 2024 @04:57PM (#39878585)
Thanks, but you assume too much. I outlined the circumstances under which i would require a background check, so you might want to reread. any other questions?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by rmast on Saturday March 30, 2024 @07:28PM (#39879664)
As I understand it Jia was contributing things like tests, not making changes that involve “security”. They just turned the commit, and eventual ability to make releases on the xz GitHub after “earning” more trust (+ access to GitHub pages hosted under tukaani domain), into something they could use to insert a backdoor.

No questions. Anyone can become a victim to social engineering — I believe the short answer to your question about all the downvotes is that a lot of people recognize how they could have fallen for something similar, and empathize that Lasse is likely now going through a rather difficult time.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by w4ffl35 on Sunday March 31, 2024 @01:02AM (#39881584)
I have no question about the downvotes, bud. You're very verbose. Still not sure why you revived an account you haven't commented with in 6 years just to run cover. I find you to be a highly suspicious individual and I really have nothing more to say to you.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by rmast on Sunday March 31, 2024 @02:32AM (#39881949)
I suppose I think verbose-ness will help people see the other side of things. I think I was also trying to convince myself that you aren’t just into conspiracy theories, but given that you’re now accusing me of being suspicious… :shrug: it did come full circle where in my first comment I said you would start accusing me. I guess neither of us have anything more to say to each other because we are both too locked into our own beliefs.

As for motivation… https://xkcd.com/386/ enough said :)

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by w4ffl35 on Sunday March 31, 2024 @06:59AM (#39883142)
This person revived an account they haven't touched since 2018 in an attempt to convince ME SPECIFICALLY that there is nothing wrong with the original repo maintainer. They gloss over my arguments, use logical fallacies and are generally antagonistic in a way that is not immediately obvious. You be the judge, dear readers.

At any rate, this person has failed their cause and has actually made me double down on the conspiracy theory :)

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by rmast on Sunday March 31, 2024 @11:05AM (#39884912)
I do have a history of going years between comments on social media platforms. The last event that got me actively commenting this much on other platforms was all the Trump discourse.

If I didn’t know any better, I’d say you’re enjoying this spirited conversation ;)

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by matsemann on Saturday March 30, 2024 @03:44AM (#39872726)
> But is this appropiate here?

Yes, nothing points to the inventor of the format and maintainer for decades has done anything with the format to make it suspect. If so, the recent backdoor wouldn't be needed.

It's good to be skeptic, but don't drag people through the mud without anything to back it up.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jnxx on Saturday March 30, 2024 @04:32AM (#39872948)
If a project targets a high-profile, very security sensitive project like the linux kernel from the start, as the archived tukaani web site linked above shows, it is justified to ask questions.

Also, the exploit shows a high effort, and a high level of competence, and a very obvious willingness to play a long game. These are not circumstances for applying Hanlon's razor.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by matsemann on Saturday March 30, 2024 @05:09AM (#39873133)
Are you raising the same concerns and targeting individuals behind all other sensitive projects? No, because that would be insane.

It's weird to have one set of standards to a maintainer since 2009 or so, and different standards for others. This witch hunt is just post-hoc smartassery.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jnxx on Saturday March 30, 2024 @07:33AM (#39873860)
Yes, I think if a project has backdoors and its old maintainers are unable to review them, I am more critical than with normal projects. As said, compression is used everywhere and in embedded systems, it touches a lot of critical stuff. And the project went straight for that since the beginning.

And this is in part because I can not even tell for sure that he even exists. If I had met him a few times in a bar, I would be more inclined to believe he is not involved.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by saagarjha on Saturday March 30, 2024 @08:38AM (#39874265)
> As said, compression is used everywhere and in embedded systems, it touches a lot of critical stuff. And the project went straight for that since the beginning.

Uh, because it's a compression library?

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ljahier on Saturday March 30, 2024 @03:20PM (#39877762)
From the project readme: > XZ Utils provide a general-purpose data-compression library plus 21 command-line tools.

https://git.tukaani.org/?p=xz.git;a=blob;f=README;h=ac812ff1...

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by UncleEntity on Saturday March 30, 2024 @09:38AM (#39874756)
I'm inclined to believe that whatever state actor was involved sent a memo to their sockpuppets to do whatever they can to deflect blame away.

See what I did there?

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by voidz on Saturday March 30, 2024 @03:33AM (#39872674)
It argues the topic pretty well: xz is unsuitable for long-term archival. The arguments are in-depth and well worded. Do you have any argument to the contrary beyond "sour grapes"?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by matsemann on Saturday March 30, 2024 @03:39AM (#39872705)
It's not relevant to the current issue at hand.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by evrial on Saturday March 30, 2024 @09:07AM (#39874510)
If you say "sour grapes", then back down your bold statement or don't say at all.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by masklinn on Saturday March 30, 2024 @09:16AM (#39874568)
What are you talking about? Do you understand multiple people use this site?

Also do you mean back up?

Antonio literally used to go around mailing lists asking for lzip support and complaining about xz:

- https://gcc.gnu.org/legacy-ml/gcc/2017-06/msg00044.html

- https://lists.debian.org/debian-devel/2017/06/msg00433.html

Also, https://web.archive.org/web/20190605225651/http://octave.159...

I can understand wanting your project to succeed, it's pretty natural and human, but it's flagrant Antonio had a lot of feels about the uptake of xz compared to lzip, as both are container formats around raw lzma data streams and lzip predates xz by 6 months. His complaint article about xz is literally one of the "Introductory links" of lzip.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by account42 on Wednesday April 03, 2024 @12:25PM (#39919442)
> xz is unsuitable for long-term archival

Neither is lzip since it doesn't contain error correction codes. You can add those with an additional file (to any archive) e.g. via par2 but then most of the points in the linked rant become irrelevant.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by goodpoint on Saturday March 30, 2024 @10:11AM (#39875073)
> That is just technical disagreements and sour grapes

Care to provide some evidence to back this statement?

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by shzhdbi09gv8ioi on Saturday March 30, 2024 @03:33AM (#39872667)
This link is opinion piece about the file format and has nothing to do with today's news.

Also, Lasse has not been accused of any wrong-doings.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by varjag on Saturday March 30, 2024 @04:18AM (#39872893)
His GH account was suspended, in what I believe a very unfortunate case of collateral damage.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by semi-extrinsic on Saturday March 30, 2024 @03:56PM (#39878059)
Collateral damage yes, but it seems like he is currently away from the internet for an extended time. So it could be that Github needed to suspend his account in order to bypass things that he would otherwise have to do/approve? Or to preempt the possibility that his account was also compromised and we don't know yet.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jnxx on Saturday March 30, 2024 @03:51AM (#39872755)
You mean, the xz file format has nothing to do with xz-utils?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by shzhdbi09gv8ioi on Saturday March 30, 2024 @03:54AM (#39872770)
No. I mean that the link you shared is a opinion piece about the xz file format, and those opinions are fully unrelated to today's news and only serve to further discredit Lasse Collin who for all we know have been duped and tricked by a nation state, banned by github and is having a generally shitty time.

Why are you trying to discredit Lasse?

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jnxx on Saturday March 30, 2024 @07:35AM (#39873870)
That critique adresses security aspects.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by shzhdbi09gv8ioi on Saturday March 30, 2024 @07:48AM (#39873948)
You seem to be rather determined in continuing to badmouth Lasse, ignoring me and others questioning your motives.

Here are recent examples:

1. https://news.ycombinator.com/item?id=39872919

2. https://news.ycombinator.com/item?id=39873552

3. https://news.ycombinator.com/item?id=39873133

4. https://news.ycombinator.com/item?id=39872770

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Matl on Saturday March 30, 2024 @09:01AM (#39874450)
There may be some suboptimal things about security of the XZ file format, I don't know. I bet you there are less than optimal security choices in your most cherished piece of software as well.

This thread is about an exploit that does not rely on any potential security problems in the DESIGN of the xz FORMAT. Therefore your point, even if valid as a general one, is not really relevant to the exploit we're discussing.

Further, there's some proof needed that any potential suboptimal aspects of the security design of the xz FORMAT was designed such so that it could be exploited later or simply because no programmer is an expert on every aspect of security ever. I mean you could be the most security conscious programmer and your chain could still be compromised.

Security today is such a vast field and it takes so little to get you compromised that proclaiming anything 'secure design' these days is practically impossible.

I bet you an audit of lzip would find plenty of security issues, would those be intentional?

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by evrial on Saturday March 30, 2024 @09:10AM (#39874523)
Except it unnecessary complexity is very convenient to limit the code audit to only domain experts.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jart on Saturday March 30, 2024 @09:59AM (#39874956)
People don't always reveal the true reason they want to destroy something.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by account42 on Wednesday April 03, 2024 @12:28PM (#39919476)
Like the lzip author when he wrote that hitpiece?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by codedokode on Saturday March 30, 2024 @03:45AM (#39872730)
> If the code is complex, there could be many more exploits hiding.

Then the code should not be complex. Low-level hacks and tricks (like pointer juggling) should be not allowed and simplicity and readability should be preferred.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by sgarland on Saturday March 30, 2024 @09:26AM (#39874630)
For tools like compression programs, you’d generally prefer performance over everything (except data corruption, of course).
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jononor on Saturday March 30, 2024 @09:47AM (#39874837)
Probably you would prefer no backdoors also? Performance without correctness or trustworthiness is useless.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by sgarland on Saturday March 30, 2024 @10:05AM (#39875025)
Yes, but my point was that at the level of performance tools like this are expected to operate at, it’s highly probable that you’ll need to get into incredibly esoteric code. Look at ffmpeg – tons of hand-written Assembly, because they need it.

To be clear, I have no idea how to solve this problem; I just don’t think saying that all code must be non-hacky is the right approach.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jononor on Saturday March 30, 2024 @01:12PM (#39876622)
Performance can be bought with better hardware. It gets cheaper and cheaper every year. Trustworthiness cannot be purchased in the same way. I do not understand why performance would ever trumph clean code, especially for for code that processes user provided input.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by josefx on Saturday March 30, 2024 @04:34PM (#39878373)
I suggest you run your browsers Javascript engine in interpreter mode to understand how crippling the simple and sraight forward solution is to performance.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by sgarland on Saturday March 30, 2024 @04:03PM (#39878120)
This attitude is how we get streaming music players that consume in excess of 1 GiB of RAM.

Performant code needn’t be unclean; it’s just often using deeper parts of the language.

I have a small project that became absolute spaghetti. I rewrote it to be modular, using lots of classes, inheritance, etc. It was then slower, but eminently more maintainable and extensible. I’m addressing that by using more advanced features of the language (Python), like MemoryView for IPC between the C libraries it calls. I don’t consider this unclean, but it’s certainly not something you’re likely to find on a Medium article or Twitter take.

I value performant code above nearly everything else. I’m doing this for me, there are no other maintainers, and it’s what I enjoy. You’re welcome to prioritize something else in your projects, but it doesn’t others objectively worse.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jononor on Saturday March 30, 2024 @07:45PM (#39879788)
Performant code does not need to be unclean, exactly! My original point was just to not put performance on a pedestal. Sure, prioritize it, but correct and clean should come first - at least for foundational libraries that others are supposed to build upon.

I maintain ML libraries that run on microcontrollers with kilobytes of memory, performance is a friend of mine ;)

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by patchguard on Saturday March 30, 2024 @02:13PM (#39877212)
> Performance can be bought with better hardware.

I hate this argument. If current hardware promises you a theoretical throughput of 100 MB/s for an operation, someone will try to hit that limit. Your program that has no hard to understand code but gives me 5 MB/s will loose in the face of a faster one, even if that means writing harder to understand code.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jononor on Saturday March 30, 2024 @02:45PM (#39877499)
There is no reason that understandable and safe code will hit just 5% of a theoretical max. It may be closer to 95%.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by sgarland on Saturday March 30, 2024 @04:19PM (#39878235)
No, but often it is far worse than 95%. A good example is random.randint() vs math.ceil(random.random() * N) in Python. The former is approximately 5x slower than the latter, but they produce effectively the same result with large enough values of N. This isn’t immediately apparent from using them or reading docs, and it’s only really an issue in hot loops.

Another favorite of mine is bitshifting / bitwise operators. Clear and obvious? Depends on your background. Fast as hell? Yes, always. It isn’t always needed, but when it is, it will blow anything else out of the water.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jononor on Saturday March 30, 2024 @07:54PM (#39879850)
Those Python snippets are both clean options :)

Bitwise is highly context dependent. There are simple usages like shifts to divide/multiply by 2. Idiomatic patterns that are clean when wrapped in good reusable and restricted macros, like for common registers manipulation in microcontrollers. And other uses that are anything from involuntary obfuscation to competition grade obfuscation.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by throwaway7356 on Sunday March 31, 2024 @12:59AM (#39881572)
> There are simple usages like shifts to divide/multiply by 2.

Clean code should not do that as the compiler will do that.

Clean code should just say what it wants to do, not replace that with low-level performance optimizations. (Also wasn't performance to be obtained from newer hardware?)

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jononor on Monday April 01, 2024 @12:39PM (#39896047)
Fair point about shifting being superfluous and not clean!

I never said performance should come only from newer hardware. Only that it is possible to trade vs hardware/costs - unlike correctness and trust.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jodleif on Sunday March 31, 2024 @05:48AM (#39882812)
The compiler will almost always do the bit shifting, and better for you. Just switch python with rust and you’ll get both performance and safe code
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by sdlion on Sunday March 31, 2024 @02:18AM (#39881891)
I guess because at server farm level, performance/efficiency translate to real million USD savings. In general, at scale ends (the cloud and the embedded) this matters a lot. In resource limited environments like raspberry pi, this design philosophy wins over many users between DIY and the private industry.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by caspianm on Tuesday April 02, 2024 @09:47PM (#39912796)
Faster and more complex hardware can also have bugs or back doors, as can cheaper hardware. That said, I'm not happy with buggy and untrustworthy code either.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by pmarreck on Saturday March 30, 2024 @10:01AM (#39874979)
I have some questions.

1) Are there no legit code reviews from contributors like this? How did this get accepted into main repos while flying under the radar? When I do a code review, I try to understand the actual code I'm reviewing. Call me crazy I guess!

2) Is there no legal recourse to this? We're talking about someone who managed to root any linux server that stays up-to-date.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by WhyNotHugo on Saturday March 30, 2024 @10:37AM (#39875288)
> 2) Is there no legal recourse to this? We're talking about someone who managed to root any linux server that stays up-to-date.

Any government which uses GNU/Linux in their infrastructure can pitch this as an attempt to backdoor their servers.

The real question is: will we ever even know who was behind this? If it was some mercenary hacker intending to resell the backdoor, maybe. But if it was someone working with an intelligence agency in US/China/Israel/Russia/etc, I doubt they'll ever be exposed.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by treffer on Saturday March 30, 2024 @12:52PM (#39876458)
The actual inclusion code was never in the repo. The blobs were hidden as lzma test files.

So you review would need to guess from 2 new test files that those are, decompressed, a backdoor and could be injected which was never in the git history.

This was explicitly build to evade such reviews.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by xghryro on Saturday March 30, 2024 @02:06PM (#39877132)
I suppose you think the maintainers shouldn’t have scrutinized those files? Please tell me it’s a joke.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ab5tract on Saturday March 30, 2024 @07:32PM (#39879699)
The person who added the malicious blobs and signed the compromized archives was literally a maintainer of the project.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by account42 on Thursday April 04, 2024 @03:48AM (#39927627)
Ok, go ahead and scrutinize those files without looking at the injection code that was never in the repo? Can you find anything malicious? Probably not - it looks like random garbage which is what it was claimed to be.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by pmarreck on Saturday March 30, 2024 @10:38PM (#39880858)
> The blobs were hidden as lzma test files.

OK, that is absolutely devious.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by andrepd on Saturday March 30, 2024 @01:53PM (#39877005)
>How did this get accepted into main repos while flying under the radar? When I do a code review, I try to understand the actual code I'm reviewing. Call me crazy I guess!

And? You never do any mistakes? Google "underhanded C contest"

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by xign on Monday April 01, 2024 @08:40AM (#39893513)
"Jia Tan" was not a contributor, but a maintainer of the project. The key point here is that this is a multi-year project of infiltrating the xz project and gaining commit access.

In a large tech company (including ones I have worked at), sometimes you have policy where every change has to be code reviewed by another person. This kind of stuff isn't possible when the whole project only has 1-2 maintainers. Who's going to review your change other than yourself? This is the whole problem of OSS right now that a lot of people are bringing up.

I maintain a widely used open source project myself. I would love it if I could get high quality code review for my commits similar to my last workplace lol, but very very few people are willing to roll up their sleeves like that and work for free. Most people would just go to the Releases page and download your software instead.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by moritonal on Friday March 29, 2024 @07:08PM (#39870026)
Warning, drunk brain talking. But a LLM driven email based "collaborator" could play a very long gMw adding basic features to a code made whilst earning trust backed by a generated online presence. My money is on a resurgance in the Web of Trust.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jnxx on Friday March 29, 2024 @07:40PM (#39870254)
The web of trust is a really nice idea, but it works badly against that kind of attacks. Just consider that in the real world, most living people (all eight billions) are linked by only six degrees of separation. It really works, for code and for trusted social relations (like "I lend you 100 bucks and you pay me them back when you get your salary") mostly when you know the code author in person.

This is also not a new insight. In the beginning of the naughties, there was a web site named kuro5hin.org, which experiemented with user ratings and trust networks. It turned out impossible to prevent take-overs.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by groby_b on Friday March 29, 2024 @08:08PM (#39870419)
IIRC, kuro5hin and others all left out a crucial step in the web-of-trust approach: There were absolutely no repercussions when you extended trust to somebody who later turned out to be a bad actor.

It considers trust to be an individual metric instead of leaning more into the graph.

(There are other issues, e.g. the fact that "trust" isn't a universal metric either, but context dependent. There are folks whom you'd absolutely trust to e.g. do great & reliable work in a security context, but you'd still not hand them the keys to your car)

At least kuro5hin modeled a degradation of trust over time, which most models still skip.

It'd be a useful thing, but we have a long way to go before there's a working version.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by account42 on Thursday April 04, 2024 @05:26AM (#39928222)
Once you add punishment for handing out trust to bad actors, even in good faith (which you can't prove/disprove anyway), then you also need to somehow provide siginificant rewardsf for handing out trust to good actors - otherwise everyone is going to play it safe and not vouch for anyone and your system becomes useless.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by vintermann on Saturday March 30, 2024 @04:06AM (#39872830)
There were experiments back in the day. Slashdot had one system based on randomly assigned moderation duty which worked pretty great actually, except that for the longest time you couldn't sort by it.

Kuro5hin had a system which didn't work at all, as you mentioned.

But the best was probably Raph Levien's Advogato. That had a web of trust system which actually worked. But had a pretty limited scope (open source devs).

Now everyone just slaps an upvote/downvote button on and calls it a day.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by w4ffl35 on Friday March 29, 2024 @07:25PM (#39870162)
Clearly a human is even better at it.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by cyanydeez on Friday March 29, 2024 @07:42PM (#39870268)
State actors have equaly long horizons to compromise
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by llmblockchain on Friday March 29, 2024 @07:38PM (#39870245)
State level actor? China?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by logankeenan on Saturday March 30, 2024 @10:39AM (#39875319)
You're likely being downvoted because the Github profile looking like east Asian isn't evidence of where the attacker/attackers are from.

Nation states will go to long lengths to disguise their identity. Using broken Russian English when they are not Russian, putting comments in the code of another language, and all sorts of other things to create misdirection.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by llmblockchain on Saturday March 30, 2024 @01:36PM (#39876845)
That's certainly true-- at the very least it "seems" like Asian, but it could very well be from any nation. If they were patient enough to work up to this point they would likely not be dumb enough to leak such information.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by account42 on Thursday April 04, 2024 @05:29AM (#39928234)
Otoh with these kind of kneejerk "antiracist" reactions the best way to disguise a chinese operative becomes to prentend you're chinese.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by lucasRW on Saturday March 30, 2024 @11:46AM (#39875953)
More likely that the account of that dev was breawched, dont you think ?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by dang on Monday April 01, 2024 @03:51PM (#39898393)
(I detached this subthread from https://news.ycombinator.com/item?id=39866275, for the sake of pruning the top heavy thread.)
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by gmnon on Friday March 29, 2024 @02:50PM (#39867593)
Funny how Lasse Collin started to ccing himself and Jia Tan from 2024-03-20 (that was a day of tons of xz kernel patches), he never did that before. :)

https://lore.kernel.org/lkml/20240320183846.19475-2-lasse.co...

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by bombcar on Friday March 29, 2024 @04:20PM (#39868572)
This is extremely suspicious.

It looks like someone may have noticed a unmaintained or lightly maintained project related to various things, and moved to take control of it.

Otherwhere in the discussion here someone mentions the domain details changed; if you have control of the domain you have control of all emails associated with it.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ncr100 on Friday March 29, 2024 @03:27PM (#39868016)
Also interesting, to me, how the GMail account for the backdoor contributor ONLY appears in the context of "XZ" discussions. Google their email address. Suggests a kind of focus, to me, and a lack of reality / genuineness.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by fullstop on Friday March 29, 2024 @04:19PM (#39868564)
This also means that Google might know who they are, unless they were careful to hide behind VPN or other such means.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ui2RjUen875bfFA on Friday March 29, 2024 @06:31PM (#39869715)
those pipe usages are quite suspicious

https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-n...

https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-n...

pipeing into this shell script which now uses "eval"

https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-n...

i guess this will be revisited and removed soon

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Hackbraten on Friday March 29, 2024 @06:51PM (#39869887)
> pipeing into this shell script which now uses "eval"

I don’t actually see an issue with that `eval`. Why would one consider running `xz` followed by `eval`-ing its output more insecure than just running `xz`? If `xz` wants to do shenanigans with the privileges it already has, then it wouldn’t need `eval`’s help for that.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ui2RjUen875bfFA on Friday March 29, 2024 @07:34PM (#39870223)
just take a closer look at the analysis https://www.openwall.com/lists/oss-security/2024/03/29/4

then try to understand the pattern. they backdoored by modifying the build process of packages. now consider the $XZ is also from a backdoored build and the call recognizes in the same way with parameters --robot --version and the shell environment with the hint "xz_wrap.sh" from the piped process. a lot stuff to recognize for the $XZ process that it run as part of a kernel build.

Maybe they put advanced stuff in a backdoored $XZ binary to modify the kernel in a similar way they modified lzma based packages in the build process.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Bulat_Ziganshin on Friday March 29, 2024 @10:57PM (#39871444)
because in order to put backdoor into xz executable, you need to infect its sources. and in order to infect the sources, you need to use a similar technique to hide the modification
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by bonzini on Saturday March 30, 2024 @05:06AM (#39873116)
"started to cc himself" seems to be simply "contributing to a new project and not having git-send-email fully set up". By default git-send-email Cc the sender, though in practice it's one of the first options one changes.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jonathanspw on Friday March 29, 2024 @01:59PM (#39867078)
Yesterday sure was fun wasn't it :p Thanks for all your help/working with me on getting this cleaned up in Fedora.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by w4ffl35 on Friday March 29, 2024 @11:35PM (#39871629)
Is it normal that when I try to uninstall xz it is trying to install lzma?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by inetknght on Saturday March 30, 2024 @01:44AM (#39872158)
It means that `xz` was depended upon by something that depends on eg "xz OR lzma"
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by speleding on Saturday March 30, 2024 @11:02AM (#39875510)
PSA: I just noticed homebrew installed the compromised version on my Mac as a dependency of some other package. You may want to check this to see what version you get:

   xz --version
Homebrew has already taken action, a `brew upgrade` will downgrade back to the last known good version.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jonahx on Saturday March 30, 2024 @11:28AM (#39875753)
I also had a homebrew installed affected version.

I understand it's unlikely, but is there anything I can do to check if the backdoor was used? Also any other steps I should take after "brew upgrade"?

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by tomputer on Saturday March 30, 2024 @12:10PM (#39876159)
Quoting[1] from Homebrew on Github:

>> Looks like that Homebrew users (both macOS and Linux, both Intel and ARM) are unlikely affected?

> Correct. Though we do not appear to be affected, this revert was done out of an abundance of caution.

[1] https://github.com/Homebrew/homebrew-core/pull/167512

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by cozzyd on Saturday March 30, 2024 @11:33AM (#39875800)
Is it actually compromised on homebrew though? I guess we can't be sure but it seemed to be checking if it was being packaged as .deb or .rpm?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by mthoms on Saturday March 30, 2024 @11:10AM (#39875576)
Thanks for this. I just ran brew upgrade and the result was as you described:

  xz 5.6.1 -> 5.4.6
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by erhaetherth on Saturday March 30, 2024 @01:02PM (#39876542)
Is 5.2.2 safe? Just 5.6.0 and 5.6.1 are bad?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by pmarreck on Sunday March 31, 2024 @09:12AM (#39883956)
sorry, what exact version(s) is the one(s) affected again?

(or SHAs, etc.)

(EDIT: 5.6.0 and 5.6.1 ?)

(EDIT 2: Ooof, looks like the nix unstable channel uses xz 5.6.1 at this time)

I use Nix to manage this stuff on Mac, not Homebrew...

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by redxtech on Sunday March 31, 2024 @11:04PM (#39890543)
GitHub disabled the xz repo, making it a bit more difficult for nix to revert to an older version. They've made a fix, but it will take several more days for the build systems to finish rebuilding the ~220,000 packages that depend on the bootstrap utils.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by kreetx on Monday April 01, 2024 @04:46AM (#39891980)
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by account42 on Wednesday April 03, 2024 @06:33AM (#39915629)
Lol they shouldn't be relying on GitHub in the first place.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by rrrix1 on Thursday April 04, 2024 @09:50PM (#39937920)
What should they be relying on instead? Maybe rsync everything to an FTP server? Or Torrents? From your other comments, you seem to think no one should ever use GitHub for anything.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by smeehee on Friday March 29, 2024 @03:10PM (#39867822)
Debian have reverted xz-utils (in unstable) to 5.4.5 – actual version string is “5.6.1+really5.4.5-1”. So presumably that version's safe; we shall see…
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by xorcist on Friday March 29, 2024 @09:04PM (#39870831)
Is that version truly vetted? "Jia Tan" has been the official maintainer since 5.4.3, could have pushed code under any other pseudonym, and controls the signing keys. I would have felt better about reverting farther back, xz hasn't had any breaking changes for a long time.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by rnmkr on Friday March 29, 2024 @09:18PM (#39870915)
It's not only that account, other maintainer has been pushing the same promotion all over the place.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by tobias2014 on Friday March 29, 2024 @09:28PM (#39870975)
It looks like this is being discussed, with a complication of additional symbols that were introduced https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1068024
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by binkHN on Saturday March 30, 2024 @12:28AM (#39871835)
Thanks for this! I found this URL in the thread very interesting!

https://www.nongnu.org/lzip/xz_inadequate.html

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by mehdix on Saturday March 30, 2024 @02:14AM (#39872305)
It is an excellent technical write-up and yet again another testimonial to the importance of keeping things simple.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by userbinator on Saturday March 30, 2024 @03:54AM (#39872772)
The other comments here showing that the backdoor was a long-term effort now make me wonder just how long of an effort it was...
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by kzrdude on Saturday March 30, 2024 @04:21AM (#39872902)
There are suggestions to roll back further
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by sgarland on Saturday March 30, 2024 @09:42AM (#39874798)
TIL that +really is a canonical string. [0]

[0]: https://www.debian.org/doc/debian-policy/ch-controlfields.ht...

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by AdmiralAsshat on Friday March 29, 2024 @01:00PM (#39866326)
Yikes! Do you have any info on the individual's background or possible motivations?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by mrb on Friday March 29, 2024 @02:43PM (#39867535)
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 could in theory be malware authors (ransomware, etc). However these guys tend to aim at the low hanging fruits. They want to make a buck quickly. I don't think they have the patience and persistence to infiltrate an open source project for 2 long years to finally gain enough trust and access to backdoor it. On the other hand, a state actor is in for the long term, so they would spend that much time (and more) to accomplish that.

So that's my guess: Jia Tan is an employee of some intelligence agency. He chose to present an asian persona, but that's not necessarily who he truly represents. Could be anyone, really: Russia, China, Israel, or even the US, etc.

Edit: given that Lasse Collin was the only maintainer of xz utils in 2022 before Jia Tan, I wouldn't be surprised if the state actor interfered with Lasse somehow. They could have done anything to distract him from the project: introduce a mistress in his life, give him a high-paying job, make his spouse sick so he has to care for her, etc. With Lasse not having as many hours to spend on the project, he would have been more likely to give access to a developer who shows up around the same time and who is highly motivated to contribute code. I would be interested to talk to Lasse to understand his circumstances around 2022.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by hk__2 on Friday March 29, 2024 @04:53PM (#39868881)
> I haven't lost interest but my ability to care has been fairly limited mostly due to longterm mental health issues but also due to some other things. Recently I've worked off-list a bit with Jia Tan on XZ Utils and perhaps he will have a bigger role in the future, we'll see.

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

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by mrb on Friday March 29, 2024 @06:04PM (#39869489)
Dated June 2022. Good find!
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ibic on Sunday March 31, 2024 @05:10AM (#39882658)
That "Jigar Kumar" is like fake and one-time throw-off account, probably from the same state actor to orchestrate the painstakingly prepared supply chain attack (under the sun).
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by 4cao on Sunday March 31, 2024 @12:30PM (#39885650)
At first glance I thought it was a far-fetched conclusion but then I read in a subsequent reply he wrote:

> With your current rate, I very doubt to see 5.4.0 release this year. The only progress since april has been small changes to test code. You ignore the many patches bit rotting away on this mailing list. Right now you choke your repo. Why wait until 5.4.0 to change maintainer? Why delay what your repo needs?

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

The last two sentences really make it look as if he were trying to pressure the original author.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by MantraMuse on Tuesday April 02, 2024 @03:30PM (#39909905)
Oh wow, all his posts are trying to pressure Lasse, or guilt him into getting Jia on board. They're definitely conspiring.

"Your efforts are good but based on the slow release schedule it will unfortunatly be years until the community actually gets this quality of life feature."

"Patches spend years on this mailing list. 5.2.0 release was 7 years ago. There is no reason to think anything is coming soon."

"With your current rate, I very doubt to see 5.4.0 release this year. The only progress since april has been small changes to test code. You ignore the many patches bit rotting away on this mailing list. Right now you choke your repo. Why wait until 5.4.0 to change maintainer? Why delay what your repo needs?"

"Progress will not happen until there is new maintainer. XZ for C has sparse commit log too. Dennis you are better off waiting until new maintainer happens or fork yourself. Submitting patches here has no purpose these days. The current maintainer lost interest or doesn't care to maintain anymore. It is sad to see for a repo like this."

"Is there any progress on this? Jia I see you have recent commits. Why can't you commit this yourself?"

"Over 1 month and no closer to being merged. Not a suprise."

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Delk on Friday March 29, 2024 @04:39PM (#39868757)
> I wouldn't be surprised if the state actor interfered with Lasse somehow

People could also just get tired after years of active maintainership or become busier with life. Being the sole maintainer of an active open source project on top of work and perhaps family takes either a lot of enthusiasm or a lot of commitment. It's not really a given that people want to (or can) keep doing that forever at the same pace.

Someone then spots the opportunity.

I have no idea what the story is here but it might be something rather mundane.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by janc_ on Friday March 29, 2024 @03:00PM (#39867705)
Or they have just one or a small number of targets, but don’t want the target(s) to know that they were the only target(s), so they backdoor a large number of victims to “hide in the crowd”.

I agree that this is likely a state actor, or at least a very large & wealthy private actor who can play the long game…

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by fullstop on Friday March 29, 2024 @04:32PM (#39868696)
If anyone here happens to know Lasse, it might be good to check up on him and see how he's doing.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by dist-epoch on Friday March 29, 2024 @03:40PM (#39868141)
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 com... by bombcar on Friday March 29, 2024 @04:22PM (#39868589)
Don't forget that you could have state actors who are otherwise interested in open source code, and working to actually improve it.

In fact, that'd be the best form of deep cover. It'll be interested to watch as people more knowledgable than I pour over every single commit and change.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by hobobaggins on Friday March 29, 2024 @08:37PM (#39870633)
(not to be overly pedantic, but you probably meant pore, not pour: https://www.merriam-webster.com/grammar/pore-over-vs-pour-ov... )
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by apitman on Friday March 29, 2024 @07:09PM (#39870030)
If you have a backdoor in a specific piece of software already, what is the purpose of trying to introduce another backdoor (and risk it getting caught)?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by dist-epoch on Friday March 29, 2024 @07:54PM (#39870335)
This backdoor targeted only sshd.

There could be other backdoors for other targets.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by dgacmu on Friday March 29, 2024 @10:13PM (#39871212)
There are two general attack targets I'd use if I had access to a library/binary like xz:

(1) A backdoor like this one, which isn't really about its core functions, but about the fact that it's a library linked into critical code, so that you can use it to backdoor _other things_. Those are complex and tricky because you have to manipulate the linking/GOT specifically for a target.

(2) Insert an exploitable flaw such as a buffer overflow so that you can craft malicious .xz files that result in a target executing code if they process your file. This is a slightly more generic attack vector but that requires a click/download/action.

Not every machine or person you want to compromise has an exposed service like ssh, and not every target will download/decompress a file you send to them. These are decently orthogonal attack vectors even though they both involve a library.

(Note that there's as yet no evidence for #2 - I'm just noting how I'd try to leverage this to maximum effect if I wanted to.)

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Bulat_Ziganshin on Friday March 29, 2024 @10:18PM (#39871239)
xz is a data compression tool, so it's natural to have compressed files for (de)compression tests.

these files are also useful to check that the library we just built works correctly. but they aren't necessary for installation.

we may have more sophisticated procedures that will allow us to use some parts of distribution only for tests. This may significantly reduce an attack vector - many projects have huge, sophisticated testing infrastructure where you can hide the entire Wikipedia.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by 5p4n911 on Friday March 29, 2024 @04:03PM (#39868413)
Probably China is the least probable suspect, I think an added layer of obfuscation would not hurt for an agency with the goals of compromising xz in a few years. Though I'm not a malicious actor and I don't work in intelligence so take this with a big grain of salt.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by mrb on Friday March 29, 2024 @04:10PM (#39868472)
Brand new anon HN account created 17 minutes ago to defend China? Hmm, suspicious :-)
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by wyldberry on Friday March 29, 2024 @04:24PM (#39868613)
Plus China does not care about obfuscation. They smash and grab and then deny, deny, deny + counter accuse.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by wyldberry on Friday March 29, 2024 @05:24PM (#39869178)
I love that i get downvoted on this immediately like I haven't worked IR cases from CN threat actors that did just this.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by adamrezich on Friday March 29, 2024 @07:09PM (#39870029)
To be fair, if I worked for the responsible state and it wasn't China, then this is what I would do to deflect…
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by rpigab on Friday March 29, 2024 @04:43PM (#39868793)
Yeah, could be Venezuela. Though I'm not trying to make random statements to create uncertainty and doubt, so take this with a gigantic grain of salt.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by fooker on Friday March 29, 2024 @05:05PM (#39869005)
> Though I'm not a malicious actor

Yeah, the actor part seems unnecessary now.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jnxx on Friday March 29, 2024 @05:18PM (#39869124)
> 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.

The stuxnet malware, which compromised Siemens industrial controls to attack specific centrifuges in uranium enrichment plants in Iran, is a counterexample to that.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by mrb on Friday March 29, 2024 @07:59PM (#39870379)
Stuxnet wasn't similar to this xz backdoor. The Stuxnet creators researched (or acquired) four Windows zero-days, a relatively short-term endeavor. Whereas the xz backdoor was a long-term 2.5 years operation to slowly gain trust from Lasse Collin.

But, anyway, I'm sure we can find other counter-examples.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Repulsion9513 on Saturday March 30, 2024 @01:44AM (#39872155)
If a government wants to cast a wide nest and catch what they can, they'll just throw a tap in some IXP.

If a government went to this much effort to plant this vulnerability, they absolutely have targets in mind - just like they did when they went to the effort of researching (or acquiring) four separate Windows zero-days, combining them, and delivering them...

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jhugo on Monday April 01, 2024 @05:22PM (#39899517)
> a long-term 2.5 years operation to slowly gain trust from Lasse Collin

Couldn't the account that committed the backdoor have been compromised recently?

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by 2OEH8eoCRo0 on Friday March 29, 2024 @05:18PM (#39869126)
It's ridiculous to think it's the US as it would be an attack on Red Hat a US company and an attack on Americans. It's a good way to be dragged in front of Congress.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by AimHere on Friday March 29, 2024 @05:51PM (#39869397)
Hardly ridiculous.

You say that as if members of US government agencies didn't plot terror attacks on Americans (Operation Northwood), steal the medical records of American whistleblowers (Ellsberg), had to be prevented from assassinating American journalists (Gordon Liddy, on Jack Anderson), collude to assassinate American political activists (Fred Hampton), spy on presidential candidates (Watergate), sell weapons to countries who'd allegedly supported groups who'd launched suicide bombing attacks on American soldiers (Iran-Contra), allow drug smugglers to flood the USA with cocaine so that they could supply illegal guns to terrorists abroad on their return trip (Iran-Contra again) and get caught conducting illegal mass-surveillance on American people as a whole (Snowden). Among others.

It's super-naive to suggest that government agencies wouldn't act against the interest of American citizens and companies because there might be consequences if they were caught. Most of the instances above actually were instances where the perpetrators did get caught, which is why we know about them.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jonathankoren on Friday March 29, 2024 @07:32PM (#39870215)
You don’t even have to be this conspiratorially minded to believe the NSA is a legitimate suspect here. (For the record, I think literally every intelligence agency on Earth is plausible here.)

You kind of lost the thread when you say, “act against the interests of American citizens and companies”. Bro, literally anyone could be using xz, and anyone could be using Red Hat. You’re only “acting against Americans” if you use it against Americans. I don’t know who was behind this, but a perfectly plausible scenario would be the NSA putting the backdoor in with an ostensibly Chinese login and then activating on machines hosted and controlled by people outside of the US.

Focusing on a specific distro is myopic. Red Hat is popular.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by cesarb on Friday March 29, 2024 @08:26PM (#39870566)
> but a perfectly plausible scenario would be the NSA putting the backdoor in with an ostensibly Chinese login and then activating on machines hosted and controlled by people outside of the US.

There's a term for that: NOBUS (https://en.wikipedia.org/wiki/NOBUS). It won't surprise me at all if this backdoor can only be exploited if the attacker has the private key corresponding to a public key contained in the injected code. It also won't surprise me if this private key ends up being stolen by someone else, and used against its original owner.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jonathankoren on Friday March 29, 2024 @10:04PM (#39871168)
>It also won't surprise me if this private key ends up being stolen by someone else, and used against its original owner.

And that is exactly why backdoored encryption is bad.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Dalewyn on Friday March 29, 2024 @07:48PM (#39870302)
>(For the record, I think literally every intelligence agency on Earth is plausible here.)

You can discount Japan. This level of patience, sophistication, and precision attack is far beyond the (non-existent) competency of Japanese developers.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by eastern on Friday March 29, 2024 @11:13PM (#39871506)
100%.

The HN crowd has come a long way from practically hero-worshipping Snowden to automatically assuming that 'state actor' must mean the countries marked evil by the US.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by 2OEH8eoCRo0 on Friday March 29, 2024 @06:00PM (#39869458)
I love being called naive.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by SadTrombone on Friday March 29, 2024 @07:07PM (#39870024)
Seems like an appropriately used descriptor here.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by QuantumG on Friday March 29, 2024 @06:21PM (#39869626)
Whisper it to me lover.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by onthecanposting on Friday March 29, 2024 @09:30PM (#39870990)
Caught and, more importantly, nothing bad typically happened to anyone involved. Also worth noting that there is probably a survivorship bias in play.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by guinea-unicorn on Friday March 29, 2024 @05:39PM (#39869310)
The US has backdoored RSA's RNG and thus endangered the security of American companies. It is naive to think that US intelligence agencies will act in the best interest of US citizens or companies.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by tveita on Friday March 29, 2024 @07:28PM (#39870190)
Notably that was a "no-one-but-us" backdoor, that requires a specific secret key to exploit. We'll see when someone analyzes the payload further, but presumably this backdoor also triggers on a specific private key. If not there are ways to do it that would look far more like an innocent mistake, like a logic bug or failed bounds check.

I can see some arguments that might persuade the NSA to run an attack like this

  - gathers real world data on detection of supply attacks
  - serves as a wake-up call for a software community that has grown complacent on the security impact of dependencies
  - in the worst case, if no one finds it then hey, free backdoor
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by fragmede on Friday March 29, 2024 @06:34PM (#39869756)
What about the time it was shown they did the reverse (hardened security using math only they knew at the time) for DSA
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Dylan16807 on Friday March 29, 2024 @07:33PM (#39870221)
What about it?

There's an implicit "always" in their second sentence, if you're confused by the wording. They aren't positing the equivalent of the guard that only lies.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by fragmede on Friday March 29, 2024 @08:58PM (#39870779)
It's an interesting story for those who haven't heard about that an think the NSA could only be up to evil. You may not have read it as the guard only ever lies, but that doesn't stop people from thinking that anyway.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Dylan16807 on Friday March 29, 2024 @09:05PM (#39870832)
It's an interesting story, but I still don't know what you wanted as an answer to "What about".
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by 2OEH8eoCRo0 on Saturday March 30, 2024 @07:28AM (#39873828)
They were responding to:

> It is naive to think that US intelligence agencies will act in the best interest of US citizens or companies.

With an example of them doing exactly that.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Dylan16807 on Saturday March 30, 2024 @02:52PM (#39877559)
This is addressed very directly by the second paragraph of my first comment. Please adjust your response to take that into account.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by fragmede on Sunday March 31, 2024 @07:22AM (#39883244)
why are you so fight-y? do you have to be right, or have the last word? what is it?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Dylan16807 on Sunday March 31, 2024 @02:58PM (#39887004)
I'm perfectly willing to have an actual discussion, but someone coming along to ignore what I said is kind of annoying.

Is there something more productive that I could have replied with? (I know I could have been less snippy, but I think being snippy is fair there.)

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by fragmede on Monday April 01, 2024 @02:11AM (#39891322)
No I think that's it. "What about it?" kinda set me off, and then "if you're confused by the wording" was unnecessarily condescending.

You coulda just pointed out that just because they did right in the case of DSA, doesn't mean we should actually ever trust them, which I would agree is the correct stance.

Mostly I think that story is neat and wanted people to know about it, so I asked a question as a performative writing technique.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Dylan16807 on Tuesday April 02, 2024 @09:35PM (#39912727)
"What about it?" is a very real question that I still want to know the answer to. What did you want as a response when you asked that?

"If you're confused by the wording" was definitely condescending, but I think interpreting guinea-unicorn's post that way doesn't make sense. Even in your reply you didn't say you think it's the right interpretation, just that someone might believe the NSA could "only be up to evil". That followup gives the impression you were giving an FYI for readers. Which is nice to do, but then the "what about" doesn't fit.

So all of that is to say the words "what about" felt like you were deciding to read their post in an unfair way.

I'm happy to listen to an alternate explanation! But you ignored my request for why you said that, and I'm honestly kind of confused as to why that's what set you off.

So overall I think I think my first post can come across as fighty but I don't think the followups should suggest I'm making things fighty. I think my response to 2OEH8eoCRo0 was fine given the way they were ignoring half of the four sentences I had typed.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by 2OEH8eoCRo0 on Friday March 29, 2024 @05:45PM (#39869359)
That is speculation and has never been confirmed.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by hex4def6 on Friday March 29, 2024 @06:09PM (#39869526)
You are understating the level of evidence that points to the NSA being fully aware of what it was doing.

To be clear, the method of attack was something that had been described in a paper years earlier, the NSA literally had a program (BULLRUN) around compromising and attacking encryption, and there were security researchers at NIST and other places that raised concerns even before it was implemented as a standard. Oh, and the NSA paid the RSA $10 million to implement it.

Heck, even the chairman of the RSA implies they got used by the NSA:

In an impassioned speech, Coveillo said RSA, like many in industry, has worked with the NSA on projects. But in the case of the NSA-developed algorithm which he didn’t directly name, Coviello told conference attendees that RSA feels NSA exploited its position of trust. In its job, NSA plays two roles, he pointed out. In the information assurance directorate (IAD) arm of NSA, it decides on security technologies that might find use in the government, especially the military. The other side of the NSA is tasked with vacuuming up data for cyber-espionage purposes and now is prepared to take an offensive role in cyber-attacks and cyberwar.

“We can’t be sure which part of the NSA we’re working with,” said Coviello with a tone of anguish. He implied that if the NSA induced RSA to include a secret backdoor in any RSA product, it happened without RSA’s consent or awareness.

https://www.networkworld.com/article/687628/security-rsa-chi...

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by occamsrazorwit on Friday March 29, 2024 @06:02PM (#39869473)
What type of confirmation do you want? The documents aren't going to be declassified in the next couple of decades, if ever.

I've never heard anyone claim that Dual_EC_DRBG is most likely not intentionally backdoored, but there's literally no way to confirm because of how its written. If we can't analyze intention from the code, we can look at the broader context for clues. The NSA spent an unusual amount of effort trying to push forward an algorithm that kept getting shot down because it was slower than similar algorithms with no additional benefits (the $10 million deal specified it as a requirement [1]). If you give the NSA the benefit of the doubt, they spent a lot of time and money to... intentionally slow down random number generation?!

As an American, I'd prefer a competent NSA than an incompetent NSA that spends my tax dollars to make technology worse for literally no benefit...

[1] https://www.reuters.com/article/us-usa-security-rsa-idUSBRE9...

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by asveikau on Friday March 29, 2024 @07:11PM (#39870056)
I'm not very inclined to think this is the US govt, however, you should better acquaint yourself with the morals of some members of Congress.

I think the best reason to doubt USG involvement is the ease with which somebody discovered this issue, which is only a month or two old. I feel like NSA etc. knows not to get caught doing this so easily.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by mrb on Friday March 29, 2024 @06:10PM (#39869537)
Have you forgotten about the Snowden leaks exposing the surveillance on Americans by the American govt?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by threeseed on Friday March 29, 2024 @09:51PM (#39871091)
Every country spies on its own citizens.

By comparison America is actually quite timid compared to other countries e.g. UK and the widespread CCTV network.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by bpye on Saturday March 30, 2024 @01:30AM (#39872101)
I'd say that CCTV is quite different to wiretapping. You (generally) wouldn't have the expectation of privacy in a public place, most people would expect that phone calls, messages, etc do remain private.

Now, GCHQ is no better than the NSA for that either, but I don't think CCTV is a good comparison.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by silpol on Saturday March 30, 2024 @03:20PM (#39877770)
While his leaks expose surveillance, he was useful idiot https://en.wikipedia.org/wiki/Useful_idiot in hands of Assange club. And it might be event of his saving was trigger for Putin to start war. So no, I'd better see whole camaraderie before court and sentenced. Regardless of 'heroism'.

And yes, most of modern supporters of Wikileaks / Assange / Snowden / etc, chanting 'release Assange' and 'pardon Snowden' are useful idiots in hands of tyrannies like BRICS club.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by mardifoufs on Friday March 29, 2024 @09:49PM (#39871077)
Yeah as we know, intelligence agencies are very often held accountable in the US. As witnessed by all the individuals that got charged or punished for uh... nevermind.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by occamsrazorwit on Friday March 29, 2024 @05:47PM (#39869372)
Given the details from another comment [1], it sounds like both maintainers are suspicious. Lasse's behavior has changed recently, and he's been pushing to get Jia Tan's changes into the Linux kernel. It's possible both accounts aren't even run by the original Lasse Collin and Jia Tan anymore.

Edit: Also, Github has suspended both accounts. Perhaps they know something we don't.

[1] https://news.ycombinator.com/item?id=39865810#39866275

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by gamer191 on Friday March 29, 2024 @10:10PM (#39871200)
Where does that comment mention the other maintainer (Lasse Collin)?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by occamsrazorwit on Saturday March 30, 2024 @03:01AM (#39872497)
Whoops, I linked the wrong comment. I meant to link this one [1]. Anyway, seems like there's potentially a whole trail of compromised and fake accounts [2]. Someone in a government agency somewhere is pretty disappointed right now.

[1] https://news.ycombinator.com/item?id=39867593

[2] https://news.ycombinator.com/item?id=39866936

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by salamandar on Saturday March 30, 2024 @12:04PM (#39876113)
According to Webarchive, https://tukaani.org/contact.html changed very recently (between 11/02/2024 and 29/02/2024) to add Lasse Collin's PGP key fingerprint. That timing is weird, considering his git activity at that time is almost non existent. Although, i checked, this key existed back in 2012.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Denvercoder9 on Saturday March 30, 2024 @09:02PM (#39880330)
> considering his git activity at that time is almost non existent

Are you looking at the same repositories I am? He's made 88 commits to xz in that time period, two-thirds of the total.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Repulsion9513 on Friday March 29, 2024 @07:09PM (#39870040)
> Generally in the blackhat world, attackers have very precise targets

Lol, what

> wants to cast a wide net to attack as many as possible. So that fits the profile of a government intelligence agency

That's quite backwards. Governments are far more likely to deploy a complex attack against a single target (see also: Stuxnet); other attackers (motivated primarily by money) are far more likely to cast a wide net.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by gamer191 on Friday March 29, 2024 @10:13PM (#39871214)
> That's quite backwards. Governments are far more likely to deploy a complex attack against a single target (see also: Stuxnet); other attackers (motivated primarily by money) are far more likely to cast a wide net.

Governments are well known to keep vulnerabilities hidden (see EternalBlue). Intentionally introducing a vulnerability doesn’t seem that backwards tbh

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Repulsion9513 on Saturday March 30, 2024 @01:38AM (#39872135)
Oh for sure. I'm not suggesting that this wasn't a government actor, although I'd only give you 50/50 odds on it myself. It coulda just been someone with a bunch of time, like phreakers of old.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by pyrolistical on Friday March 29, 2024 @08:03PM (#39870399)
Literally this https://xkcd.com/2347/
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Havoc on Friday March 29, 2024 @10:32PM (#39871311)
Bit much speculating about mistresses and poisoned spouses with well anything to go on...
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ibic on Sunday March 31, 2024 @05:08AM (#39882646)
Yes, I believe it's an state actor, and the intention of choosing a typical Chinese name Jia Tan is intentially and malicious.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jpalomaki on Friday March 29, 2024 @03:13PM (#39867856)
Seems to be a perfect project to hijack. Not too much happening, widely used, long history, single maintainer who no longer has time to manage the project and wants to pass it over.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by rwmj on Friday March 29, 2024 @01:03PM (#39866357)
I handed over all the emails I received to the security team, who I guess will send them "higher". I'll let them analyse it.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by 5kg on Friday March 29, 2024 @01:56PM (#39867033)
There is zero web presence for this person and associated email address.

Looks more likely a fake identity than compromised account.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by mrb on Friday March 29, 2024 @02:22PM (#39867322)
Actually the "jiat0218" user part in his email address [email protected] has a bunch of matches on Taiwanese sites:

https://char.tw/blog/post/24397301

https://forum.babyhome.com.tw/topic/167439

https://bmwcct.com.tw/forums/thread1828.html

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by 5kg on Friday March 29, 2024 @02:31PM (#39867425)
I think it's just a coincidence.

- All the posts are from 2004/2006. - "jiat" can be abbreviation for many common Chinese names.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by mrb on Friday March 29, 2024 @02:47PM (#39867569)
I agree, probably a coincidence. Just wanted to point out we can, actually, find the username online.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by bruno-miguel on Friday March 29, 2024 @10:38PM (#39871347)
It might just be a coincidence, but the same username from that gmail account also appears to have a Proton Mail address
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by johnny22 on Friday March 29, 2024 @04:14PM (#39868516)
I've never had a web presencse for my associated emails due to wanting to avoid spammers. I don't have a false identity.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by johnisgood on Friday March 29, 2024 @04:31PM (#39868686)
Keep in mind that having a "false identity" does not make you a malicious actor. I have a serious project I work on under another pseudonym, but it has to do more with the fact that I do not want my real name to be associated with that project AND having a serious case of impostor syndrome. :/

That, and I used to contribute to various games (forks of ioquake3) when I was a teen and I wanted to keep my real name private.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by occamsrazorwit on Friday March 29, 2024 @07:20PM (#39870124)
Someone named "John is good" claims they aren't a malicious actor... You're trying real hard to convince us, huh.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by johnisgood on Saturday March 30, 2024 @06:41AM (#39873562)
Oh yeah, I am using a pseudonym here as well, because I have controversial views in some topics. :P
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by stephenr on Friday March 29, 2024 @05:20PM (#39869148)
> I don't have a false identity.

That's just what someone with a false identity would say.. get him boys!

The biggest /S

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Retr0id on Friday March 29, 2024 @02:13PM (#39867223)
Did you check Chinese social media?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by hw on Friday March 29, 2024 @09:52PM (#39871094)
Why would you think the person would have social media (or would even be on Chinese social media specifically), given the sophistication and planning?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Retr0id on Saturday March 30, 2024 @01:44AM (#39872156)
I mention Chinese social media specifically because I know it's not indexed so well by western search engines. You can't conclude someone has no social footprint until you've actually checked.

Regardless of how likely you think it is, finding a social media footprint would be useful information. Seek information first, reach conclusions second.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by thrash158 on Tuesday April 02, 2024 @08:17AM (#39904873)
I found this link on Zhihu: https://www.zhihu.com/question/650826484
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by junon on Friday March 29, 2024 @05:05PM (#39869014)
This is all I can find on them.

    carrd.co [email protected] business https://[email protected]
    eBay JiaT75 shopping https://www.ebay.com/usr/JiaT75
    giters jiat0218 coding https://giters.com/jiat0218
    giters JiaT75 coding https://giters.com/JiaT75
    GitHub jiat0218 coding https://github.com/jiat0218
    GitHub JiaT75 coding https://github.com/JiaT75
    Mastodon-meow.so.. [email protected] social https://meow.social/@[email protected]
Beyond that, nothing surefire. (This is all publicly queryable information, if anyone is curious).
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by janc_ on Friday March 29, 2024 @10:25PM (#39871275)
JiaT75 also used "jiatan" on Libera.Chat using a Singapore IP address (possibly a proxy/VPN).
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Zenul_Abidin on Friday March 29, 2024 @10:51PM (#39871416)
Where did you gather this information from?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by codear on Thursday April 04, 2024 @09:51PM (#39937923)
i wonder if that avatar, familiarity with C/C++ and Git, and "offering help with open source projects" is just coincidence

https://github.com/JiaT75

https://twitter.com/JiaTan1337/status/1774931375994319244

kind of interesting also to see this account was set up ~2 months ago. if it's a troll, it's a somewhat poor joke.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by wpietri on Friday March 29, 2024 @02:33PM (#39867446)
I get why people are focusing on this bad actor. But the question that interests me more: how many other apparent individuals fit the profile that this person presented before caught?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Phenylacetyl on Friday March 29, 2024 @07:52PM (#39870327)
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by collinfunk on Friday March 29, 2024 @09:16PM (#39870895)
Are you referencing the '-unsafe' suffix in the second link? That is not something to worry about.

This is from Gnulib, which is used by Gettext and other GNU projects. Using 'setlocale (0, NULL)' is not thread-safe on all platforms. Gnulib has modules to work around this, but not all projects want the extra locking. Hence the name '-unsafe'. :)

See: https://lists.gnu.org/archive/html/bug-gnulib/2024-02/msg001...

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by everybackdoor on Saturday March 30, 2024 @04:59AM (#39873074)
They may be right: https://git.alpinelinux.org/aports/log/main/gettext

Timeline matches and there is a sudden switch of maintainer. And they add dependency to xz!

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by kaathewise on Saturday March 30, 2024 @07:45AM (#39873923)
psykose was a prolific contributor to Alpine's aports, with thousands of commits over the past few years[0]. So, I doubt They're involved.

[0]: https://git.alpinelinux.org/aports/stats/?period=y&ofs=10

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by everybackdoor on Saturday March 30, 2024 @09:31AM (#39874681)
JiaT75 was also a prolific contributor to xz over the past few years, so your assumptions are generally invalid at this point.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by bbarnett on Friday March 29, 2024 @01:02PM (#39866351)
Yikes indeed. This fix is being rolled out very fast, but what about the entire rest of the codebase? And scripts? I mean, years of access? I'd trust no aspect of this code until a full audit is done, at least of every patch this author contributed.

(note: not referring to fedora here, a current fix is required. But just generally. As in, everyone is rolling out this fix, but... I mean, this codebase is poison in my eyes without a solid audit)

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by formerly_proven on Friday March 29, 2024 @01:15PM (#39866509)
Well that account also did most of the releases since 5.4.0.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by alwaysbeconsing on Friday March 29, 2024 @02:31PM (#39867431)
+1 Can see from project homepage http://web.archive.org/web/20240329165859/https://xz.tukaani... they have some release responsibility from 5.2.12.

> Versions 5.2.12, 5.4.3 and later have been signed with Jia Tan's OpenPGP key . The older releases have been signed with Lasse Collin's OpenPGP key .

It must be assume that before acquiring that privilege, they also contributed code to project. Probably most was to establish respectable record. Still could be malicious code going back someways.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by 0x0 on Friday March 29, 2024 @07:28PM (#39870187)
Looks like the Jia Tan OpenPGP key was replaced a few months ago as well: https://github.com/tukaani-project/tukaani-project.github.io...
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by bbarnett on Friday March 29, 2024 @01:11PM (#39866462)
This seems to be the account, correct me if wrong (linked from the security email commit link):

https://github.com/JiaT75

I hope authors of all these projects have been alerted.

STest - Unit testing framework for C/C++. Easy to use by simply dropping stest.c and stest.h into your project!

libarchive/libarchive - Multi-format archive and compression library

Seatest - Simple C based Unit Testing

Everything this account has done should be investigated.

Woha, is this legit or some sort of scam on Google in some way?:

https://github.com/google/oss-fuzz/pull/11587

edit: I have to be missing something, or I'm confused. The above author seems to be primary contact for xz? Have they just taken over?? Or did the bad commit come from another source, and a legit person applied it?

A bit confused here.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by tux3 on Friday March 29, 2024 @01:15PM (#39866521)
The concern about other projects is fine, but let's be careful with attacks directed at the person.

Maybe their account is compromised, maybe the username borrows the identity of an innocent person with the same name.

Focus on the code, not people. No point forming a mob.

(e: post above was edited and is no longer directed at the person. thanks for the edit.)

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by simiones on Friday March 29, 2024 @01:25PM (#39866665)
It's important to focus on people, not just code, when suspecting an adversary. Now, I have no idea if this is the right account, and if it has recently been compromised/sold/lost, or if it has always been under the ownership of the person who committed the backdoor. But IF this is indeed the right account, then it's important to block any further commit from it to any project, no matter how innocuous it seems, and to review thoroughly any past commit. For the most security-conscious projects, it would be a good idea to even consider reverting and re-implementing any work coming from this account if it's not fully understood.

An account that has introduced a backdoor is not the same thing as an account who committed a bug.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by tux3 on Friday March 29, 2024 @01:32PM (#39866763)
I agree we should look at the account and its contributions, I make a distinction between the account and the person.

Sometimes the distinction is not meaningful, but better safe than sorry.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by tsimionescu on Friday March 29, 2024 @02:42PM (#39867529)
Oh, agreed then.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by kevin_b_er on Friday March 29, 2024 @01:28PM (#39866707)
They appear to have moved carefully to set this up over the course of weeks by setting up the framework to perform this attack.

I would now presume this person to be a hostile actor and their contributions anywhere and everywhere must be audited. I would not wait for them to cry 'but my bother did it', because an actual malicious actor would say the same thing. The 'mob' should be pouring over everything they've touched.

Audit now and audit aggressively.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by bbarnett on Friday March 29, 2024 @01:40PM (#39866862)
My above post shows the primary domain for xz moving from tukaani.org to xz.tukaani.org. While it's hosted on github:

$ host xz.tukaani.org

host xz.tukaani.org is an alias for tukaani-project.github.io.

And originally it was not:

$ host tukaani.org

tukaani.org has address 5.44.245.25 (seemingly in Finland)

It was moved there in Jan of this year, as per the commit listed in my prior post. By this same person/account. This means that instead of Lasse Collin's more restrictive webpage, an account directly under the control of the untrusted account, is now able to edit the webpage without anyone else's involvement.

For example, to make subtle changes in where to report security issues to, and so on.

So far I don't see anything nefarious, but at the same time, isn't this the domain/page hosting bad tarballs too?

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by pja on Friday March 29, 2024 @01:59PM (#39867077)
This account changed the instructions for reporting security issues in the xz github as their very last commit:

    commit af071ef7702debef4f1d324616a0137a5001c14c (HEAD -> master, origin/master, origin/HEAD)
    Author: Jia Tan <[email protected]>
    Date:   Tue Mar 26 01:50:02 2024 +0800

        Docs: Simplify SECURITY.md.

    diff --git a/.github/SECURITY.md b/.github/SECURITY.md
    index e9b3458a..9ddfe8e9 100644
    --- a/.github/SECURITY.md
    +++ b/.github/SECURITY.md
    @@ -16,13 +16,7 @@ the chance that the exploit will be used before a patch is released.
     You may submit a report by emailing us at
     [[email protected]](mailto:[email protected]), or through
     [Security Advisories](https://github.com/tukaani-project/xz/security/advisories/new).
    -While both options are available, we prefer email. In any case, please
    -provide a clear description of the vulnerability including:
    -
    -- Affected versions of XZ Utils
    -- Estimated severity (low, moderate, high, critical)
    -- Steps to recreate the vulnerability
    -- All relevant files (core dumps, build logs, input files, etc.)
    +While both options are available, we prefer email.

     This project is maintained by a team of volunteers on a reasonable-effort
     basis. As such, please give us 90 days to work on a fix before
Seems innocuous, but maybe they were planning further changes.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by bombcar on Friday March 29, 2024 @02:18PM (#39867271)
> Seems innocuous, but maybe they were planning further changes.

Seems like an attempt to get 90 days of "use" of this vulnerability after discovery. If they only had checked performance before!

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by hackernudes on Friday March 29, 2024 @03:18PM (#39867916)
No, they just removed the bullet points about what to include in a report. The 90 days part was in both versions.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by bombcar on Friday March 29, 2024 @03:23PM (#39867965)
True, but the "talk only to me" part was new, I think.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by hughesjj on Tuesday April 02, 2024 @05:28AM (#39903806)
They didn't add any content, it was a pure removal commit
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by meragrin_ on Friday March 29, 2024 @05:12PM (#39869081)
Yes. An incomplete report allows for dragging out "fixing" the issue longer.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by buildbot on Friday March 29, 2024 @01:44PM (#39866902)
> tukaani.org has address 5.44.245.25 (seemingly in Finland)

Hetzner?

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by TimWolla on Friday March 29, 2024 @02:06PM (#39867141)
No:

    route:          5.44.240.0/21
    descr:          Zoner Oy
    origin:         AS201692
    mnt-by:         MNT-ZONER
    created:        2014-09-03T08:09:00Z
    last-modified:  2014-09-03T08:09:00Z
    source:         RIPE
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by whizzter on Friday March 29, 2024 @02:29PM (#39867407)
It's Finnish, Oy is short for "Osake Yhtiö" (share-association, basically a LLC), seems to be registered/hosted at https://www.zoner.fi/
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jaakl on Sunday March 31, 2024 @04:13AM (#39882415)
So probably Suojelupoliisi, Finnish Security and Intelligence Service is behind all this
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by buildbot on Friday March 29, 2024 @02:09PM (#39867174)
Interesting, seems to be a tiny finnish hosting company: https://www.zoner.fi/english/
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ancientMariner on Sunday March 31, 2024 @06:14AM (#39882942)
Zoner is a Finnish web hosting company, which has a history of providing hosting for Finnish open source projects, and the original maintainer (and most of the original crew) is Finnish as well. Nothing weird here.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by yencabulator on Friday March 29, 2024 @03:11PM (#39867825)
For what it's worth, tukaani is how you spell toucan (the bird) in Finnish, and Lasse is a common Finnish name; the site being previously hosted in Finland is very plausible.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Stagnant on Friday March 29, 2024 @03:56PM (#39868332)
Yeah according to their website[0] it looks like majority of the past contributors were Finnish so nothing odd about the hosting provider. On the same page it says that Jia Tan became co-maintainer of xz in 2022.

0: https://tukaani.org/about.html

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by mxmlnkn on Friday March 29, 2024 @07:24PM (#39870153)
The website change reminds me a bit of lbzip2.org https://github.com/kjn/lbzip2/issues/26#issuecomment-1582645... Although, at the moment, it only seems to be spam. The last commit was 6 years ago, so I guess that's better than a maintainer change...
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by mort96 on Friday March 29, 2024 @01:45PM (#39866907)
If the owner of the account is innocent and their account was compromised, it's on them to come out and say that. All signs currently point to the person being a malicious actor, so I'll proceed on that assumption.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by londons_explore on Friday March 29, 2024 @02:10PM (#39867176)
Does the person exist at all? Maybe they're a persona of a team working at some three letter agency...
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by bonzini on Friday March 29, 2024 @02:27PM (#39867386)
Or for some three letter party.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Citizen8396 on Friday March 29, 2024 @06:26PM (#39869668)
Probably not. I did some pattern of life analysis on their email/other identifiers. It looks exactly like when I set up a burner online identity- just enough to get past platform registration, but they didn't care enough to make it look real.

For example, their email is only registered to GitHub and Twitter. They haven't even logged into their Google account for almost a year. There's also no history of it being in any data breaches (because they never use it).

Burn the witch.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ancientMariner on Sunday March 31, 2024 @06:19AM (#39882962)
It would be interesting to hear the whole arc of social engineering behind getting access to the repo. Although, as a maintainer of a large-ish OSS project myself, I know that under a lot of burden any help will be welcomed with open arms, and I've never really talked about private stuff with any of them.
[dead]
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Ill_Yam_689 on Thursday April 11, 2024 @05:18AM (#40000126)
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ikmckenz on Friday March 29, 2024 @02:18PM (#39867280)
> The above author seems to be primary contact for xz?

They made themselves the primary contact for xz for Google oss-fuzz about one year ago: https://github.com/google/oss-fuzz/commit/6403e93344476972e9...

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by bed99 on Friday March 29, 2024 @03:02PM (#39867737)
A SourceGraph search like this shows https://sourcegraph.com/search?q=context:global+JiaT75&patte...

- Jia Tan <[email protected]>

- jiat75 <[email protected]>

``` amap = generate_author_map("xz")

        test_author = amap.get_author_by_name("Jia Cheong Tan")

        self.assertEqual(
            test_author.names, {"Jia Cheong Tan", "Jia Tan", "jiat75"}

        )

        self.assertEqual(

            test_author.mail_addresses,

            {"[email protected]", "[email protected]"}

        )
```
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by pryce on Friday March 29, 2024 @06:10PM (#39869533)
additionally, even though the commit messages they've made are mostly plain, there may be features of their commit messages that could provide leads, such as his using what looks like a very obscure racist joke of referring to a gitignore file as a 'gitnigore'. There's barely a handful of people on the whole planet making this 'joke'.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by berdario on Friday March 29, 2024 @07:13PM (#39870078)
Can you point to where you saw that racist joke?

I don't see anything at https://sourcegraph.com/search?q=context:global+author:jiat0...

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by pryce on Friday March 29, 2024 @07:21PM (#39870136)
first commit made in one of JiaT75's other repos https://github.com/JiaT75/STest/commits/master/
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by berdario on Friday March 29, 2024 @08:31PM (#39870596)
Thank you. If you wouldn't have explained the background, I totally would've thought that this is just an innocent typo.

(I still think it's like... 60% a typo? don't know)

Anyhow, other people called the CCing of JiaT75 by Lasse suspicious:

https://news.ycombinator.com/item?id=39867593

https://lore.kernel.org/lkml/20240320183846.19475-2-lasse.co...

Someone pointed out the "mental health issues" and "some other things"

https://news.ycombinator.com/item?id=39868881

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

Lasse is of course a Nordic name, and the whole project has a finnish name and hosting

https://news.ycombinator.com/item?id=39866902

If I wanted to go rogue and insert a backdoor in a project of mine, I'd probably create a new sockpuppet account and hand over management of the project to them. The above is worringly compatible with this hypothesis.

OTOH, JiaT75 did not reuse the existing hosting provider, but rather switched the site to github.io and uploaded there old tarballs:

https://github.com/tukaani-project/tukaani-project.github.io...

If JiaT75 is an old-timer in the project, wouldn't they have kept using the same hosting infra?

There are also some other grim possibilities: someone forced Lasse to hand over the project (violence or blackmailing? as farfetched as that sounds)... or maybe stole Lasse devices (and identity?) and now Lasse is incapacitated?

Or maybe it's just some other fellow scandinavian who pretended to be chinese and got Lasse's trust. In which case I wish Lasse all the best, and hope they'll be able to clear their name.

Is the same person sockpuppeting Hans Jansen? It's amusing (but unsurprising) that they are using both german-sounding and chinese-sounding identities.

That said, I don't think it's unreasonable to think that Lasse genuinely trusted JiaT75, genuinely believed that the ifunc stuff was reasonable (it probably isn't: https://news.ycombinator.com/item?id=39869538 ) and handed over the project to them.

And at the end of the day, the only thing linking JiaT75 to a nordic identity is a nordic racist joke which could well be a typo. People already checked the timezone of the commits, but I wonder if anyone has already checked the time-of-day of those commits... does it actually match the working hours that a person genuinely living (and sleeping) in China would follow? (of course, that's also easy to manipulate, but maybe they could've slip up)

Anyhow, I guess that security folks at Microsoft and Google (because of JiaT75 email account) are probably going to cooperate with authorities on trying to pin down the identity of JiaT75 (which might not be very useful, depending on where they live).

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by berdario on Friday March 29, 2024 @09:20PM (#39870925)
> does it actually match the working hours that a person genuinely living (and sleeping) in China would follow?

No, it doesn't:

https://play.clickhouse.com/play?user=play#U0VMRUNUIHRvSG91c...

The vast majority of their Github interactions are between 12.00 UTC and 18.00 UTC

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by junon on Friday March 29, 2024 @10:14PM (#39871218)
It's worth mentioning Lasse is still online in the Libera chat room, idling. Nothing's been said.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by berdario on Sunday March 31, 2024 @10:04AM (#39884366)
From elsewhere in the comments:

https://news.ycombinator.com/item?id=39874621

> He came on IRC, he seemed ok. He did some cleanup of access and signed off for easter.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Bulat_Ziganshin on Friday March 29, 2024 @10:53PM (#39871424)
i think it's American trauma. outside of the Western hemisphere, sexist and racist jokes are just jokes
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by AnarchismIsCool on Sunday March 31, 2024 @12:42AM (#39881512)
Pretty sure this is just a typo...
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by berdario on Friday March 29, 2024 @07:12PM (#39870067)
I tried to understand the significance of this (parent maybe implied that they reused a completely fictitious identity generated by some test code), and I think this is benign.

That project just includes some metadata about a bunch of sample projects, and it links directly to a mirror of the xz project itself:

https://github.com/se-sic/VaRA-Tool-Suite/blob/982bf9b9cbf64...

I assume it downloads the project, examines the git history, and the test then ensures that the correct author name and email addresses are recognized.

(that said, I haven't checked the rest of the project, so I don't know if the code from xz is then subsequently built, and or if this other project could use that in an unsafe manner)

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by KomoD on Sunday March 31, 2024 @06:08PM (#39888515)
Interesting thing about this [email protected] email is that it seems to not exist?

The google account: "Couldn't find your Google Account"

The email: "50 5.1.1 The email account that you tried to reach does not exist"

But then when you try to register it says it's taken.

Was it disabled?

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by bed99 on Sunday March 31, 2024 @09:58PM (#39890160)
I'd say at this point all major tech companies, ISPs and authorities should have more enough information and disabling and freezing their accounts would be the first step.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Flame on Sunday March 31, 2024 @11:43PM (#39890728)
This can happen if you delete your old gmail account. Source: I deleted a gmail account I shouldn't have years ago. It will say taken if it previously existed, and was deleted.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by davexunit on Friday March 29, 2024 @01:57PM (#39867042)
JiaT75 also has commits in wasmtime according to https://hachyderm.io/@joeyh/112180082372196735
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by mintplant on Friday March 29, 2024 @02:19PM (#39867283)
Just a documentation change, fortunately:

https://github.com/bytecodealliance/wasmtime/commits?author=...

They've submitted little documentation tweaks to other projects, too; for example:

https://learn.microsoft.com/en-us/cpp/overview/whats-new-cpp...

I don't know whether this is a formerly-legitimate open source contributor who went rogue, or a deep-cover persona spreading innocuous-looking documentation changes around to other projects as a smokescreen.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by bombcar on Friday March 29, 2024 @04:25PM (#39868617)
Minor documentation change PRs is a well known tactic used to make your GitHub profile look better (especially to potential employers).

He could be doing the same thing for other reasons; nobody really digs into anything very deep so I could see someone handing over co-maintenance to a project based on a decent looking Github graph and some reasonability.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by mysidia on Friday March 29, 2024 @05:17PM (#39869116)
Consider the possibility those type of submissions were part of the adversary's strategy in order to make their account appear more legitimate rather than appearing out of nowhere wanting to become the maintainer of some project.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by pinko on Friday March 29, 2024 @02:15PM (#39867238)
per https://hachyderm.io/@bjorn3/112180226784517099, "The only contribution by them to Wasmtime is a doc change. No actual code or binary blobs have been changed by them."
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by soraminazuki on Friday March 29, 2024 @01:17PM (#39866543)
Oh no, not libarchive! GitHub search shows 6 pull requests were merged back in 2021.

https://github.com/search?q=repo%3Alibarchive%2Flibarchive+j...

It does look innocent enough though. Let's hope there's no unicode trickery involved...

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by steelframe on Friday March 29, 2024 @01:28PM (#39866715)
Maybe not. They removed safe_fprintf() here and replaced it with the (unsafe) fprintf().

https://github.com/libarchive/libarchive/commit/e37efc16c866...

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by dchest on Friday March 29, 2024 @02:28PM (#39867392)
That seems to be fine. safe_fprintf() takes care of non-printable characters. It's used for archive_entry_pathname, which can contain them, while "unsafe" fprintf is used to print out archive_error_string, which is a library-provided error string, and strerror(errno) from libc.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by mbauman on Friday March 29, 2024 @03:15PM (#39867873)
We know there's long-cons in action here, though. This PR needn't be the exploit. It needn't be anywhere _temporally_ close to the exploit. It could just be laying groundwork for later pull requests by potentially different accounts.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by datenwolf on Friday March 29, 2024 @03:55PM (#39868312)
Exactly. If we assume the backdoor via liblzma as a template, this could be a ploy to hook/detour both fprintf and strerror in a similar way. Get it to diffuse into systems that rely on libarchive in their package managers.

When the trap is in place deploy a crafted package file that appears invalid on the surface level triggers this trap. In that moment fetch the payload from the (already opened) archive file descriptor, execute it, but also patch the internal state of libarchive so that it will process the rest of the archive file as if nothing happened, and the desired outcome also appearing in the system.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by zrm on Friday March 29, 2024 @04:04PM (#39868419)
Assuming there isn't another commit somewhere modifying a library-provided error string or anything returned by libc. There is all kinds of mischief to be had there, which may or may not have already happened, e.g. now you do some i18n and introduce Unicode shenanigans.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by buildbot on Friday March 29, 2024 @01:38PM (#39866839)
If libarchive is also backdoored, would that allow specifically crafted http gzip encoded responses to do bad things?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by nicolas_17 on Friday March 29, 2024 @02:03PM (#39867117)
What software is using libarchive to decode HTTP responses?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by buildbot on Friday March 29, 2024 @02:10PM (#39867189)
I don't know, way outside my domain. Possibly none I guess?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by giantrobot on Friday March 29, 2024 @05:45PM (#39869354)
FreeBSD's archive tools are built on top of libarchive IIRC. Not sure about the other BSDs.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by mattbee on Friday March 29, 2024 @07:14PM (#39870084)
Well for one, the Powershell script I just wrote to build all the 3rd-party library dependencies for a video game.

tar.exe was added to Windows this January, sourced from libarchive: https://learn.microsoft.com/en-us/virtualization/community/t...

Unlike the GNU tar I'm used to, it's actually a "full fat" command line archiving tool, compressing & decompressing zip, xz, bz2 on the command-line - really handy :-O

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by duskwuff on Friday March 29, 2024 @04:55PM (#39868901)
No. There's no good reason HTTP response decoding would ever be implemented in terms of libarchive; using libz directly is simpler and supports some use cases (like streaming reads) which libarchive doesn't.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by billyhoffman on Friday March 29, 2024 @01:41PM (#39866874)
EDIT: Ahh, I was wrong and missed the addition of "strerror"

The PR is pretty devious.

JiaT75 claims is "Added the error text when printing out warning and errors in bsdtar when untaring. Previously, there were cryptic error messages" and cites this as fixing a previous issue.

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

However it doesn't actually do that!

The PR literally removes a new line between 2 arguments on the first `safe_fprintf()` call, and converts the `safe_fprintf()` to unsafe direct calls to `fprintf()`. In all cases, the arguments to these functions are exactly the same! So it doesn't actually make the error messages any different, it doesn't actually solve the issue it references. And the maintainer accepted it with no comments!

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by londons_explore on Friday March 29, 2024 @01:51PM (#39866962)
reread it...

It does remove the safe prefixes... But it also adds one print statement to "strerror()", which could plausibly give better explanations for the error code...

The only suspicious thing here is the lack for safe_ prefix (and the potential for the strerror() function to already be backdoored elsewhere in another commit)

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by zb3 on Friday March 29, 2024 @01:50PM (#39866947)
But I see the "strerror" call is added
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by metzmanj on Friday March 29, 2024 @03:05PM (#39867772)
>Woha, is this legit or some sort of scam on Google in some way?:

I work on OSS-Fuzz.

As far as I can tell, the author's PRs do not compromise OSS-Fuzz in any way.

OSS-Fuzz doesn't trust user code for this very reason.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by packetlost on Friday March 29, 2024 @03:37PM (#39868117)
It looks more like they disabled a feature of oss-fuzz that would've caught the exploit, no?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by metzmanj on Friday March 29, 2024 @04:02PM (#39868391)
That's what people are saying though I haven't had the chance to look into this myself.

Fuzzing isn't really the best tool for catching bugs the maintainer intentionally inserted though.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by bombcar on Friday March 29, 2024 @04:26PM (#39868634)
It's more likely that fuzzing would blow up on new code and they wanted an excuse to remove it.

After all, if it hadn't had a performance regression (someone could submit a PR fixing whatever slowed it down, heh) it still wouldn't be known.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Zetobal on Friday March 29, 2024 @01:35PM (#39866803)
That looks like a repo that would sound alarms if you look at it from a security standpoint.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jnxx on Friday March 29, 2024 @06:41PM (#39869795)
There is also a variety of new, parallelized implementations of compression algorithms which would be good to have a close look at. Bugs causing undefined behaviour in parallel code are notoriously hard to see, and the parallel versions (which are actually much faster) could be take the place of well-established programs which have earned a lot of trust.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by dang on Friday March 29, 2024 @11:30PM (#39871606)
We detached this subthread from https://news.ycombinator.com/item?id=39866275. (It's fine; I'm just trying to prune the top-heavy subthread.)
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by AviationAtom on Saturday March 30, 2024 @11:08AM (#39875561)
Not a developer but reading the changelogs and commit history from this person seem interesting, as they appear to be some effort consolidate control and push things in the direction of supporting wider dissemination of their backdoor code:

Discussing commits that the other author has since reverted, IFUNC change with Project Zero tests, a focus on embedded, etc.:

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

Trimming security reporting details:

https://git.tukaani.org/?p=xz.git;a=commitdiff;h=af071ef7702...

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by electronwill on Saturday March 30, 2024 @06:22PM (#39879256)
"crazytan" is the LinkedIn profile of a security software engineer named Jia Tan in Sunnyvale working at Snowflake, who attended Shanghai Jiao Tong University from 2011 to 2015 and Georgia Institute of Technology from 2015 to 2017. However, this Jia Tan on LinkedIn might not be the same Jia Tan who worked on XZ Utils. Also, the person who inserted the malicious code might be someone else who hijacked the account of the Jia Tan who worked on XZ Utils.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by wtznc on Sunday March 31, 2024 @12:38AM (#39881491)
I found a user who seems suspicious to me.

https://github.com/snappyJack/CVE-request-XZ-5.2.5-has-denia...

He understood the software architecture quite early on while working on the following repository. He connected the dots from his other projects and went rogue. (probably to benefit from crypto?). Take a look at his other repositories and code style and recent likes on github. Is he our Jia Tan?

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by b7kich on Sunday March 31, 2024 @06:10AM (#39882923)
May or may not be related: https://www.linkedin.com › crazytan Jia Tan - Snowflake | LinkedIn
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by molaeiali on Tuesday April 02, 2024 @10:52AM (#39906396)
Has Jia in any way posted a response to the incident?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by AdmiralAsshat on Tuesday April 02, 2024 @11:01AM (#39906526)
My assumption would be that he knows the jig is up, and is probably going to do everything he can to jettison the JiaTan account, lest any IPs he uses be turned over to authorities.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by source_inform on Sunday April 07, 2024 @07:14PM (#39964779)
An Indian with the name, Jigar (meaning heart) would never address himself as Jigar, as seen in the citation. This would be culturally a bit weird. Unless he is being sarcastic or writing this on some comic note.

Secondly, the use of English is not consistent in what should be from typical Indian. He should be from a foreign background or a very reputed English medium.

The language though seemingly simple for a native English speaker but it seems in this case; a person whose first language: likely is not English.

It is possible that Grammarly or auto correct could have been used to write these. But can't be certain of anything stated above.

I do think that this is a sabotage account with 60% chances unless Mr. Kumar comes out clean, publicly. He is likely a state sponsored actor.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by formerly_proven on Friday March 29, 2024 @01:48PM (#39866936)
I think this has been in the making for almost a year. The whole ifunc infrastructure was added in June 2023 by Hans Jansen and Jia Tan. The initial patch is "authored by" Lasse Collin in the git metadata, but the code actually came from Hans Jansen: https://github.com/tukaani-project/xz/commit/ee44863ae88e377...

> Thanks to Hans Jansen for the original patch.

https://github.com/tukaani-project/xz/pull/53

There were a ton of patches by these two subsequently because the ifunc code was breaking with all sorts of build options and obviously caused many problems with various sanitizers. Subsequently the configure script was modified multiple times to detect the use of sanitizers and abort the build unless either the sanitizer was disabled or the use of ifuncs was disabled. That would've masked the payload in many testing and debugging environments.

The hansjans162 Github account was created in 2023 and the only thing it did was add this code to liblzma. The same name later applied to do a NMU at Debian for the vulnerable version. Another "<name><number>" account (which only appears here, once) then pops up and asks for the vulnerable version to be imported: https://www.mail-archive.com/search?l=debian-bugs-dist@lists...

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by zb3 on Friday March 29, 2024 @01:58PM (#39867049)
Also I saw this hans jansen user pushing for merging the 5.6.1 update in debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1067708
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by hxelk1 on Friday March 29, 2024 @05:29PM (#39869226)
From: krygorin4545 <[email protected]> To: "[email protected]" <[email protected]> Cc: "[email protected]" <[email protected]>, "[email protected]" <[email protected]> Subject: Re: RFS: xz-utils/5.6.1-0.1 [NMU] -- XZ-format compression utilities Date: Tue, 26 Mar 2024 19:27:47 +0000

Also seeing this bug. Extra valgrind output causes some failed tests for me. Looks like the new version will resolve it. Would like this new version so I can continue work.

--

Wow.

(Edited for clarity.)

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by bed99 on Friday March 29, 2024 @04:02PM (#39868390)
1 week ago "Hans Jansen" user "hjansen" was created in debian and opened 8 PRs including the upgrade to 5.6.1 to xz-utils

From https://salsa.debian.org/users/hjansen/activity

Author: Hans Jansen <[email protected]>

- [Debian Games / empire](https://salsa.debian.org/games-team/empire): opened merge request "!2 New upstream version 1.17" - March 17, 2024

- [Debian Games / empire](https://salsa.debian.org/games-team/empire): opened merge request "!1 Update to upstream 1.17" - March 17, 2024

- [Debian Games / libretro / libretro-core-info](https://salsa.debian.org/games-team/libretro/libretro-core-i...): opened merge request "!2 New upstream version 1.17.0" - March 17, 2024

- [Debian Games / libretro / libretro-core-info](https://salsa.debian.org/games-team/libretro/libretro-core-i...): opened merge request "!1 Update to upstream 1.17.0" - March 17, 2024

- [Debian Games / endless-sky](https://salsa.debian.org/games-team/endless-sky): opened merge request "!6 Update upstream branch to 0.10.6" - March 17, 2024

- [Debian Games / endless-sky](https://salsa.debian.org/games-team/endless-sky): opened merge request "!5 Update to upstream 0.10.6" - March 17, 2024

- [Debian / Xz Utils](https://salsa.debian.org/debian/xz-utils): opened merge request "!1 Update to upstream 5.6.1" - March 17, 2024

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by bombcar on Friday March 29, 2024 @04:27PM (#39868644)
That looks exactly like what you'd want to see to disguise the actual request you want, a number of pointless upstream updates in things that are mostly ignored, and then the one you want.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by bed99 on Friday March 29, 2024 @05:46PM (#39869360)
agree
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by detistea on Saturday March 30, 2024 @03:43PM (#39877938)
glad I didn't merge it ...
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by bluecheese33 on Friday March 29, 2024 @02:06PM (#39867142)
> because the ifunc code was breaking with all sorts of build options and obviously caused many problems with various sanitizers

for example, https://github.com/google/oss-fuzz/pull/10667

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by zb3 on Friday March 29, 2024 @02:04PM (#39867127)
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by amluto on Friday March 29, 2024 @06:10PM (#39869538)
Wow, what a big pile of infrastructure for a non-optimization.

An internal call via ifunc is not magic — it’s just a call via the GOT or PLT, which boils down to function pointers. An internal call through a hidden visibility function pointer (the right way to do this) is also a function pointer.

The even better solution is a plain old if statement, which implements the very very fancy “devirtualization” optimization, and the result will be effectively predicted on most CPUs and is not subject to the whole pile of issue that retpolines are needed to work around.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by account42 on Wednesday April 03, 2024 @06:30AM (#39915610)
Right, IFUNCs make sense for library function where you have the function pointer indirection anyway. Makes much less sense for internal functions - only argument over a regular function pointer would be the pointer being marked RO after it is resolved (if the library was linked with -z relro -z now), but an if avoids even that issue.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by snvzz on Friday March 29, 2024 @11:46PM (#39871674)
>Hans Jansen and Jia Tan

Are they really two people conspiring?

Unless proven otherwise, it is safe to assume one is just a pseudonym alias of the other.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by EasyMark on Saturday March 30, 2024 @01:06AM (#39871990)
or possibly just one person acting as two, or a group of people?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by cutemonster on Monday April 08, 2024 @12:10PM (#39971145)
Or a group managing many identities, backdooring many different projects
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by formerly_proven on Saturday March 30, 2024 @04:13AM (#39872872)
Make it two years.

Jia Tan getting maintainer access looks like it is almost certainly to be part of the operation. Lasse Colling mentioned multiple times how Jia has helped off-list and to me it seems like Jia befriended Lasse as well (see how Lasse talks about them in 2023).

Also the pattern of astroturfing dates back to 2022. See for example this thread where Jia, who has helped at this point for a few weeks, posts a patch, and a <name><number>@protonmail (jigarkumar17) user pops up and then bumps the thread three times(!) lamenting the slowness of the project and pushing for Jia to get commit access: https://www.mail-archive.com/[email protected]/msg00553.h...

Naturally, like in the other instances of this happening, this user only appears once on the internet.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by tootie on Saturday March 30, 2024 @10:03AM (#39875001)
Does anybody know anything about Jia Tan? Is it likely just a made up persona? Or is this a well-known person.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by SZJX on Monday April 01, 2024 @05:19PM (#39899479)
It’s certainly a pseudonym just like all the other personas we’ve seen popping up on the mailing list supporting this “Jia Tan” in these couple of years. For all intents and purposes they can be of any nationality until we know more.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Jommi on Friday March 29, 2024 @03:41PM (#39868153)
the account was either sold or stolen
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by account42 on Wednesday April 03, 2024 @07:32AM (#39916064)
That's pure speculation and there are plenty of hints to the contrary.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by KingOfCoders on Friday March 29, 2024 @02:03PM (#39867115)
Sleeper.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by yieldcrv on Friday March 29, 2024 @01:31PM (#39866745)
I wonder who the target was!
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by juliusdavies on Saturday March 30, 2024 @12:07AM (#39871753)
Every Linux box inside AWS, Azure, and GCP and other cloud providers that retains the default admin sudo-able user (e.g., “ec2”) and is running ssh on port 22.

I bet they intended for their back door to eventually be merged into the base Amazon Linux image.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Bulat_Ziganshin on Saturday March 30, 2024 @08:38AM (#39874273)
my understanding is that any Debian/RPM-based Linux running sshd would become vulnerable in a year or two. The best equivalent of this exploit is the One Ring.

So the really strange thing is why they put so little effort into making this undetectable. All they needed was to make it use less time to check each login attempt.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by kevincox on Saturday March 30, 2024 @11:12AM (#39875597)
In the other hand it was very hard to detect. The slow login time was the only thing that gave it away. It more seems like they were so close to being highly successful. In retrospect improving the performance would have been the smart play. But that is one part that went wrong compared to very many that went right.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by throwaway7356 on Saturday March 30, 2024 @12:59PM (#39876509)
You don't need a "ec2" user. A backdoor can just allow root login even when that is disabled for people not using the backdoor.

It just requires the SSH port to be reachable unless there is also a callout function (which is risky as people might see the traffic). And with Debian and Fedora covered and the change eventually making its way into Ubuntu and RHEL pretty much everything would have this backdoor.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by swagmoney1606 on Saturday March 30, 2024 @01:47AM (#39872177)
Probably less of an individual and more of an exploit to sell.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by njsg on Saturday March 30, 2024 @05:07PM (#39878675)
Distro build hosts and distro package maintainers might not be a bad guess. Depends on whether getting this shipped was the final goal. It might have been just the beginning, part of some bootstrapping.
[dead]
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by zb3 on Friday March 29, 2024 @01:11PM (#39866472)
Not sure why are people downvoting you... it's pretty unlikely that various Chinese IoT companies would just decide it's cool to add a backdoor, which clearly implies that no matter how good their intentions are, they simply might have no other choice.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by gpm on Friday March 29, 2024 @01:19PM (#39866574)
There are roughly speaking two possibilities here:

1. His machine was compromised, he wasn't at fault past having less than ideal security (a sin we are all guilty of). His country or origin/residence is of no importance and doxing him isn't fair to him.

2. This account was malicious. There's no reason we should believe that the identity behind wasn't fabricated. The country of origin/residence is likely falsified.

In neither case is trying to investigate who he is on a public forum likely to be productive. In both cases there's risk of aiming an internet mob at some innocent person who was 'set up'.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by zb3 on Friday March 29, 2024 @01:33PM (#39866765)
Why do you exclude the possibility that this person was forced to add this at gunpoint?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by encoderer on Friday March 29, 2024 @01:40PM (#39866863)
Yes exactly this. How do people think state actors have all those 0 day exploits. Excellent research? No! They are adding them themselves!
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by rjzzleep on Friday March 29, 2024 @02:03PM (#39867114)
The back door is in the upstream GitHub tarball. The most obvious way to get stuff there is by compromising an old style GitHub token. The new style GitHub tokens are much better but it’s somewhat intransparent what options you need. Most people also don’t use expiring tokens. The authors seems to have a lot of oss contributions, so probably an easy target to choose.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by account42 on Wednesday April 03, 2024 @07:28AM (#39916031)
I think the letters+numbers naming scheme for both the main account and the sockpuppets used to get him access to xz and the versions into distros is a strong hint at (2). Taking over xz maintainership without any history of open source contributions is also suspicious.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by noncoml on Friday March 29, 2024 @01:49PM (#39866939)
Because it’s naive to think that the owner of the account used his real identity.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by zb3 on Friday March 29, 2024 @01:52PM (#39866971)
But my point is that people living in China might be "forced" to do such things, so we unfortunately can't ignore the country. Of course, practically this is problematic since the country can be faked
[dead]
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by matheusmoreira on Friday March 29, 2024 @01:58PM (#39867064)
Don't blame the guy. Could have happened to anyone. Even you.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by sorokod on Friday March 29, 2024 @03:25PM (#39867988)
Is there anything incorrect?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by dang on Friday March 29, 2024 @07:04PM (#39869987)
It's an uncharitable summary that comes across as a personal attack, which is not allowed in HN comments.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by gigatexal on Friday March 29, 2024 @01:22PM (#39866612)
Name and shame this author. They should never be allowed anywhere near any open projects ever again.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by 0xbadcafebee on Friday March 29, 2024 @01:53PM (#39866989)
Please don't?

1. You don't actually know what has been done by whom or why. You don't know if the author intended all of this, or if their account was compromised. You don't know if someone is pretending to be someone else. You don't know if this person was being blackmailed, forced against their will, etc. You don't really know much of anything, except a backdoor was introduced by somebody.

2. Assuming the author did do something maliciously, relying on personal reputation is bad security practice. The majority of successful security attacks come from insiders. You have to trust insiders, because someone has to get work done, and you don't know who's an insider attacker until they are found out. It's therefore a best security practice to limit access, provide audit logs, sign artifacts, etc, so you can trace back where an incursion happened, identify poisoned artifacts, remove them, etc. Just saying "let's ostracize Phil and hope this never happens again" doesn't work.

3. A lot of today's famous and important security researchers were, at one time or another, absolute dirtbags who did bad things. Human beings are fallible. But human beings can also grow and change. Nobody wants to listen to reason or compassion when their blood is up, so nobody wants to hear this right now. But that's why it needs to be said now. If someone is found guilty beyond a reasonable doubt (that's really the important part...), then name and shame, sure, shame can work wonders. But at some point people need to be given another chance.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by gigatexal on Friday March 29, 2024 @02:22PM (#39867326)
100% fair -- we don't know if their account was compromised or if they meant to do this intentionally.

If it were me I'd be doing damage control to clear my name if my account was hacked and abused in this manner.

Otherwise if I was doing this knowing full well what would happen then full, complete defederation of me and my ability to contribute to anything ever again should commence -- the open source world is too open to such attacks where things are developed by people who assume good faith actors.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by gigatexal on Friday March 29, 2024 @02:45PM (#39867550)
upon further reflection all 3 of your points are cogent and fair and valid. my original point was a knee-jerk reaction to this. :/
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Biganon on Friday March 29, 2024 @06:33PM (#39869748)
Your being able to reflect upon it and analyze your own reaction is rare, valuable and appreciated
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by gigatexal on Saturday March 30, 2024 @08:56AM (#39874413)
I think I went through all the stages of grief. Now at the stage of acceptance here’s what I hope: I hope justice is done. Whoever is doing this be they a misguided current black hat (hopefully, future white hat) hacker, or just someone or someones that want to see the world burn or something in between that we see justice. And then forgiveness and acceptance and all that can happen later.

Mitnick reformed after he was convicted (whether you think that was warranted or not). Here if these folks are Mitnick’s or bad actors etc let’s get all the facts on the table and figure this out.

What’s clear is that we all need to be ever vigilant: that seemingly innocent patch could be part of a more nefarious thing.

We’ve seen it before with that university sending patches to the kernel to “test” how well the core team was at security and how well that went over.

Anyways. Yeah. Glad you all allowed me to grow. And I learned that I have an emotional connection to open source for better or worse: so much of my life professional and otherwise is enabled by it and so threats to it I guess I take personally.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Kwpolska on Saturday March 30, 2024 @04:16AM (#39872884)
It is reasonable to consider all commits introduced by the backdoor author untrustworthy. This doesn't mean all of it is backdoored, but if they were capable of introducing this backdoor, their code needs scrutiny. I don't care why they did it, whether it's a state-sponsored attack, a long game that was supposed to end with selling a backdoor for all Linux machines out there for bazillions of dollars, or blackmail — this is a serious incident that should eliminate them from open-source contributions and the xz project.

There is no requirement to use your real name when contributing to open source projects. The name of the backdoor author ("Jia Tan") might be fake. If it isn't, and if somehow they are found to be innocent (which I doubt, looking at the evidence throughout the thread), they can create a new account with a new fake identity.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Lichtso on Friday March 29, 2024 @01:27PM (#39866696)
They might have burnt the reputation built for this particular pseudonym but what is stopping them from doing it again? They were clearly in it for the long run.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jethro_tell on Friday March 29, 2024 @01:49PM (#39866945)
You're assuming that it's even a single person, it's just a gmail address and an avatar with a j icon from a clip art thing.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Lichtso on Friday March 29, 2024 @02:10PM (#39867183)
I literally said "they", I know, I know, in English that can also be interpreted as a gender unspecific singular.

Anyways, yes it is an interesting question whether he/she is alone or they are a group. Conway's law probably applies here as well. And my hunch in general is that these criminal mad minds operate individually / alone. Maybe they are hired by an agency but I don't count that as a group effort.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by userbinator on Friday March 29, 2024 @05:19PM (#39869132)
because of it's "great new features"

"great" for whom? I've seen enough of the industry to immediately feel suspicious when someone uses that sort of phrasing in an attempt to persuade me. It's no different from claiming a "better experience" or similar.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by SilasX on Friday March 29, 2024 @08:55PM (#39870756)
You can find more examples of that kind of puffer if you go to a website's cookie consent pop-up and find the clause after "we use cookies to...".
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by transcriptase on Friday March 29, 2024 @11:18PM (#39871536)
I’ve long thought that those “this new version fixes bugs and improves user experience” patch notes that Meta et al copy and paste on every release shouldn’t be permitted.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by nebula8804 on Saturday March 30, 2024 @07:52AM (#39873972)
Tell me about it. I look at all these random updates that get pushed to my mobile phone and they all pretty much have that kind of fluff in the description. Apple/Android should take some steps to improve this or outright ban this practice. In terms of importance to them though I imagine this is pretty low on the list.

I have dreamed about an automated LLM system that can "diff" the changes out of the binary and provide some insight. You know give back a tiny bit of power to the user. I'll keep dreaming.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Nullabillity on Wednesday April 03, 2024 @02:09PM (#39920869)
It's worse, as someone who does try to privide release notes I'm often cut off by the max length of the field. And even then, Play only shows you the notes for the latest version of the app.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by fl0ki on Saturday March 30, 2024 @10:12PM (#39880715)
Slack's Mac app release notes [1] rotate a few copy pastes, here's the one that shits me the most.

> We tuned up the engine and gave the interiors a thorough clean. Everything is now running smoothly again.

Yeah nah mate, if every release is the first release where everything is running smoothly, I'm not going to believe it this time either.

Makes me wonder if the team has some release quota to fill and will push a build even if nothing meaningful has actually changed.

[1] https://slack.com/release-notes/mac

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by SilasX on Sunday March 31, 2024 @11:18AM (#39885032)
Ugh. That's especially annoying because they're trying to be hip with slang and use a metaphor that requires cultural knowledge that you can't really assume everyone has.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by LtWorf on Friday March 29, 2024 @09:30PM (#39870992)
I made a library where version 2 is really really much faster than version 1. I'd want everyone to just move to version 2.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Brian_K_White on Friday March 29, 2024 @09:53PM (#39871109)
But then you are saying a specific great new feature, performance, and not just the claim and concept performance, but numbers.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by LtWorf on Saturday March 30, 2024 @02:02AM (#39872240)
I'm sure they actually had new features…
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Brian_K_White on Saturday March 30, 2024 @03:36AM (#39872690)
What are they specifically?

I don't know how you can be missing the essence of the problem here or that comments point.

Vague claims are meaningless and valueless and are now even worse than that, they are a red flag.

Please don't tell me that you would accept a pr that didn't explain what it did, and why it did it, and how it did it, with code that actually matched up with the claim, and was all actually something you wanted or agreed was a good change to your project.

Updating to the next version of a library is completely unrelated. When you update a library, you don't know what all the changes were to the library, _but the librarys maintainers do_, and you essentially trust that librarys maintainers to be doing their job not accepting random patches that might do anything.

Updating a dependency and trusting a project to be sane is entirely a different prospect from accepting a pr and just trusting that the submitter only did things that are both well intentioned and well executed.

If you don't get this then I for sure will not be using or trusting your library.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by CanaryLayout on Saturday March 30, 2024 @02:32AM (#39872372)
Yeah... RISCV routine was put in, then some binary test files were added later that are probably now suspect.

don't miss out on the quality code, like the line that has: i += 4 - 2;

https://git.tukaani.org/?p=xz.git;a=commitdiff;h=50255feeaab...

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by gamer191 on Saturday March 30, 2024 @03:13AM (#39872563)
> some binary test files were added later that are probably now suspect

That's confirmed

From https://www.openwall.com/lists/oss-security/2024/03/29/4:

> The files containing the bulk of the exploit are in an obfuscated form in

> tests/files/bad-3-corrupt_lzma2.xz

> tests/files/good-large_compressed.lzma

> committed upstream. They were initially added in

> https://github.com/tukaani-project/xz/commit/cf44e4b7f5dfdbf...

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by m0dest on Saturday March 30, 2024 @06:45AM (#39873585)
It probably makes sense to start isolating build processes from test case resources.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by saagarjha on Saturday March 30, 2024 @08:47AM (#39874345)
Sure but then you can smuggle it into basically any other part of the build process…?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jwilk on Saturday March 30, 2024 @07:03AM (#39873690)
FWIW, "4 - 2" is explained earlier in the file:

  // The "-2" is included because the for-loop will
  // always increment by 2. In this case, we want to
  // skip an extra 2 bytes since we used 4 bytes
  // of input.
  i += 4 - 2;
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by kapouer on Friday March 29, 2024 @05:42PM (#39869325)
Github accounts of both xz maintainers have been suspended.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by miduil on Friday March 29, 2024 @05:45PM (#39869355)
Not true, the original author wasn't suspended: https://github.com/Larhzu

https://github.com/JiaT75 was suspended for a moment, but isn't anymore?

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by boutique on Friday March 29, 2024 @05:48PM (#39869381)
Both are suspended for me. Check followers on both accounts, both have a suspended pill right next to their names.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by miduil on Friday March 29, 2024 @06:04PM (#39869490)
Ah, thanks for correcting me there - really weird that this isn't visible from the profile itself. Not even from the organization.

The following page for each other show both accounts suspended indeed.

https://github.com/Larhzu?tab=following

https://github.com/JiaT75?tab=following

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by miduil on Wednesday April 03, 2024 @10:20AM (#39917870)
Lasse's account was restored
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by fargle on Friday March 29, 2024 @07:47PM (#39870294)
github should add a badge for "inject backdoor into core open source infrastructure"
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by account42 on Wednesday April 03, 2024 @07:19AM (#39915981)
Hey maybe it would get bad actors to come clean trying to get that badge.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by FridgeSeal on Friday March 29, 2024 @10:13PM (#39871216)
GitHub’s UI has been getting notoriously bad for showing consistent and timely information lately, could be an issue stemming from that.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by justinclift on Saturday March 30, 2024 @12:49AM (#39871911)
Yeah. Had a weird problem last week where GitHub was serving old source code from the raw url when using curl, but showing the latest source when coming from a browser.

Super frustrating when trying to develop automation. :(

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by logicziller on Sunday March 31, 2024 @02:29AM (#39881935)
These shouldn't be suspended, and neither should their repositories. People might want to dig through the source code. It's okay if they add a warning on the repository, but suspending _everything_ is a stupid thing to do.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by account42 on Wednesday April 03, 2024 @07:16AM (#39915953)
Tools don't read warnings. Of course the information should not be hidden completely but intentionally breaking the download URLs makes sense.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by logicziller on Sunday April 07, 2024 @08:03PM (#39965022)
This can also be handled relatively easily. They can disable the old links and a new one can be added specifically for the disabled repository. Or even just let the repository be browsable through the interface at least.

Simply showing one giant page saying "This respository is disabled" is not helpful in any way.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by mongol on Friday March 29, 2024 @06:16PM (#39869580)
Interesting that one of the commits commented on update of the test file that it was for better reproducibility for having been generated by a fixed random seed (although how goes unmentioned). For the future, random test data better be generated as part of the build, rather than being committed as opaque blobs...
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by WhyNotHugo on Saturday March 30, 2024 @10:44AM (#39875370)
I agree on principle, but sometimes programmatic generating test data is not so easy.

E.g.: I have a specific JPEG committed into a repository because it triggers a specific issue when reading its metadata. It's not just _random_ data, but specific bogus data.

But yeah, if the test blob is purely random, then you can just commit a seed and generate in during tests.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by api on Friday March 29, 2024 @06:42PM (#39869810)
I’m surprised there isn’t way more of this stuff. The supply chain is so huge and therefore represents so much surface area.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by SoftTalker on Friday March 29, 2024 @10:39PM (#39871349)
There probably is. Way more than anyone knows. I bet every major project on github is riddled with state actors.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by cozzyd on Saturday March 30, 2024 @09:05AM (#39874495)
Imagine if sshd was distributed by PyPI or cargo or npm instead of by a distro.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by junon on Friday March 29, 2024 @07:16PM (#39870098)
GitHub has suspended @JiaT75's account.

EDIT: Lasse Collin's account @Larhzu has also been suspended.

--

EDIT: Just did a bit of poking. xz-embedded was touched by Jia as well and it appears to be used in the linux kernel. I did quick look and it doesn't appear Jia touched anything of interest in there. I also checked the previous mirror at the tukaani project website, and nothing was out of place other than lagging a few commits behind:

https://gist.github.com/Qix-/f1a1b9a933e8847f56103bc14783ab7...

--

Here's a mailing list message from them ca. 2022.

https://listor.tp-sv.se/pipermail/tp-sv_listor.tp-sv.se/2022...

--

MinGW w64 on AUR was last published by Jia on Feb 29: https://aur.archlinux.org/cgit/aur.git/log/?h=mingw-w64-xz (found by searching their public key: 22D465F2B4C173803B20C6DE59FCF207FEA7F445)

--

pacman-static on AUR still lists their public key as a contributor, xz was last updated to 5.4.5 on 17-11-2023: https://aur.archlinux.org/cgit/aur.git/?h=pacman-static

EDIT: Actually the sources list 5.6.1, which is pulling the XZ specifically (not the auto-generated GZ): https://aur.archlinux.org/packages/pacman-static

--

Alpine was patched as of 6 hours ago.

https://git.alpinelinux.org/aports/commit/?id=982d2c6bcbbb57...

--

OpenSUSE is still listing Jia's public key: https://sources.suse.com/SUSE:SLE-15-SP6:GA/xz/576e550c49a36... (cross-ref with https://web.archive.org/web/20240329235153/https://tukaani.o...)

--

Arch appears to still list Jia as an approved publisher, if I'm understanding this page correctly.

https://gitlab.archlinux.org/archlinux/packaging/packages/xz...

EDIT: Just sent an email to the last committer to bring it to their attention.

EDIT: It's been removed.

--

jiatan's Libera info indicates they registered on Dec 12 13:43:12 2022 with no timezone information.

    -NickServ- Information on jiatan (account jiatan):
    -NickServ- Registered : Dec 12 13:43:12 2022 +0000 (1y 15w 3d ago)
    -NickServ- Last seen : (less than two weeks ago)
    -NickServ- User seen : (less than two weeks ago)
    -NickServ- Flags : HideMail, Private
    -NickServ- jiatan has enabled nick protection
    -NickServ- *** End of Info ***
They are not registered on freenode.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by junon on Friday March 29, 2024 @10:17PM (#39871231)
Just for posterity since I can no longer edit: Libera staff has been firm and unrelenting in their position not to disclose anything whatsoever about the account. I obtained the last point on my own. Libera has made it clear they will not budge on this topic, which I applaud and respect. They were not involved whatsoever in ascertaining a VPN was used, and since that fact makes anything else about the connection information moot, there's nothing else to say about it.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Fnoord on Saturday March 30, 2024 @11:55AM (#39876042)
You applaud and respect this?

Either way, I do hope LE will get into this. They better cooperate.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by freeone3000 on Saturday March 30, 2024 @12:10PM (#39876161)
Respect not giving out identifying information on individuals whenever someone asks, no matter what company they work for and what job they do? Yes. I respect this.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by junon on Saturday March 30, 2024 @12:19PM (#39876224)
I am not LE nor a government official. I did not present a warrant of any kind. I asked in a channel about it. Libera refused to provide information. Libera respecting the privacy of users is of course something I applaud and respect. Why wouldn't I?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by supposemaybe on Saturday March 30, 2024 @01:11PM (#39876618)
I hope you aren’t in control of any customer data.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by flykespice on Saturday March 30, 2024 @05:32PM (#39878877)
It's called keeping integrity on not disclosing private info any users from your network, regardless whether they are bad actors.

I respect them for that.

Violating that code is just as bad as the bad actor slipping backdoors.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Phenylacetyl on Saturday March 30, 2024 @03:37AM (#39872693)
The alpine patch includes gettext-dev which is likely also exploited as the same authors have been pushing gettext to projects where their changes have been questioned
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jwilk on Saturday March 30, 2024 @07:28AM (#39873830)
What do you mean?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by everybackdoor on Saturday March 30, 2024 @09:32AM (#39874698)
Look at the newest commits, do you see anything suspicious:

https://git.alpinelinux.org/aports/log/main/gettext

libunistring could also be affected as that has also been pushed there

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jwilk on Saturday March 30, 2024 @12:08PM (#39876145)
> do you see anything suspicious

No.

> libunistring could also be affected as that has also been pushed there

What do you mean by "that"?

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by whoopdedo on Saturday March 30, 2024 @10:41AM (#39875338)
Seeing so many commits that are "skip failing test" is a very strong code smell.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by gray_-_wolf on Monday April 01, 2024 @07:40AM (#39893056)
Yes, but it is often a sad reality of trying to run projects mainly written for glibc on musl. Not many people write portable C these days.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by account42 on Tuesday April 02, 2024 @07:40AM (#39904581)
It's still the wrong way to go about things. Tests are there for a reason, meaning if they fail you should try to understand them to the point where you can fix the problem (broken test or actual bug) instead of just wantonly distabling tests until you get a green light.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by mook on Saturday March 30, 2024 @04:50AM (#39873022)
FWIW, that's mingw-w64-xz (cross-compiled xz utils) in AUR, not ming-w64 (which would normally refer to the compiler toolchain itself).
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by junon on Saturday March 30, 2024 @06:05AM (#39873395)
Good catch, thanks :)
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by reisse on Saturday March 30, 2024 @07:47AM (#39873943)
> EDIT: Github has disabled all Tukaani repositories, including downloads from the releases page.

Why? Isn't it better to freeze them and let as many people as possible analyze the code?

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by junon on Saturday March 30, 2024 @08:22AM (#39874159)
Good question, though I can imagine they took this action for two reasons:

1. They don't have the ability to freeze repos (i.e. would require some engineering effort to implement it), as I've never seen them do that before.

2. Many distros (and I assume many enterprises) were still linking to the GitHub releases to source the infected tarballs for building. Disabling the repo prevents that.

The infected tarballs and repo are still available elsewhere for researchers to find, too.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by nihilanth on Saturday March 30, 2024 @08:54AM (#39874389)
They could always archive it. Theoretically (and I mean theoretically only), there's another reason for Microsoft to prevent access to repo: if a nation state was involved, and there've been backdoor conversations to obfuscate the trail.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by jarfil on Saturday March 30, 2024 @03:11PM (#39877690)
Archiving the repo doesn't stop the downloads. They would need to rename it in order to prevent distro CI/CD from keeping downloading untrustworthy stuff.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by account42 on Tuesday April 02, 2024 @07:26AM (#39904508)
Distros downloading directly from GitHub deserve what they get.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by Sebb767 on Saturday March 30, 2024 @08:21AM (#39874150)
You can still find the source everywhere, if you look for it. Having a fine-looking page distribute vulnerable source code is a much bigger threat.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by AtNightWeCode on Saturday March 30, 2024 @09:18AM (#39874587)
Maybe one can get the code from here. New commits being added it seems.

https://git.tukaani.org/

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ptx on Saturday March 30, 2024 @12:04PM (#39876115)
The latest commit is interesting (f9cf4c05edd14, "Fix sabotaged Landlock sandbox check").

It looks like one of Jia Tan's commits (328c52da8a2) added a stray "." character to a piece of C code that was part of a check for sandboxing support, which I guess would cause the code to fail to compile, causing the check to fail, causing the sandboxing to be disabled.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by junon on Saturday March 30, 2024 @12:53PM (#39876466)
Lasse has also started his own documentation on the incident.

https://tukaani.org/xz-backdoor/

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by josefx on Saturday March 30, 2024 @04:28PM (#39878307)
Shouldn't they have tests running to ensure that the check works on at least some systems?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by windenntw on Sunday March 31, 2024 @06:30AM (#39883011)
What do you mean "tests"?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by josefx on Monday April 01, 2024 @09:25AM (#39893948)
Have a system were you wxpect the sandboxing to work and have an automated check that it compiles there?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ptx on Tuesday April 02, 2024 @07:42AM (#39904607)
Part of the backdoor was in the tests. The attacker in this case could easily have sabotaged the test as well if a test was required.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by account42 on Tuesday April 02, 2024 @07:34AM (#39904555)
If your project becomes complex enough eventually you need tests for the configure step. Even without malicious actors its easy to miss that a compiler or system change broke some check.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by megous on Saturday March 30, 2024 @11:11AM (#39875583)
Yeah, another of the reasons not to host anything on Github but optional git mirrors, if you don't want your FOSS project to be subject to Microsoft playing a "world police".
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by junon on Saturday March 30, 2024 @12:23PM (#39876261)
Don't agree here. I've only ever seen GitHub do this in extreme circumstances where they were absolutely warranted.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by megous on Saturday March 30, 2024 @02:33PM (#39877394)
You mean like when they banned all people from wirte access who didn't want to jump to their 2FA bandwagon?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by godelski on Saturday March 30, 2024 @11:40AM (#39875889)
You can find it on archive. Someone archived it last night
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by hypnagogic on Saturday March 30, 2024 @01:26PM (#39876757)
Asking this here too: why isn't there an automated A/B or diff match for the tarball contents to match the repo, auto-flag with a warning if that happens? Am I missing something here?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by nolist_policy on Saturday March 30, 2024 @02:20PM (#39877275)
The tarballs mismatching from the git tree is a feature, not a bug. Projects that use submodules may want to include these and projects using autoconf may want to generate and include the configure script.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by ano-ther on Saturday March 30, 2024 @02:35PM (#39877418)
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by hypnagogic on Sunday March 31, 2024 @10:02AM (#39884351)
"lol"

> Those days are pretty much behind us. Sure, you can compile code and tweak software configurations if you want to--but most of the time, users don't want to. Organizations generally don't want to, they want to rely on certified products that they can vet for their environment and get support for. This is why enterprise open source exists. Users and organizations count on vendors to turn upstreams into coherent downstream products that meet their needs.

> In turn, vendors like Red Hat learn from customer requests and feedback about what features they need and want. That, then, benefits the upstream project in the form of new features and bugfixes, etc., and ultimately finds its way into products and the cycle continues.

"and when the upstream is tainted, everyone drinks poisoned water downstream, simple as that!"

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by hypnagogic on Sunday March 31, 2024 @09:54AM (#39884271)
> The tarballs mismatching from the git tree is a feature, not a bug.

A feature which allowed the exploit to take place, let's put it that way.

Over here: https://gist.github.com/thesamesam/223949d5a074ebc3dce9ee78b...

> The release tarballs upstream publishes don't have the same code that GitHub has. This is common in C projects so that downstream consumers don't need to remember how to run autotools and autoconf. The version of build-to-host.m4 in the release tarballs differs wildly from the upstream on GitHub.

Multiple suggestions on that thread on how that's a legacy practice that might be outdated, especially in the current climate of cyber threats.

Someone even posted a more thorough gist on what could be done to increase transparency and reduce discrepancies between tarballs and repos: https://gist.github.com/smintrh78/97b5cb4d8332ea4808f25b47c8...

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by mikolajw on Saturday March 30, 2024 @01:45PM (#39876938)
I've posted an earlier WHOWAS of jiatan here: https://news.ycombinator.com/item?id=39868773
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by junon on Saturday March 30, 2024 @02:25PM (#39877321)
It appears to be an RCE, not a public key bypass: https://news.ycombinator.com/item?id=39877312
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by menomatter on Tuesday April 02, 2024 @03:32PM (#39909926)
account is back online https://github.com/JiaT75
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by account42 on Wednesday April 03, 2024 @03:47AM (#39914643)
Hopefully still locked just visible so people can find and alayze his contributions.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by drazk on Friday March 29, 2024 @07:58PM (#39870368)
After reading the original post by Andres Freund, https://www.openwall.com/lists/oss-security/2024/03/29/4, his analysis indicates that the RSA_public_decrypt function is being redirected to the malware code. Since RSA_public_decrypt is only used in the context of RSA public key - private key authentication, can we can reasonably conclude that the backdoor does not affect username-password authentication?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by cbolton on Saturday March 30, 2024 @07:57AM (#39874007)
Isn't it rather that the attacker can log in to the compromised server by exploiting the RSA code path?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by thayne on Saturday March 30, 2024 @12:23AM (#39871817)
Do you know if it was actually the commit author, of if their commit access was compromised?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by bpye on Saturday March 30, 2024 @12:50AM (#39871918)
If it was a compromise it also included the signing keys as the release tarball was modified vs the source available on GitHub.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by LispSporks22 on Saturday March 30, 2024 @01:39AM (#39872141)
Nice. I worked on a Linux disto when I was a wee lad and all we did was compute a new md5 and ship it.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by heresWaldo on Saturday March 30, 2024 @02:26PM (#39877337)
Blows a big hole in open sources “more eyeballs == more secure” if an obfuscated backdoor can make it in for months.

git pull git@github:all the deps to make my startup work development practices will never be secured. Too many layers of leaky abstraction.

I anticipate such obliviousness and so far, indifference, by the “go fast, disrupt” industry will motivate governments to push for more software on chip.

Re:Backdoor in upstream xz/liblzma leading to SSH server com... by nodesocket on Saturday March 30, 2024 @11:18PM (#39881069)
Can legal action be taken against the author if it's found he maliciously added the backdoor?
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by saltedtangerine on Tuesday April 02, 2024 @12:35PM (#39907722)
Good luck with that. We don't even know what country is he from. Probably from China but even if so. Good luck finding him among 1.5 Billions.
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by menomatter on Tuesday April 02, 2024 @03:31PM (#39909917)
his account is active again on github https://github.com/JiaT75
Re:Backdoor in upstream xz/liblzma leading to SSH server com... by landownersubgrp on Wednesday April 03, 2024 @08:27AM (#39916560)
It is not good to take into consideration something with any unreadable text instead of the open text of the programme. It should be excluded.