# Supply chain attack

> Hacking a trusted supplier so its normal updates carry the attack to everyone else.

- Level: Intermediate
- Topics: Security, Software
- URL: https://tidbit.legios.com.ar/supply-chain-attack/
- In Spanish: [Ataque a la cadena de suministro](https://tidbit.legios.com.ar/es/supply-chain-attack/)

Modern software is assembled from parts made by others: open source libraries pulled in by a package manager, build tools, cloud services, update servers. A **supply chain attack** does not go after the final target directly. It compromises one of those trusted parts, and lets the normal flow of updates deliver the malicious code to every company and person downstream.

Two cases show the pattern. In an attack discovered in 2020, intruders had slipped a backdoor into updates of SolarWinds Orion, a network monitoring product that thousands of organizations, including US government agencies, installed as routine. In 2024 a developer noticed that `xz`, a compression library present in many Linux systems, had been given a hidden backdoor by a contributor who spent around two years earning the maintainers' trust. Simpler versions are common too: publishing a malicious package with a name one letter off from a popular one, or stealing a maintainer's password and pushing a poisoned release.

It is hard to defend against because the code arrives signed, from the expected source, through the channel you are supposed to trust. The responses focus on knowing and verifying what you depend on: pinning exact versions, keeping an inventory of components (an SBOM), checking signatures and provenance with frameworks like SLSA, protecting maintainer accounts with strong 2FA, and limiting what each component is allowed to do.

## An analogy

Poisoning the flour at the mill instead of breaking into each bakery. Every baker follows their recipe perfectly and still sells bad bread, because the problem came in with an ingredient they had every reason to trust.

## Keep in mind

- The attacker compromises a supplier, and normal updates spread the attack.
- SolarWinds (2020) and the `xz` backdoor (2024) are the textbook examples.
- Open source dependencies and build systems are frequent targets.
- Defenses: pinned versions, SBOMs, signed builds and protected maintainer accounts.

## Go deeper

- [Supply chain attack on Wikipedia](https://en.wikipedia.org/wiki/Supply_chain_attack)
- [SLSA: a framework for software supply chain integrity](https://slsa.dev/)
- [The XZ Utils backdoor on Wikipedia](https://en.wikipedia.org/wiki/XZ_Utils_backdoor)

## Related terms

- [Open source](https://tidbit.legios.com.ar/open-source/): Software whose code anyone can read, use, change and share.
- [Software library](https://tidbit.legios.com.ar/software-library/): Ready-made code for a common task that programmers plug into their own programs.
- [Cloud computing](https://tidbit.legios.com.ar/cloud-computing/): Renting computers over the internet instead of buying your own.
- [Server](https://tidbit.legios.com.ar/server/): A computer whose job is to answer requests from other computers, all day, every day.
- [Linux](https://tidbit.legios.com.ar/linux/): A free, open source operating system that runs most of the internet's servers.
- [Framework](https://tidbit.legios.com.ar/framework/): A ready-made skeleton for an app: it sets the structure and calls your code.
- [Two-factor authentication](https://tidbit.legios.com.ar/two-factor-authentication/): A second proof that you are you, so a stolen password alone is not enough.
