← all systems · see it in The System
Supply chain attack
An intrusion that reaches its targets through something they trust and install from a supplier: an attacker finds a weak link in the supply chain (a maintainer account, a build server, an update server, a contractor's access, a package name), alters what the supplier ships, lets the supplier's own trusted channels carry it downstream, and exploits it in the targets (src:okafor-2024-sok; src:ohm-2020-backstabber; src:wp:supply-chain-attack). The term has no agreed definition. Walked from the defender's and the historian's side.
Properties published scienceour proposal
Sourced fields, and our own readings.
| born at | 1974 as an evaluation finding (Karger and Schell's Air Force evaluation of Multics, as cited by src:wheeler-2009-ddc); 1984 as the famous demonstration (src:thompson-1984-trusting-trust); the dependency route predicted in 2003 and real open-source package attacks from November 2015 (src:ohm-2020-backstabber); older forms in goods not dated by any source read |
| born precision | year |
| boundary | Inside: the attack itself, from reading the chain for a weak link, through compromise, alteration and propagation, to exploitation and the objective; its concealment and its self-repair. Outside: the attacker who runs it (sys:threat-actor), the chain it rides, the defenders' practice (sys:supply-chain-security), the victims, and the law and economics that set who pays. |
| nested level | Runs on threat actors' operations; its medium is the supply chain of the products its targets install; walked from the defender's and historian's side (the cases, how each was found, what changed). |
| scale | technological |
Measures (44) published science
| mean time a malicious package stays available before public report | 209 days (min -1, max 1,216, median 67; 174 packages, 2015-2019) |
| XZ Utils campaign duration | 2.6 years (29 Oct 2021 to 28 Mar 2024) |
| SolarWinds dwell before public report | about 9 months (malicious updates from March 2020; public 13 Dec 2020); foothold by September 2019 |
| eScan compromise duration before detection | about 1 hour |
| malicious packages in the Backstabber's Knife Collection dataset | 174 packages (npm 62.6%, PyPI 16.1%, RubyGems 21.3%) |
| malicious packages that run on installation | 56 % (43% at run time, 1% in tests; 41% conditional) |
| malicious packages that typosquat | 61 % |
| mean edit distance of a typosquat name to its target | 2.3 Levenshtein edits (median 1.0, max 11) |
| malicious packages that use obfuscation | 49 % |
| malicious packages belonging to a cluster | 90 % (157 of 174; 21 clusters, mean 7.28 packages) |
| event-stream dependents at takeover | 1,600 packages; 1.5 million downloads a week |
| CCleaner malicious version downloads | about 2.3 million downloads (undetected more than a month, 2017) |
| packages and maintainers implicitly trusted per average npm install | 79 packages, 39 maintainers per install (npm, to April 2018) |
| maintainers to vet to halve the risk | about 140 maintainers of more than 150,000 |
| npm packages depending on known-vulnerable code | up to 40 % |
| npm packages hijackable through expired maintainer email domains | 8,494 packages (2,818 maintainer emails on expired domains; 1.63 million packages studied) |
| attack vectors in the open-source supply chain taxonomy | 107 vectors (94 incidents, 33 safeguards; 17 experts, 134 developers surveyed) |
| experts rating reproducible builds very useful | 58.8 % (10 of 17); 70.6% (12) rated its cost high |
| Debian development packages that build reproducibly | over 95 % of 30,000+ (seven years after the 2014 start) |
| Maven Central artifacts signed, 2023 | 97.1 % (signing mandatory since 2005) |
| PyPI artifacts signed, 2023 | 0.2 % (Hugging Face 0.1%, Docker Hub 1.0%) |
| invalid signatures, PyPI 2023 | 53.1 % (Maven Central 24.0%, Hugging Face 76.1%) |
| XZ Utils malicious commits | 8 commits (2024) |
| SolarWinds Orion users | 33,000 of 300,000 customers |
| SolarWinds compromised downloads | about 18,000 government and private users; fewer than ten US agencies confirmed compromised |
| Target cards exposed | about 40 million cards, 1,800 stores (27 Nov to 15 Dec 2013) |
| Target response cost | about 61 million US dollars; profit down 46% in the quarter |
| British Airways customers compromised | about 380,000 customers (a further 185,000 possibly) |
| vendor-reported rise in supply chain attacks, 2018 | 78 % (Symantec, as reported) |
| detected malicious open-source packages per year | 929 (2020) to 459,070 (2024) packages a year (as cited from industry reports) |
| ENISA incidents aimed at the supplier's code | about 66 % of 24 attacks analysed (malware used in 62%; customer data targeted in about 58%) |
| ENISA suppliers not knowing how they were compromised | 66 % (fewer than 9% of compromised customers did not know) |
| demand-side value of widely used open source software | 8.8 trillion US dollars (supply-side $4.15 billion; firms would spend 3.5 times more without it) |
| share of open-source demand-side value from 5% of developers | 96 % |
| security vendors giving supply chain assurances, 2025 | 3 of 14 vendors |
| melamine cases by 1 December 2008 | 294,000 cases (51,900 hospitalised, 6 deaths; 68 countries banned or recalled foods) |
| melamine reporting delay | about 9 months from first complaints (December 2007) to provincial report (9 September 2008); company detection June 2008 |
| British Airways individuals within the attacker's reach (ICO) | about 429,612 individuals (about 244,000 with card details exposed); £20 million fine, October 2020 |
| hallucinated packages in AI-generated code | at least 5.2 (commercial) / 21.7 (open-source) % of suggested packages; 205,474 unique names; 576,000 samples, 16 models |
| SUNBURST dormancy before first call home | 12-14 days |
| Sigstore signatures in its first 13 months | 46 million artifact signatures (public release 2021) |
| previously unreported malicious packages found by scanning | 339 packages (278, 82%, confirmed by registry maintainers) |
| Kaseya VSA victims | about 60 MSPs; over 1,000 companies down organisations (2 July 2021) |
| time from Juniper's changed constants to disclosure | about 3 years (2012 change, 17 December 2015 disclosure) |
Open contentions (7) open contention
Where sources or readings disagree. Both stay on the map.
- C-1118 In cybersecurity, do attackers have the advantage?
booked: The map keeps both: attack is easier because defenders must cover everything, and attackers have no inherent advantage because one block can break their chain.
the other reading: attackers keep the advantage: they continuously find new ways round detection (src:wp:supply-chain-attack); defenders can stop it by breaking any one of three stages (src:okafor-2024-sok); at the bottom of the stack: Thompson's 'trust people' answered by diverse double-compiling, which trusts independent compilers to agree (src:wheeler-2009-ddc) - C-1550 Who was behind the SolarWinds and XZ attacks?
booked: The map keeps attribution open where the sources disagree.
the other reading: attribution unsettled or contested for each case - C-1551 How fast are software supply-chain attacks rising?
booked: The map keeps the vendor-reported rises as reported, and notes they are vendor figures.
the other reading: counts depend on each reporter's definition and collection; the term has no agreed definition - C-1552 When did supply-chain security begin?
booked: The map keeps both starts: the 1974 'trusting trust' warning for computing, and 2001 for cargo.
the other reading: born with 9/11 as a structured practice (for the security side); born with trade itself (adulteration of goods; no source read dates it) - C-4179 What counts as a supply chain attack?
booked: The map walks the "malicious code slipped in upstream" reading as its main view and keeps the wider definitions as kinds and cases, without ruling.
the other reading: injection of malicious code into a package or product upstream to compromise dependents downstream (src:ohm-2020-backstabber; src:ladisa-2022-taxonomy); two attacks, one on a supplier and a later one on the intended targets (ENISA, as cited by src:okafor-2024-sok); only where the attacker both introduces the upstream change and exploits it; exploiting an unintended vulnerability passed down the chain is not one (src:okafor-2024-sok); any attack through the less secure elements of a supply chain, including flaws in a vendor's product (Exchange, the State Department case), physical tampering and even warehouse theft (src:wp:supply-chain-attack); the supplier itself is the attacker (protestware; the melamine collectors): no compromise stage, so the four-stage pattern loses its first step (src:fan-2024-protestware; src:gossner-2009-melamine); third-party access (Target, British Airways) and a vendor product's vulnerability (Kaseya VSA) are admitted under the two-attack and broad readings, not under the two-ended one (src:wp:british-airways-data-breach; src:wp:kaseya-vsa-ransomware-attack); Stuxnet: entered by USB drives, but one analyst speculated the drives were contractors' (src:wp:stuxnet), so its place is more contested than 'not a supply chain attack' - C-4180 Do defences such as code signing actually stop supply chain attacks?
booked: The map records what has been measured, which is how widely defences are adopted, and notes that none of the sources read counted attacks prevented.
the other reading: defences work where enforced by default: signing follows registry policy (Maven 97.1% where mandatory, PyPI 0.2%) (src:schorlemmer-2024-signing); countermeasures must be enforced by default (src:ohm-2020-backstabber); frameworks leave gaps: even adopting all 73 tasks leaves products exposed (src:hamer-2025-closing-chain); the defences' effect on attacks is unmeasured: ratings are experts' perceptions (src:ladisa-2022-taxonomy) and SBOMs are not yet adequately adopted (src:stalnaker-2024-boms); a counterexample in the case list: reproducible builds would not have caught XZ, whose malicious file was only in the release tarball (src:lins-2024-xz); and SolarWinds adopted them afterwards (an expert in src:ladisa-2022-taxonomy) - C-4181 Who ends up paying for a supply chain attack?
booked: The map shows the costs landing in three places (the users downstream, the supplier, and shared infrastructure) and does not pick one.
the other reading: downstream users and the public bear it: SolarWinds customers' months of decontamination (src:wp:2020-united-states-federal-government-data-breach); the party able to protect is not the one who suffers (src:anderson-2001-economics); the supplier bears it: Target's $61 million, ninety lawsuits and a 46% profit drop; criminal liability raised for M.E.Doc's staff (src:wp:supply-chain-attack); the unpaid commons bears it: 96% of open source's value from 5% of developers (src:hoffmann-2024-value-oss); maintainers 'face pressure' (src:przymus-2025-xz); no framework covers sustaining open source (src:hamer-2025-closing-chain)
Cross-scale patterns seen here (17) our proposal
Shapes that recur when the same kind of problem is solved at different scales, and how each shows in Supply chain attack. Each links to every other system that shows it.
- same role, different builds (structural)
The job, getting something harmful accepted as the real thing by a buyer who checks it, is done by unrelated builds: a typosquatted name, a stolen maintainer or contractor account, a compromised build server, a hijacked update server, trust won over years, devices in card readers, and in food melami - templating (structural)
One module, reused unchanged by many products, turns one injection into thousands: event-stream used by 1,600 packages and downloaded 1.5 million times a week; Orion used by 33,000 customers. Attackers template too: 90% of the dataset falls in clusters sharing code. - trade one property for another (structural)
Pinning dependencies with a lock file buys protection from new (possibly malicious) versions and pays in fixes not taken: 'developers have a choice between uniform distribution of their code and up-to-date dependencies'; up to 40% of npm packages depend on code with a known vulnerability (src:zimmer - who opens the door (structural)
The victim builds and keeps the door: an update routine set to accept the vendor's signed updates, a dependency manager that installs whatever name is typed and runs its install scripts. The attack does not breach a wall; it is let in by a port the receiver opened ahead of time for its supplier (Ohm - borrowed-then-held (partial)
XZ: the maintainer's trust was granted (borrowed) and then held in the attacker's own structures: he created the GitHub organisation and set his email as the default contact (src:przymus-2025-xz). - causal ceiling (partial)
Thompson: 'No amount of source-level verification or scrutiny will protect you from using untrusted code', because the tool that turns source into program can carry the Trojan; 'As the level of program gets lower, these bugs will be harder and harder to detect.' The limit is set by what the checker - lightning (partial)
Two forms: NotPetya, a prepared payload released at once through one vendor's update, with no kill switch (src:wp:supply-chain-attack); and the XZ discovery, one engineer's 'stroke of luck' noticing high CPU use that ended a 2.6-year campaign (src:przymus-2025-xz). - namespace completeness (the map predicts its gaps) (partial)
Elias Levy predicted the dependency route in 2003 (src:ohm-2020-backstabber), and real attacks filled it from 2015; Ladisa's attack tree sorts 107 vectors by stage, with nodes drawn from research demonstrations as well as incidents (src:ladisa-2022-taxonomy). The later filling of a specific slot by - nested ladder (partial)
SLSA 'starts with basic security at SLSA 1 and adds requirements at each level until the final level, SLSA 4' (src:okafor-2024-sok). - red-queen (partial)
Both sides keep moving: attackers 'continuously come up with creative ways to subvert detection' (src:wp:supply-chain-attack) while registries and governments add safeguards; detected malicious open-source packages rose from 929 (2020) to 459,070 (2024) as cited (src:hamer-2025-closing-chain). No so - same shape, opposite sign (partial)
One process, the vendor's signed update delivered through its update channel, carries both the patch that protects users and the trojaned update that attacks them; only the sign of the content changes (Okafor: with ideal separation only valid changes such as 'system updates and patches' can traverse - The carry (partial)
The wait: a downstream place takes an upstream change only when its own cycle comes round. 'Most Linux distributions that followed a stable release update model were not affected, since they were carrying older versions of xz' (src:wp:supply-chain-attack); the attacker timed the change to Red Hat an - The Payment to Entropy (partial)
Signal form: an ordinary build adds differences that come from nothing in the source (the state of a random number generator, the order processes ran), so two honest builds differ and a tampered one cannot be told from them; reproducible builds pay to remove that toll so that 'comparing outputs acqu - the whole sets the local reference (partial)
Reproducible builds: 'the checksum reported by ≥ 50% of the builders may be the one to trust'; each builder's local output is judged against what the community of independent builders reports (src:lamb-2021-reproducible). - Umwelt: each system carves its own slice of one shared medium (partial)
Of the whole shared supply chain, the attack takes in only its own slice: weak-link signals, names one typo from a popular one, credentials, a supplier's reach, and the victim's conditions; the ten channels of this walk are that slice. - partner-becomes-part (surface)
A supplier's component is built into the buyer's product (a dependency compiled in), so the attack placed in the partner arrives as part of the buyer; inheritance stays separate, so surface. - same toolkit, independent builds (surface)
Melamine added deliberately to a pet food ingredient in 2004 (Korea) and 2007 (US) and to milk in 2008 (China), the same cheap nitrogen to pass the same test (src:gossner-2009-melamine); whether the three were independent is not shown.
Valence: what it trades, and with whom (15) published science
Each exchange with a neighbour, read from both sides: who gains, who pays, and what carries it.
- Human (Homo sapiens) via sys:sensory-environment · Supply chain attack gain
- Law (rules and law) via sys:human-society · Supply chain attack loss
- Operating system via sys:computer-hardware · Supply chain attack gain
- Economy via sys:human-society · Supply chain attack gain
- Digital signatures and certificates via sys:written-record · Supply chain attack gain
- Open-source software via sys:written-record · Supply chain attack gain
- Malware via sys:software · Supply chain attack gain
- Incident response via sys:electromagnetic-field · Supply chain attack loss
- Threat actor via sys:internet · Supply chain attack gain
- Organization via sys:human-society · Supply chain attack gain
- Software vulnerability via sys:software · Supply chain attack even
- Supply chain security via sys:software-supply-chain · Supply chain attack loss
- Software supply-chain security via sys:software-supply-chain · Supply chain attack gain
- Social engineering via sys:human-society · Supply chain attack gain
- Attack surface via sys:software-supply-chain · Supply chain attack gain
Partners and parts published science
Built from / builds (4)
Sits inside / holds (3)
expressed by (16)
- Generation/Synthesis
- Recombination/Composition
- Sensing/Scanning
- Search/Foraging
- Evade Detection
- Overcome Barrier
- Precision Attack
- Neutralize Defenses
- Subversion & Co-optation
- Prepositioning & Latency
- Battlespace Shaping
- Leverage Host/Amplification
- Cascade Induction
- Validation of Identity/Intention
- Deception
- Resilience & Repair
floor filled by (16)
- Internet
- Operating system
- Digital signatures and certificates
- Compiler
- Malware
- Threat actor
- Organization
- Typosquatting
- Cyberwarfare
- Package registries and their policies
- Software supply-chain security
- Social engineering
- Digital identity
- Dependency manager
- Build system
- Food supply chain
Kinds (15)
- Dependency confusion
- Build-system compromise
- Hardware supply chain attack
- Malicious package in an open-source registry
- Update server hijacking
- Maintainer takeover
- Compiler Trojan (trusting trust)
- Third-party vendor access compromise
- Web skimming through third-party scripts
- Economically motivated adulteration of goods
- Package hallucination (names invented by AI models)
- Protestware (the maintainer as attacker)
- Self-replicating package worm
- Managed service provider compromise
- Subverted cryptographic constants in a product
Notes published science
- The 2008 melamine scandal is a supply chain attack on a test. Milk was watered down and melamine added because 'commonly used methods for protein analysis do not distinguish between nitrogen from protein and from nonprotein sources', so the check buyers trusted said the milk was rich in protein; 294,000 children fell ill and 6 died (src:gossner-2009-melamine). A trojaned software update passing a signature check is the same move in code: the check is real, and it is what got fooled.
- The XZ Utils backdoor took 2.6 years to plant and only eight malicious commits. Everything else was ordinary helpful work: patches, code reviews, moving the project to GitHub, while other accounts pressed the tired maintainer to take on more help. The finished backdoor obeyed only commands signed with its owner's private key, so nobody else who found the door could use it (src:lins-2024-xz). It was found by what the researchers call 'a stroke of luck': one engineer noticed the SSH server using too much processor time (src:przymus-2025-xz).
- News of attacks did not make people sign their packages; rules did. Across four registries, signing adoption followed registry policy, not public knowledge of attacks like SolarWinds: Maven Central, where signing has been mandatory since 2005, signed 97.1% of its artifacts in 2023, PyPI 0.2%, and half of PyPI's signatures were invalid (src:schorlemmer-2024-signing).
- In 2025 a supply chain attack learned to copy itself. The Shai-Hulud worm searched each infected developer's machine for publishing tokens, logged in to npm as that developer, and published infected versions of their other packages for the next developers to install (src:ncscnz-2025-npm-worm).
Layers
The ways it takes in its world, where they meet, and how it acts back, each from L1 (where it meets the world) up.
supply chain attack as security researchers and incident historians describe it: an intrusion that reaches its targets through the trusted supply chain of something they install, from the supplier's weak link up to the attacker's objective (reader's view)
- L1: The trusted supply chain the attack runs through: packages and registries, build systems, update servers, vendors and their access, maintainers and their accounts; for goods, the factories, collection stations and testers
- L2: Openings sensed: the weakest member of the network, an abandoned package, an expired maintainer email domain, a popular name one typo away, a tired lone maintainer, a contractor's credentials
- L3: Compromise: the weakness taken (account takeover, maintainer role gained, build server foothold, update server hijacked, look-alike name published)
- L4: Alteration: malicious code injected into source, build, package or update, often hidden and conditional
- L5: Propagation: carried downstream by trusted channels, signed by the vendor, installed by dependency managers and update routines
- L6: Exploitation and selection: run on install or at run time; conditions and a second stage pick the victims (SolarWinds: about 18,000 entities reached, fewer than ten US agencies confirmed compromised)
- L7: Objective: many linked targets reached at once through what they trust, for espionage, theft, sabotage or money
the boardroom (shared floors)
- L4: Alteration: the malicious change made where the openings, access, reach and toolkit meet: code injected into source, build, package or update, often obfuscated and conditional
- L5: Propagation: the change carried downstream by the chain's own trusted channels (signed updates, dependency managers, official download sites)
- L6: Exploitation and selection: the code runs at install or at run time; conditions and a second stage pick the victims who matter
- L7: Objective: many targets reached through one breach of what they trust (espionage, theft of cards or data, sabotage, ransom, crypto theft)
way in: Credentials and access of suppliers and maintainers
- L1: Accounts and passcodes that give a supplier access to its customer, or a maintainer access to a registry
- L2: Credentials stolen from a contractor (Target's heating and air-conditioning supplier)
- L3: The account used as its owner: into the customer's network, or to publish to a registry
way in: Package names invented by code-writing AI models
- L1: Code suggested by AI models, naming packages to install
- L2: Invented names that no registry holds: at least 5.2% (commercial models) and 21.7% (open-source models) of suggested packages
way in: Social trust in a project's community: contributions, pressure, a tired maintainer
- L1: A project's mailing list, issue tracker and review process, where trust is earned by contributions
- L2: The opening read: a maintainer under pressure, alone with a project many systems depend on
- L3: Maintainer role gained: by asking (event-stream) or by years of contribution and pressure from other accounts (XZ)
way in: The attacker's own toolkit and past campaigns (inner)
- L1: Code, backdoors and techniques the attacker already holds
- L2: Code reused across packages: 90% of the dataset in clusters sharing code
- L3: Techniques carried across repositories
way in: The registry's name space: popular package names to imitate
- L1: Package names in a public registry, resolved by name when a developer installs
- L2: Popular names read and their likely typing slips
- L3: A look-alike name published
way in: The supplier's build and publishing infrastructure
- L1: Build servers and publishing systems that turn source into the shipped product
- L2: A foothold in the publishing infrastructure (SolarWinds, by September 2019)
- L3: The build step itself taken over
way in: The supplier's distribution and update servers
- L1: Download and update traffic from a vendor's servers to its customers
- L2: The hosting or update server compromised (Notepad++ at the hosting provider; an eScan regional update server)
- L3: Update traffic intercepted and redirected to the attacker's servers
way in: The supplier's reach: who depends on it and how many install it
- L1: The dependency graph and customer base downstream of a supplier
- L2: Reach read: dependents and downloads (event-stream: 1,600 packages, 1.5 million downloads a week; Orion: 33,000 users)
- L3: A target chosen for its reach
way in: The victim's environment, read by the planted code
- L1: The machine and application the code lands in
- L2: Probes: is the application in production, does a domain resolve, which operating system, is a given package present
- L3: The reading tested against the condition: 41% of malicious packages run only if it is met
- L4: The hidden part unlocked only inside the target (decryption keyed to the targeted package)
- L5: The second stage fetched: the controller's address read from a smart contract and an operating-system-specific payload downloaded
way in: Weak links in the chain: abandoned packages, inactive maintainers, expired maintainer email domains, install scripts
- L1: The chain's packages, maintainers and their accounts, as listed in the registry's metadata
- L2: Weak-link signals read: an expired email domain, an inactive package with an inactive maintainer, an install script
- L3: The weak link taken: an abandoned package or a hijacked account
way in: What the defenders do, as the attack meets it: error reports, takedowns, detections
- L1: Defenders' actions: a controller taken down, a memory checker's error report, a scanner
- L2: The defence noticed by the attacker: the backdoor shows up as Valgrind errors; a controller is down
- L3: A change made to answer it: the issue 'fixed', the contract updated with a new address, controllers and payloads changed
way out: Act on the objective: steal cards and data, spy, encrypt or destroy, disable defences
- L1: Effects on the victim's world: 40 million cards exposed (Target), card data sent to a look-alike domain (British Airways), antivirus updates turned off (eScan)
- L5: Reports back and further orders over the controller channel
- L7: The objective
way out: Conceal: obfuscate, ship only in release tarballs, remove from source, keep changing controllers
- L1: What the defenders' readers of the chain see is the ordinary artifact
- L2: Encoding, minification and string sampling applied
- L4: Hiding chosen with the change
way out: Publish the altered product into the chain (a package, a signed update, a build output, a release tarball)
- L1: The altered artifact sits in the chain, waiting to be installed
- L2: Released through the supplier's own publishing step
- L4: The change written into the artifact
- L7: The objective sets what to alter and where
way out: Run on the victim: install scripts, runtime calls, test hooks
- L1: Code running with the victim's rights on the victim's machine
- L3: The install command or the calling program executes the code
- L6: Run chosen: at install or at run time