What is a software supply chain attack?
A software supply chain attack targets the components, tools, and processes that build and deliver software. The application itself often not the target. Instead, attackers use it as a way to bridge into sensitive systems like developer laptop and cloud environments.
The attack starts with compromising something upstream, such as open source software, a build system, or a CI/CD pipeline. The bad code flows downstream to everyone who trusts it. As a bonus, it arrives wearing the trust of a legitimate dependency or signed update.
How software supply chain attacks work
These attacks embody the old adage "hiding in plain sight" and share the same strategy: poison something upstream so the payload rides trust downstream. The pattern is consistent:
- Find a trusted entry point. Attackers target a popular package, a heavily referenced GitHub Action, or a build system that downstream teams already rely on.
- Gain access. They take over a maintainer account through social engineering, steal pipeline credentials, or exploit a namespace gap that lets a public package shadow a private one.
- Insert the payload. A backdoor, a credential stealer, or a self-propagating worm enters the component or the build process.
- Ride the trust downstream. The payload propagates through dependency trees or ships inside a signed update. Because the signature is valid and the source looks legitimate, automation pulls it straight into production.
Attackers exploit trust: reputation, valid signatures, and automated dependency resolution all work in their favor.
Software supply chain attack examples
Attacks cluster around a few entry points.
- Open source package attacks. Typosquatting, dependency confusion, and malicious package injection target the registries developers pull from. Attackers favor popular packages and their transitive dependencies to maximize reach.
- Build pipeline and CI/CD compromise. Stolen signing certificates, compromised build environments, and poisoned updates let an attacker taint every artifact a pipeline produces, often with a valid signature attached.
- Malicious maintainer takeover. An attacker earns or seizes commit access to a legitimate project, then inserts a backdoor that ships to every consumer.
- Insecure third-party integrations and excess permissions. Over-permissioned actions, tokens, and integrations widen the blast radius when an attacker compromises any one of them.
You can explore more in-depth using the Software Supply Chain Risk Explorer produced by the Endor Labs security research team.
Real-world examples
Concrete, dated incidents show how these attacks play out across registries, build systems, and maintainer accounts.

Endor Labs's threat research tracks active campaigns as they break, including the Shai-Hulud worm and PhantomRaven. These incident reports feed the examples above and document how each attack unfolds.
How to defend against them
Defense comes down to visibility, prioritization, and enforcement across the pipeline. These are the practices that move the needle, ordered by impact.
- Inventory dependencies and generate SBOMs. Treat the SBOM as a living inventory, not a compliance checkbox. Generate it in CI/CD on every build, support CycloneDX and SPDX, and monitor it for new CVEs over time. Pair it with the SLSA framework and build attestations to prove provenance.
- Detect malicious packages before the build. Vulnerability scanning catches known CVEs. Malware detection catches code that is malicious by design, before it enters the pipeline or lands on a developer's laptop. Tools like package firewalls can help enforce protections across local and CI builds.
- Harden the build pipeline. Use hermetic builds and ephemeral environments, sign commits, verify artifacts, rotate tokens on a schedule, and run least-privilege service accounts with build provenance.
- Control dependencies. Pin versions, commit lock files, use private registries, and route updates through automated pull-request workflows.
- Enforce least privilege across the SDLC. Apply RBAC, secrets management, and segmentation so a single compromise cannot reach everything.
- Build and test an incident response plan. A compromised dependency touches every application that uses it, so response speed sets the blast radius. Teams with SBOMs in place can answer "are we exposed?" in minutes.
FAQ
What is a software supply chain attack? A software supply chain attack compromises the components, tools, or processes used to build and deliver software, rather than attacking the application directly. By poisoning an upstream element like an open source package, a build system, or a CI/CD pipeline, attackers inject malicious code that propagates to every downstream consumer that trusts it.
What are the most common types of software supply chain attacks? The main categories are open source package attacks (typosquatting, dependency confusion, malicious package injection), build pipeline and CI/CD compromise, malicious maintainer takeover, and abuse of over-permissioned third-party integrations. Recent examples span all of them, from the SolarWinds build compromise to the Shai-Hulud npm worm.
What is cyber supply chain risk management? Cyber supply chain risk management is the practice of identifying, assessing, and reducing the security risk that third-party software, components, and vendors introduce into your environment. For software teams, it means full dependency visibility through SBOMs, prioritization through reachability analysis, malware detection before the build, and an incident response plan for upstream compromises.
How do you prevent software supply chain attacks? Start with visibility: inventory every dependency and generate SBOMs in CI/CD. Then prioritize with reachability analysis so you fix exploitable risk first, detect malicious packages before they enter the build, harden the pipeline with signed commits and least-privilege access, and keep an incident response plan ready. No single control is enough on its own.
What was the SolarWinds supply chain attack? In 2020, attackers compromised the SolarWinds Orion build pipeline and injected the SUNBURST backdoor into a legitimate software update. The update reached about 18,000 organizations, including US federal agencies, and shipped with a valid digital signature because the compromise lived inside the build system itself.
Attackers have proven they will exploit the supply chain, so visibility and prioritization are no longer optional. Endor Labs scans every newly uploaded package across npm, PyPI and other ecosystems to detect malware at the source, and blocks it from landing in AI coding agents, on developer laptops, or in CI/CD pipelines. Book a demo to see the package firewall in action and to learn how to secure your software supply chain.
What's next?
When you're ready to take the next step in securing your software supply chain, here are 3 ways Endor Labs can help:








