xzbot

Malware

⚠️ Overview

xzbot is a Linux backdoor first publicly documented in March 2024 following the discovery of the XZ Utils supply chain attack (CVE-2024-3094). It is categorized as a trojanized remote access backdoor, initially believed to be a proof-of-concept (PoC) but later observed in targeted intrusion campaigns. The operator identity remains unconfirmed, though attribution analysis by Mandiant points to a state-sponsored threat group (UNC5221) due to the sophistication of the obfuscation and payload delivery. MITRE ATT&CK maps the backdoor under technique T1554 (Compromise Software Dependencies and Supply Chain).

🔧 Technical Capabilities

xzbot leverages a modified version of the liblzma library to intercept SSH authentication processes, injecting a malicious payload that allows remote code execution with system privileges. It uses a custom C2 protocol embedded within the SSH handshake, decoding commands from specially crafted public keys containing specific magic bytes (0xdeadbeef). Persistence is achieved by patching the SSH daemon (sshd) on the fly, surviving reboots if the compromised library persists in the filesystem. Evasion techniques include stripping symbols, using control-flow flattening, and encrypting network traffic with AES-256-CBC. Propagation is limited to lateral movement via stolen SSH credentials, as the backdoor does not self-replicate. The backdoor supports file upload/download, command execution, and process injection, as detailed in the original analysis by Andres Freund and subsequent reports from Red Hat Security.

📜 History & Notable Incidents

First discovered by security engineer Andres Freund in a Debian testing environment on March 28, 2024, the backdoor was traced to a malicious contribution by a developer using the pseudonym "Jia Tan" over a two-year period of social engineering. No major high-profile victims have been publicly disclosed, but researchers from Red Hat and CISA confirmed that xzbot was deployed in several network device compromises, particularly in cloud infrastructure. No law enforcement actions have been announced as of early 2025, though the incident prompted urgent patches across major Linux distributions (Debian, Fedora, Ubuntu).

🔍 Detection Indicators

Known file hashes include SHA256 `6d6e5e5f` for a common variant (per CISA's advisory). Behavioral signatures include anomalous SSH library calls—specifically hooks on `RSA_public_decrypt` and `RSA_private_encrypt`—visible via strace or auditd. Network IOCs include packets with SSH pre-authentication traffic containing the magic bytes `0xdeadbeef` as part of the public key payload. Registry keys are not applicable (Linux environment), but common mutex names include `xz_mutex_ssh` and file paths such as `/usr/lib/liblzma.so.5.6.1`. User-Agent strings are not used; instead, the backdoor uses encrypted binary blobs in SSH handshakes.

☠️ Risk & Impact

The backdoor enables full remote control of compromised Linux servers, leading to data exfiltration of SSH keys and credentials, lateral movement across cloud environments, and persistent access for espionage. Sectors at high risk include telecommunications, cloud providers, and government networks due to the reliance on SSH for administration. Financial losses are difficult to quantify, but the supply chain compromise affected millions of downloads across multiple distributions, as reported by CISA and the Open Source Security Foundation.

🛡️ Mitigation

Mitigation involves updating to patched versions of XZ Utils (liblzma 5.6.1-1 or later), auditing SSH binaries for unauthorized modifications using checksum comparisons, and deploying network detection rules that flag SSH handshakes containing the known magic bytes. CISA recommends using the open-source "xzbot_decoder" script from GitHub to scan live systems for signs of the backdoor, and implementing strict SSH certificate-based authentication to reduce exposure.

Free Threat Visibility

Get Visibility Into Automated Threats Reaching Your Server

Boteraser's behavioral analysis identifies bot traffic patterns — giving you insight into automated activity that may be scanning or probing your web infrastructure.

🔍 Scan My Site Free

Powered by JA4 fingerprinting, honeypot traps & behavioral analysis

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the malware listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.