{
  "id": "case-xz-backdoor",
  "slug": "xz-utils-backdoor-liblzma",
  "title": "XZ Utils liblzma Upstream Linux Supply Chain Backdoor (CVE-2024-3094)",
  "summary": "Sophisticated multi-year social engineering and software supply chain operation where persona Jia Tan gained co-maintainer status on the foundational open-source xz compression project, embedding a multi-stage obfuscated backdoor into liblzma tarballs that hijacked OpenSSH sshd authentication to enable unauthorized pre-auth remote code execution.",
  "case_number": "CVE-2024-3094",
  "court": "Cybersecurity and Infrastructure Security Agency Alert",
  "district": "Global / Open Source",
  "country": "International",
  "opened_at": "2024-03-29",
  "status": "investigation",
  "victim_sector": "Open Source Software & Linux Ecosystem",
  "victim_country": "Global",
  "loss_amount_usd": 150000000,
  "loss_amount_note": "Global developer triage, emergency distribution downgrades, and open-source maintainer security reviews.",
  "first_seen_at": "2021-10-18T00:00:00Z",
  "last_updated_at": "2026-10-09T10:00:00Z",
  "actor_slug": "unattributed-state-actor",
  "defendant_slugs": [],
  "cves": [
    "CVE-2024-3094"
  ],
  "techniques": [
    {
      "technique_id": "T1195.001",
      "evidence_excerpt": "The attacker inserted malicious M4 macros into build test files during tarball release generation, modifying the build pipeline to inject binary code into liblzma.so.",
      "evidence_locator": "Openwall Disclosure by Andres Freund",
      "mapping_status": "reviewed",
      "mapped_by": "rule",
      "source_title": "Openwall security announcement: backdoor in upstream xz/liblzma leading to sshd compromise",
      "source_url": "https://www.openwall.com/lists/oss-security/2024/03/29/4",
      "technique_name": "Compromise Software Dependencies and Development Tools",
      "tactic": "Initial Access"
    },
    {
      "technique_id": "T1574.006",
      "evidence_excerpt": "The backdoor hooked the OpenSSH RSA_public_decrypt function via ELF indirect functions (IFUNC) before main execution, allowing custom signed payloads to bypass authentication.",
      "evidence_locator": "CISA Alert AL24-089A",
      "mapping_status": "reviewed",
      "mapped_by": "rule",
      "source_title": "CISA Alert: Reported Supply Chain Compromise Affecting XZ Utils",
      "source_url": "https://www.cisa.gov",
      "technique_name": "Dynamic Linker Hijacking",
      "tactic": "Persistence"
    }
  ],
  "events": [
    {
      "event_type": "incident",
      "event_date": "2024-02-23",
      "description": "Jia Tan pushes commits containing backdoored release tarballs xz-5.6.0 and xz-5.6.1."
    },
    {
      "event_type": "discovery",
      "event_date": "2024-03-29",
      "description": "PostgreSQL developer Andres Freund discovers CPU micro-benchmarking latency anomalies in sshd, exposing the backdoor."
    },
    {
      "event_type": "advisory",
      "event_date": "2024-03-29",
      "description": "CISA issues emergency advisory urging immediate downgrade of Linux packages."
    }
  ],
  "attack_anatomy": {
    "ground_zero": "Multi-year social engineering operation where the persona Jia Tan gained co-maintainer trust on the open-source xz compression project, committing malicious build macros into release tarballs.",
    "blast_radius": "Placed upstream Linux distributions on the verge of universal OpenSSH authentication bypass. Intercepted by PostgreSQL developer Andres Freund before widespread deployment to production enterprise Linux servers.",
    "kill_chain": [
      {
        "phase": "Social Engineering",
        "title": "Open-Source Maintainer Infiltration",
        "description": "Persona Jia Tan built trust over several years with pressured sole maintainer Lasse Collin, gradually securing commit rights and release publishing permissions.",
        "technical_artifacts": [
          "GitHub git commits",
          "Mailing list peer pressure personas"
        ],
        "mitre_technique_id": "T1195.001"
      },
      {
        "phase": "Obfuscated Staging",
        "title": "Malicious Test File Injection",
        "description": "Attacker committed disguised binary test files containing extractable payload segments into the repository under the guise of compression test cases.",
        "technical_artifacts": [
          "tests/files/bad-3-corrupt_lzma2.xz",
          "M4 build macro scripts"
        ],
        "mitre_technique_id": "T1027"
      },
      {
        "phase": "Build Pipeline Modification",
        "title": "Release Tarball Backdoor Injection",
        "description": "During release tarball generation for xz 5.6.0 and 5.6.1, modified configure scripts extracted payload segments and injected binary object code into liblzma.so.",
        "technical_artifacts": [
          "m4/build-to-host.m4",
          "liblzma.so shared library"
        ],
        "mitre_technique_id": "T1195.002"
      },
      {
        "phase": "Runtime Hijacking",
        "title": "OpenSSH sshd Authentication Hook",
        "description": "Backdoor used ELF indirect function (IFUNC) resolution to hook OpenSSH RSA_public_decrypt, enabling pre-authentication RCE via custom signed public keys.",
        "technical_artifacts": [
          "IFUNC symbol hook",
          "RSA_public_decrypt interception"
        ],
        "mitre_technique_id": "T1574.006"
      },
      {
        "phase": "Micro-Benchmark Discovery",
        "title": "Latency Anomaly Detection & Neutralization",
        "description": "Engineer Andres Freund observed 500ms CPU latency increases and valgrind memory errors during sshd profiling, leading to immediate public disclosure and emergency package rollbacks.",
        "technical_artifacts": [
          "Valgrind profiling report",
          "CISA Alert AL24-089A"
        ],
        "mitre_technique_id": "T1195.001"
      }
    ],
    "defensive_takeaways": [
      "Enforce hermetic, reproducible builds where release artifacts are strictly generated from audited source repositories without opaque binary tarball deltas.",
      "Eliminate unnecessary system library dependencies on critical authentication daemons like OpenSSH sshd.",
      "Fund and establish multi-maintainer security stewardship for foundational open-source utilities.",
      "Deploy automated static analysis tools to verify ELF symbol relocation tables and IFUNC resolvers."
    ]
  }
}