Technical Details
As with many software supply chain issues, it’s taking time to fully unpack (or, perhaps in this case untar) what systems, distributions, and utilities are impacted and backdoored. The industry is also questioning what other repositories this account may have contributed to, as well as other accounts that may be employing similar tactics and are yet to be noticed.
Here are the details that are known today:
The xz version
-
The backdoor appears in versions xz 5.6.0 and 5.6.1
-
Many distributions are likely to include it, though the vulnerable version may not have made it into the stable releases for these distributions today.
-
The safe distribution is 5.4.6.
-
Some reports indicate that on MacOS endpoints, Homebrew could have installed the vulnerable version of xz if xz was requested for install or update following release of 5.6.0. Per this discussion, Homebrew has rolled back to version 5.4.6.
The Backdoor
-
The backdoor performs checks before continuing:
-
Building with GCC and the GNU linker
-
Only x86-64 Linux
-
Running as part of a Debian or RPM package build
-
-
Additional analysis of the behavior of the backdoor is pending, but some research suggests that this backdoor requires the attacker to send their OpenSSH certificate with a specific signature. This added complexity has currently prevented analysis of post-exploitation behavior.
Mitigation
-
If you are unable to downgrade xz tools to a non-vulnerable version, you should disable public-facing SSH. As an added precaution, you could fully disable ssh on impacted endpoints if that will not adversely impact system functionality.
Remediation
-
Downgrade xz to version 5.4.6.