A source-cited reference library 399 modules · 19 subdomains · 5 domains
Research Library
Software Supply-Chain Attacks

Cybersecurity / Malware

Software Supply-Chain Attacks

Attacks that compromise the software development and distribution process to insert malicious code into trusted products, exploiting the trust placed in legitimate software updates and dependencies.

Executive brief

Software supply-chain attacks infiltrate the software lifecycle—from source code to build systems to update mechanisms—to insert malicious behaviors into otherwise trusted software. By compromising a single dependency or build process, attackers can propagate malware to thousands of downstream victims. Notable examples include the SolarWinds Orion compromise (2020), poisoned dependency packages in language repositories, and the subversion of code-signing update channels as seen in NotPetya’s use of the M.E.Doc update mechanism.

Overview and context

Software supply-chain attacks target the processes and infrastructure that create, package, and distribute software, rather than the end-user application directly. By compromising a trusted component—such as a build server, a dependency package, or an update mechanism—attackers gain the ability to distribute malicious code to numerous victims who believe they are installing legitimate software. This abuse of trust amplifies the impact: a single point of compromise can lead to widespread infection across organizations that rely on the compromised software.

The attack surface includes every stage of the software lifecycle: source code repositories, build automation systems, dependency managers, packaging and signing infrastructure, and update delivery channels. Defending these areas requires controls that differ from traditional endpoint security, focusing on integrity verification, least privilege for build systems, and monitoring for unauthorized changes in trusted workflows. The following sections break down the most documented techniques: build-system compromise (exemplified by SolarWinds), dependency abuse via typosquatting and confusion attacks, CI/CD pipeline hijacking, and the subversion of code-signing and update channels.

A conveyor line in a fulfilment warehouse
A supply chain in the physical sense — a conveyor line in a fulfilment warehouse. Software supply chains differ in medium, not in the trust problem: one compromised link passes malicious goods to every downstream recipient. Photograph via Wikimedia Commons.

Technical and feature breakdown

Build-System Compromise

Build-system compromise occurs when attackers gain unauthorized access to the infrastructure that compiles, packages, or distributes software, allowing them to insert malicious code into legitimate builds. The 2020 SolarWinds Orion incident is the canonical example: attackers inserted a backdoor (later named Sunburst) into the software build system, which then signed and distributed the compromised updates to approximately 18,000 customers, including multiple U.S. federal agencies. The backdoor remained undetected for months because it was buried within the legitimate build process and carried a valid digital signature from SolarWinds.

Defending against build-system compromise requires hardening the build environment: isolating build networks, enforcing multi-party authorization for changes, monitoring for unexpected outbound connections from build servers, and implementing reproducible builds that allow verification that the binary corresponds to the source code. Techniques such as signing commits and using hardware security modules for private keys reduce the risk of unauthorized modifications going unnoticed.

Stacked shipping containers at the Port of Rotterdam
Goods moving through many hands — stacked shipping containers at the Port of Rotterdam. A software build is the same kind of handoff: the compromise happens before the artifact is sealed, and every recipient trusts the seal. Photograph via Wikimedia Commons.

Dependency Abuse: Typosquatting & Confusion

Dependency abuse exploits the way programming languages resolve external libraries, either by registering malicious packages with names similar to legitimate ones (typosquatting) or by taking advantage of dependency confusion where a public package shares a name with an internal private dependency. In 2021, North Korean threat actors were observed uploading malicious packages to the Rust crate registry with names resembling popular crates, attempting to trick developers into downloading poisoned dependencies. Similar attacks have targeted PyPI and npm repositories, where attackers register packages with slight misspellings of trusted names or publish versions with higher version numbers to exploit version-resolution preferences.

Mitigation strategies include using lock files to pin exact dependency versions, configuring package managers to prefer internal registries over public ones, and implementing automated scanning of dependencies for known malicious publications. Organizations should also monitor for unusual outbound network connections from build processes and enforce strict approval workflows for adding new dependencies.

Screen of application source code during custom software development
The dependency layer in practice — application source code on a development screen. The package names imported here are exactly what typosquatting and dependency-confusion attacks target, which is why lock files and registry settings matter. Photograph via Wikimedia Commons.

CI/CD Hijacking

Continuous integration and continuous deployment (CI/CD) pipelines automate the building, testing, and delivery of software, making them attractive targets for supply-chain attacks. If an attacker gains control of a CI/CD system—for instance, by compromising a service account or injecting malicious code into pipeline configuration files—they can alter the build process to include malware in every artifact produced. Techniques include modifying build scripts to download additional payloads during compilation, replacing legitimate dependencies with malicious ones, or altering test suites to bypass security checks.

