Bookmarks

Software supply chain attack

An intrusion in which malicious code reaches a product through links in its supply chain — dependencies, build tools or the update channel — and spreads together with the legitimate distribution.

Also: software supply chain compromise, supply chain attack, supply chain compromise

checked 9 Nov

All terms

A software supply chain is everything that stands between the author of code and its user: third-party libraries, package managers, build pipelines, signing and update servers. What gets breached is not the victim but one of these links, so malicious code reaches victims by “official” routes: through a trusted repository or an update they installed themselves.

Where the chain is breached

LinkExampleWhat happens
Dependencyevent-stream, ua-parser-jsa compromised version of a popular package is distributed through the ordinary package manager
Vendor buildSolarWinds Orion, 2020the build system was breached; a backdoor was built into official updates, which fewer than 18,000 SolarWinds customers could have received
Component maintenancexz-utils, 2024a project contributor spent years earning trust, gained commit rights and added a backdoor to liblzma, on which the sshd of popular distributions depended
Package registrytyposquattinga package with a name resembling a popular one, or a hijacked author account

Why such attacks are hard to spot

  • the code is signed with a legitimate key and arrives over a trusted channel — signature and vendor reputation checks do not help
  • scanners look for known vulnerabilities by CVE; a backdoor is not a vulnerability in someone else’s code but added functionality in one’s own
  • the compromise of one link propagates to all of its users: one breached link — thousands of victim organisations
  • mass distribution serves as cover: of everyone that received the infected update, the adversary uses access only against selected victims

How the risk is reduced

The chain cannot be protected completely, but it can be made transparent and verifiable. A software bill of materials (SBOM) and software composition analysis (SCA) show exactly what is inside a build and speed up the search for affected parties after an incident. The SLSA standard describes levels of build protection — from documenting the provenance of artefacts to hardened build platforms that are difficult to forge.

  • minimise dependencies, pin versions and hashes in lock files
  • maintain an SBOM and check dependencies with an SCA scanner: known malicious packages and vulnerabilities are visible before the build
  • sign artefacts and collect provenance according to SLSA levels
  • do not roll out fresh updates to everything at once: canary releases and a delay leave time for detection

Sources

the term is written from these pages

Verified 9 Nov

Not to be confused with

what it is mixed up with and how it differs

  • zero-day vulnerability

    A zero-day vulnerability is a flaw in the product itself; a supply chain attack travels through the delivery channel and spreads together with a legitimate update.

  • APTAdvanced persistent threat

    An APT is a type of adversary that stays inside infrastructure quietly for a long time; a supply chain attack is a way in that such groups use.

In depth in the references

where the topic is covered in detail