XZ Utils backdoor
Associated vulnerabilities
1 CVE Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Associated threat actors
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
The XZ Utils backdoor was a deliberately hidden piece of malicious code planted in versions 5.6.0 and 5.6.1 of the xz compression library, designed to let a remote attacker bypass SSH authentication on affected Linux systems.
Techniques & procedures
9 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
2 techniques
Initial Access
Red Hat is now tracking this supply chain security issue as CVE-2024-3094... The malicious code is obfuscated and can only be found in the complete download package, not in the Git distribution, which lacks the M4 macro, which triggers the backdoor build process.
Malicious code was found in XZ source packages beginning with release 5.6.0; a concealed test file is used during the liblzma compilation process to extract a precompiled object file and alter liblzma functions.
Execution
3 techniques
Execution
If the payload successfully passes verification steps and signature checks, it is then transferred to libc's system() function. This function is designed to execute the payload.
If the malicious macro is present, the second-stage artifacts found in the Git repository are injected during the build time.
The script mainly aims to modify the MakeFile of liblzma in order to interfere with its symbol resolution process in runtime, particularly causing the RSA_public_decrypt symbol to point to its own malicious backdoor code.
Stealth
4 techniques
Stealth
Through a series of complex obfuscations, a concealed test file within the source code is used during the liblzma compilation process to extract a precompiled object file.
After performing the command sent by the attacker, the backdoor replaces the public RSA key object with a prebuilt constant key; alternatively, it replaces log entries describing successful connections with entries describing failed connection attempts.
If the malicious macro is present, the second-stage artifacts found in the Git repository are injected during the build time.
The script mainly aims to modify the MakeFile of liblzma in order to interfere with its symbol resolution process in runtime, particularly causing the RSA_public_decrypt symbol to point to its own malicious backdoor code.
Lateral Movement
1 technique
Lateral Movement
During the public key authentication process of sshd, the RSA_public_decrypt function gets called, causing the attacker's code to be executed. This code attempts to extract a payload from the public key passed to it during authentication.
Command and Control
1 technique
Command and Control
The resulting malicious build interferes with authentication in sshd via systemd... Under the right circumstances this interference could potentially enable a malicious actor to break sshd authentication and gain unauthorized access to the entire system remotely.
Recent activity
5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.