Notable incidents have involved compromised Jenkins servers, poisoned GitHub Actions workflows, and manipulated Azure Pipelines configurations. Defense requires segmenting CI/CD infrastructure, enforcing least privilege for service accounts, monitoring pipeline configurations for unauthorized changes, and implementing approval gates for modifications to build logic. Additionally, verifying the integrity of build artifacts through cryptographic signing and checksum validation helps detect tampering before deployment.

CI/CD attack points and their controls — the three ways the section says a pipeline can be altered, with the defense for each.

Attack pointWhat changesControl
Service accountCredentials used to alter buildsLeast privilege and monitoring
Pipeline configurationBuild logic or test suitesApproval gates and change review
Dependency stepLegitimate package replacedLock files and checksum validation
# Pipeline rule
if the build logic changed, the artifact needs re-verification

Reading — the three points sit at different stages, which is why segmenting the infrastructure and reviewing the logic are separate controls.

Code-Signing & Update Channels

Code-signing and update channels represent the final link in the software supply chain, where trusted signatures validate that software has not been altered since publication. Attackers subvert this trust by stealing code-signing certificates, compromising update servers, or manipulating the update delivery process to distribute malicious software as legitimate updates. The 2017 NotPetya attack exemplified this approach: threat actors compromised the update mechanism of the Ukrainian tax software M.E.Doc, using its legitimate update channel to spread ransomware globally under the guise of a routine software update.

Protecting update channels involves securing the update infrastructure with network segmentation and strict access controls, monitoring for anomalous update traffic, and validating update integrity through multiple independent signatures. Code-signing private keys should be stored in hardware security modules with strict usage policies, and organizations should consider implementing update transparency frameworks that publish metadata about legitimate updates to enable discrepancy detection.

The software bill of materials example, annotated

This document's working example demonstrates a defensive practice: generating and verifying a software bill of materials (SBOM) to track dependencies and detect unauthorized changes. An SBOM lists all components, libraries, and modules required to build a piece of software, providing visibility into the supply chain. The example below shows how to generate a simple SBOM for a Python project using the syft tool (educational and defensive only), followed by a verification step that checks for known malicious packages in a curated threat feed.

The first code block creates an SBOM in JSON format, capturing direct and transitive dependencies. The second code block illustrates how to compare the SBOM against a list of known malicious packages—such as those published in dependency-confusion attacks—to identify potential threats. This approach enables organizations to detect supply-chain risks before deployment, turning an opaque build process into an auditable inventory.

SBOM generation — creating a dependency inventory for supply-chain visibility; annotated in the text.

# Example: generate SBOM for a Python project (defensive)
$ syft packages python-app -o json > sbom.json
# Inspect dependencies: cat sbom.json | jq '.artifacts[].name'

Dependency verification — checking SBOM against threat feed to detect known malicious packages.

# Example: verify SBOM integrity (defensive)
$ grep -f malicious-packages.txt sbom.json | jq '.artifacts[] | select(.name | . == "requests" or . == "numpy")'
# If any matches appear, investigate the dependency source and version.

Comparative data and specs

The table on the right compares four documented supply-chain attack vectors across key dimensions: initial access method, typical impact, detection difficulty, and notable incidents. Build-system compromise (SolarWinds type) involves inserting malicious code into trusted builds, leading to wide distribution of signed malware. Dependency abuse exploits package managers to deliver poisoned dependencies, often targeting specific developers or organizations. CI/CD hijacking subverts automation pipelines to poison build artifacts continuously. Code-signing and update-channel subversion abuses trusted update mechanisms to distribute malware as legitimate software updates.

Detection difficulty varies: build-system compromise can remain hidden for months due to valid signatures, while dependency abuse may be spotted faster through anomaly monitoring in package registries. The "Impact" column reflects the potential reach—SolarWinds-affected organizations numbered in the tens of thousands, whereas a single typosquatting package might affect fewer victims but still pose significant risk to targeted sectors. These vectors often overlap in practice; for instance, a compromised build system might also poison dependencies used in its own compilation process.

