proomt

Search

Search posts, papers, and topics

Hall of Fame

Hall of FameAndres Freund20248 min readpostmortemadvanced

The xz backdoor disclosure

Summary

Upstream xz 5.6.0/5.6.1 tarballs were compromised with an obfuscated script that modifies liblzma to inject a backdoor, which activates on specific x86_64 Linux builds and slows SSH logins. The issue is reproducible, detectable via source checks, and mitigated by avoiding the tainted releases or rebuilding from a clean source.

  • xz 5.6.0/5.6.1 upstream tarballs embed an obfuscated configure script that patches liblzma/Makefile to inject malicious code.
  • The payload only runs on x86_64 Linux builds using gcc and GNU ld, and when built as a Debian/RPM package, targeting sshd via libsystemd.
  • When active, the backdoor slows SSH logins by 2‑3× and can execute arbitrary shell commands through crafted .xz files.
  • Detection: look for the extra line in build-to-host.m4 and the presence of tests/files/bad-3-corrupt_lzma2.xz in the source tree.

Security engineers and distro maintainers must know the supply‑chain breach because it enables remote code execution in widely used SSH services.

7/10

Related reading

  1. Trusting-Trust Attack against an Entire Linux Distribution through Binary Manipulation

    The authors show that the classic trusting‑trust attack is not limited to compilers: by tampering with GNU strip they can inject a payload that propagates through NixOS's bootstrap and ends up in almost every binary of the final system. The attack succeeds on a real nixpkgs revision, building a full graphical installer while backdooring the majority of its binaries.

    arXiv cs.SE (Software Engineering)arxiv.org1 minpaperHN24159
  2. App Hardening: One Obfuscation Pipeline Across Every Port

    Codename One adds a cloud‑side hardening step that runs on the merged JAR before it is split into Android, iOS, JavaScript, and desktop binaries. It can rename symbols, encrypt string literals, and insert opaque‑predicate control‑flow guards at configurable levels (off → standard → aggressive → paranoid). The transforms are selective per platform to avoid breaking optimizers, and a mapping is kep…

    CodeName Onecodenameone.com6 min
  3. Inside ZCode: Silently uploading your Git history to the cloud

    ZCode (Zhipu’s AI coding desktop) silently archives your entire workspace—including full .git history, LFS cache, and config—encrypts it with a server‑supplied RSA public key, and uploads the ciphertext directly to Aliyun OSS. The upload runs unconditionally for any logged‑in user, cannot be disabled via UI, and the decryption key lives only on the server, giving Zhipu full read access to your co…

    Hacker News front pageferstar.org6 minpostmortemHN336113