News for hackers. Stuff that matters.
Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by tux3 on Saturday March 30, 2024 @05:56PM (#39879060)
I think behavioral analysis could be promising. There's a lot of weird stuff this code does on startup that any reasonable Debian package on the average install should not be doing in a million years.

Games and proprietary software will sometimes ship with DRM protection layers that do insane things in the name of obfuscation, making it hard to distinguish from malware.

But (with only a couple exceptions) there's no reason for a binary or library in a Debian package to ever try to write the PLT outside of the normal mechanism, to try to overwrite symbols in other modules, to add LD audit hooks on startup, to try to resolve things manually by walking ELF structures, to do anti-debug tricks, or just to have any kind of obfuscation or packing that free software packaged for a distro is not supposed to have.

Some of these may be (much) more difficult to detect than others, some might not be realistic. But there are several plausible different ways a scanner could have detected something weird going on in memory during ssh startup.

No one wants a Linux antivirus. But I think everyone would benefit from throwing all the behavioral analysis we can come up with at new Debian package uploads. We're very lucky someone noticed this one, we may not have the same luck next time.

Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by raggi on Saturday March 30, 2024 @06:20PM (#39879234)
Except had we been doing that they would have put guards in place to detect it - as they already had guards to avoid the code path when a debugger is attached, to avoid building the payload in when it's not one of the target systems, and so on. Their evasion was fairly extensive, so we'd need many novel dynamic systems to stand a chance, and we'd have to guard those systems extremely tightly - the author got patches into oss-fuzz as well to "squash false positives". All in all, adding more arms to the arms race does raise the bar, but the bar they surpassed already demonstrated tenacity, long term thinking, and significant defense and detection evasion efforts.
Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by tux3 on Saturday March 30, 2024 @06:42PM (#39879399)
I broadly agree, but I think we can draw a parallel with the arms race of new exploit techniques versus exploit protection.

People still manage to write exploits today, but now you must find an ASLR leak, you must chain enough primitives to work around multiple layers of protection, it's generally a huge pain to write exploits compared to the 90s.

Today the dynamic detection that we have for Linux packages seems thin to non-existent, like the arms race has not even started yet. I think there is a bit of low-hanging fruit to make attacker lives harder (and some much higher-hanging fruit that would be a real headache).

Luckily there is an asymmetry in favor of the defenders (for once). If we create a scanner, we do not _have_ to publish every type of scan it knows how to do. Much like companies fighting spammers and fraud don't detail exactly how they catch bad actors. (Or, for another example, I know the Tor project has a similar asymmetry to detect bad relays. They collaborate on their relay scanner internally, but no one externally knows all the details.)

Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by raggi on Saturday March 30, 2024 @06:49PM (#39879449)
Yeah, perhaps something akin to an OSS variant of virustotal's multi-vendor analysis. I'm still not sure it would catch this, but as you say, raising the bar isn't something we tend to regret.
Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by saagarjha on Sunday March 31, 2024 @12:55AM (#39881559)
This is an arms race that is largely won by attackers, actually. Sophisticated attacks are caught by them sometimes but usually the author has far more knowledge or cleverer tricks than the person implementing the checks, who is limited by their imagination of what they think an attacker might do.
Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by wepple on Sunday March 31, 2024 @08:33PM (#39889626)
I’m not sure that attackers “win” this arms race; the cost has gone through the roof and their chance of detection constantly increases.

Indeed, defenders are often outgunned, but at a minimum we’ve pushed the level of effort way into nation-state territory, which is a good start.

Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by saagarjha on Monday April 01, 2024 @08:29PM (#39901067)
Indeed. But a lot of the effort has come from measures in areas that are much more stacked towards defenders (as it should).
Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by robocat on Saturday March 30, 2024 @07:32PM (#39879691)
> we may not have the same luck next time

If the prior is 1 was out there (this one), the chances that there is 1+ still undetected seems fairly high to me.

To behaviourally detect this requires many independent actors to be looking in independent ways(e.g. security researchers, internal teams). Edit: I mean with private code & tests (not open source, nor purchasable antivirus). It's not easy to donate to Google Zero. Some of the best funded and most skilled teams seem to be antivirus vendors (and high value person protection). I hate the antivirus industry yet I've been helped by it (the anti-tragedy of the commons).

Commonly public detection code (e.g. open source) is likely to be defeated by attackers with a lot of resources.

Hard to protect ourselves against countries where the individuals are safe from prosecution. Even nefarious means like assasination likely only work against individuals and not teams.

Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by bandrami on Sunday March 31, 2024 @01:39AM (#39881738)
> If the prior is 1

That would surprise me greatly

Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by lazyasciiart on Sunday March 31, 2024 @04:59AM (#39882605)
I think you’re saying “I would be surprised if there is only 1 exploit like this that already exists” which is what the previous comment was also saying. “If the prior is one” is often used to mean “we know for sure that there is one”.
Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by snnn on Saturday March 30, 2024 @06:26PM (#39879279)
> to try to overwrite symbols in other modules, to add LD audit hooks on startup, to try to resolve things manually by walking ELF structures

I want to name one thing: when Windows failed to load a DLL because a dependency was missing, it doesn't tell you what was missed. To get the information, you have to interact with the DLL loader with low level Windows APIs. In some circumstances Linux apps may also have the need. Like for printing a user friendly error message or recovery from a non-fatal error. For example, the patchelf tool that is used for building portable python packages.

> No one wants a Linux antivirus

It is not true. Actually these software are very popular in enterprise settings.

Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by ffsm8 on Saturday March 30, 2024 @06:33PM (#39879341)
> No one wants a Linux antivirus

ClamAV has been around for a very long time at this point.

It's just not installed on servers, usually

Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by snnn on Saturday March 30, 2024 @08:30PM (#39880126)
Does not have to be installed. See this: https://learn.microsoft.com/en-us/azure/defender-for-cloud/c...

A cloud provider can take snapshots of running VMs then run antivirus scan offline to minimize the impact to the customers.

Similarly, many applications are containerized and the containers are stateless, we can scan the docker images instead. This approach has been quite mature.

Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by kemotep on Saturday March 30, 2024 @06:58PM (#39879497)
To say nothing of enterprise EDR/XDR solutions that have linux versions. These things aren’t bulletproof but can be 1 layer in your multilayer security posture.
Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by EasyMark on Saturday March 30, 2024 @07:50PM (#39879818)
don't most people who use that just use it for scanning incoming email attachments usually?
Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by snnn on Saturday March 30, 2024 @08:39PM (#39880191)
ClamAV also has a lot of findings when scanning some open source project's source code. For example, LLVM project's test data. Because some of the test data are meant to check if a known security bug is fixed, from a antivirus software perspective these data files can be seen as exploits. ClamAV is commonly used. Or, I would suggest adding it to every CI build pipeline. Most time it wouldn't have any finding, but it is better than nothing. I would like to offer free help if an open source project has the need to harden their build pipelines and their release process.
Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by nwallin on Saturday March 30, 2024 @08:44PM (#39880226)
In general, my gut feeling is that I expect the majority ClamAV installations to be configured to scan for Windows viruses in user submitted content. Email, hosting sites, etc.
Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by cryptonector on Saturday March 30, 2024 @08:08PM (#39879942)
> But I think everyone would benefit from throwing all the behavioral analysis we can come up with at new Debian package uploads.

Why "new uploads" and not also "all existing"?

Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by cipherzero on Sunday March 31, 2024 @01:01AM (#39881579)
Sorry, I'm unfamiliar with PLT what does stand for?
Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl... by intelVISA on Sunday March 31, 2024 @01:14AM (#39881646)
procedure linkage table