Attack VectorInitial AccessTypical ImpactDetection Difficulty
Build-System CompromiseCompromised build serverWide distribution of signed malwareHigh (valid signatures conceal)
Dependency AbuseMalicious package uploadTargeted infection via trusted dependenciesMedium (registry monitoring helps)
CI/CD HijackingPoisoned pipeline configurationContinuous artifact corruptionMedium (config change monitoring)
Code-Signing & Update ChannelsSubverted update mechanismMalware distributed as legitimate updatesHigh (trusted channel abuse)

Four supply-chain attack vectors compared by access, impact, and detection.

Vector, first sign, and first control — the same four vectors read as an incident-response order.

VectorFirst signFirst control
Build-system compromiseValid signature on unexpected behaviorReproducible builds
Dependency abuseNew or misspelled package nameLock files and internal registries
CI/CD hijackingPipeline configuration changeApproval gates and least privilege
Update-channel subversionAnomalous update trafficMultiple independent signatures
# Question per vector
who could change this artifact, and who would notice?

Reading — each vector fails a different integrity check, so the controls are not interchangeable even though all four concern trust.

Reading — detection difficulty reflects how easily defenses can spot the attack before widespread distribution, considering factors like signature validity and channel trust.

Actionable steps for analysts

  1. Build environment hardening

    Isolate build networks, enforce multi-party authorization for changes, and monitor for unexpected outbound connections from build servers. Implement reproducible builds to verify that binaries correspond to source code, and use hardware security modules for storing code-signing private keys.

  2. Dependency integrity controls

    Use lock files to pin exact dependency versions, configure package managers to prefer internal registries, and implement automated scanning for known malicious publications. Monitor for unusual network connections from build processes and enforce strict approval workflows for new dependencies.

  3. CI/CD pipeline security

    Segment CI/CD infrastructure, enforce least privilege for service accounts, monitor pipeline configurations for unauthorized changes, and implement approval gates for modifications to build logic. Verify build artifact integrity through cryptographic signing and checksum validation before deployment.

  4. Update channel monitoring

    Secure update infrastructure with network segmentation and strict access controls, monitor for anomalous update traffic, and validate update integrity through multiple independent signatures. Store code-signing private keys in hardware security modules with strict usage policies.

  5. Software bill of materials practices

    Generate and maintain SBOMs for all software artifacts, compare them against threat feeds to detect known malicious dependencies, and establish approval workflows for dependency changes based on SBOM analysis.

Each control and the vector it closes — the five steps mapped to the four attack surfaces.

ControlVector addressedEvidence it works
Build environment hardeningBuild-system compromiseReproducible build matches source
Dependency integrityDependency abuseLock file pins every version
CI/CD securityPipeline hijackingApproval gate on build logic
Update-channel monitoringUpdate subversionMultiple independent signatures
SBOM practicesUnknown dependenciesComplete component inventory
# Verification loop
build -> inventory -> compare -> approve -> deploy

Reading — the five controls cover four vectors plus one cross-cutting inventory, which is why the SBOM step supports the other four rather than replacing them.

Additional context — defenders’ dilemma in securing the supply chain

Securing the software supply chain presents a unique challenge because defenders must protect processes that are inherently collaborative and automated, often spanning multiple organizations and geographic boundaries. Unlike traditional endpoint security, supply-chain defenses require coordination with third-party vendors, reliance on community-maintained infrastructure (such as public package registries), and continuous vigilance against evolving abuse tactics. The defender’s dilemma lies in balancing the need for rapid, automated software delivery with the controls necessary to detect and prevent unauthorized changes—controls that can introduce friction into development workflows if not implemented thoughtfully.

Effective supply-chain security combines technical controls with process-oriented measures: establishing clear ownership of build and release processes, conducting regular red-team exercises focused on supply-chain scenarios, and maintaining transparency about trusted dependencies and update mechanisms. Organizations should also participate in industry information-sharing groups to stay informed about emerging threats and mitigation strategies, recognizing that supply-chain risk is a shared responsibility across the software ecosystem.

The defender's dilemma, side by side — the two pressures the section says must be balanced.

PressureWhy it mattersCounterbalance
Rapid, automated deliveryCompetitive and operational needControls that fit the pipeline
Third-party dependenceTrust extends beyond the organizationVendor coordination and SBOMs
Community infrastructurePublic registries are shared and fallibleInternal registries and lock files
Control frictionHeavy process slows developersAutomate checks rather than add approvals

Reading — the dilemma is not whether to add controls but where to place them so that they do not become the delivery bottleneck they are meant to protect.

Process measures and who owns them — the section's non-technical half.

MeasureOwnerOutput
Clear ownership of build and releaseEngineering leadershipNamed accountable owner
Supply-chain red-team exercisesSecurityTested detection and response
Transparency about dependenciesProduct and securityPublished SBOM and update policy
Information sharingAll participantsEarly warning of campaigns
# Shared-responsibility rule
risk does not stop at the organization's own build

The process measures cover what technical controls cannot: ownership, testing, and the shared warning system across the ecosystem.

Additional context — regulatory response and standardization

Government and industry responses to high-profile supply-chain attacks have accelerated the adoption of standards and regulations aimed at improving transparency and accountability in the software lifecycle. Executive Order 14028 on Improving the Nation’s Cybersecurity (2021) mandated the use of software bills of materials for federal software suppliers, while initiatives like the Supply-chain Levels for Software Artifacts (SLSA) framework provide incremental security levels for build processes. Standards such as SPDX for SBOM formatting and OpenChain for supply-chain licensing compliance help organizations demonstrate due diligence in managing supply-chain risk.

These efforts reflect a growing recognition that software supply-chain security cannot be achieved through endpoint controls alone; instead, it requires end-to-end visibility into how software is built, distributed, and maintained. By adopting standardized practices for dependency verification, build integrity, and update transparency, organizations can reduce their exposure to supply-chain threats while contributing to a more secure software ecosystem for all stakeholders.

The standards named in the section — what each one asks for and the risk it reduces.

Standard or policyAsks forReduces
Executive Order 14028SBOMs for federal software suppliersUnknown components
SLSAIncremental build-process security levelsBuild tampering
SPDXA standard SBOM formatInventory inconsistency
OpenChainSupply-chain licensing complianceLicensing and provenance risk

Reading — the instruments divide into what must be listed (SPDX), how it must be built (SLSA), and how compliance is shown (OpenChain), with the executive order setting the requirement.

From requirement to evidence — the compliance path the section describes.

  1. RequirementExecutive Order 14028 mandates SBOMs for federal suppliers, 2021.
  2. FormatSPDX provides a common way to express the inventory.
  3. ProcessSLSA levels describe increasing assurance in the build.
  4. ComplianceOpenChain lets an organization demonstrate due diligence.
# Due-diligence loop
list components -> verify build -> document -> share

Reading — the sequence turns a regulatory demand into an auditable practice, which is the section's point about end-to-end visibility.

Quick reference — the rules at a glance

A software supply-chain attack compromises the process that creates or distributes software rather than the user directly. The payoff is scale: one poisoned build, dependency, pipeline, or update channel can reach every organization downstream. The four documented vectors on this page are build-system compromise, dependency abuse, CI/CD hijacking, and subversion of code-signing or update channels. SolarWinds illustrates the first, poisoned packages illustrate the second, and NotPetya's use of the M.E.Doc update mechanism illustrates the last.

Each vector defeats a different integrity check, which is why the defenses are layered rather than interchangeable. Reproducible builds test whether a binary matches its source. Lock files and internal registries test whether a dependency is the one intended. Approval gates test whether pipeline logic changed. Multiple independent signatures test whether an update is authentic. An SBOM ties the layers together by making the component inventory visible before deployment.

The page's dilemma is practical: these controls can slow delivery, and a control that developers route around is not a control. The answer is to automate the checks and place them inside the pipeline, and to treat supply-chain risk as shared across vendors, registries, and standards bodies. The rule to carry away is that trust in software should be verified at every handoff, not assumed at the last one.

Vector, integrity check, and control — the page's four attack surfaces with the test each one defeats.

VectorIntegrity checkControl
Build-system compromiseBinary matches sourceReproducible builds
Dependency abusePackage is the intended oneLock files and internal registries
CI/CD hijackingPipeline logic unchangedApproval gates and least privilege
Update subversionUpdate is authenticIndependent signatures
VisibilityComponents are knownSBOM and provenance

Each row tests something different, so a program that performs only one of them leaves the other handoffs unverified.

Failure modes and their warning signs — where supply-chain defense usually breaks.

Failure modeWarning signResponse
Trusting a signature aloneValid signature, unexpected behaviorReproducible build check
Unpinned dependenciesVersion changes between buildsLock files and internal registry
Open pipeline changesBuild logic edited without reviewApproval gates
No component inventoryUnknown library in productionSBOM and threat-feed comparison
# Verification rule
trust is checked at every handoff, not assumed at the last

The warning signs all describe a gap between what was built and what was verified, which is the space these controls are designed to close.