Glossary · S

Supply Chain Attack

Attack that compromises a target indirectly through a trusted third party, such as a software dependency, build system, update mechanism or service provider.

By Obseria TeamUpdated

Definition

A software supply chain attack compromises an organization indirectly by tampering with something it trusts: an open-source package, a build or CI system, a software update or a vendor's product. Malicious code then reaches many victims through normal installation and update processes. Known examples include the SolarWinds Orion compromise in 2020 and the backdoor in xz Utils discovered in 2024. MITRE ATT&CK lists the technique as Supply Chain Compromise (T1195).

What is a supply chain attack?

Modern software is assembled from many parts: open-source libraries, container base images, build tools, CI pipelines, plugins and services from vendors. A supply chain attack targets one of these links instead of the final victim. If the attacker succeeds, the compromised component is distributed through channels that the victims trust and rarely question, such as a package registry or an automatic update.

That is what makes these attacks so effective. One compromised package or build server can reach thousands of organizations, and the malicious code often arrives signed, versioned and installed by the victims' own automation.

Common types

  • Compromised maintainers or packages: an attacker gains control of a popular package, for example through a stolen maintainer account or by taking over an abandoned project, and publishes a malicious version.
  • Typosquatting: packages with names similar to popular ones, such as a swapped letter, hope to be installed by mistake.
  • Dependency confusion: a public package with the same name as an internal one, but a higher version number, is picked up by build tools that check public registries first. Security researcher Alex Birsan demonstrated this widely in 2021.
  • Compromised build and CI systems: malicious code is injected during the build, so the source repository looks clean while the shipped artifact is not.
  • Compromised updates and vendors: a vendor's update mechanism or product is manipulated, and customers install the payload with the next update.
  • Leaked secrets in the pipeline: tokens in code, logs or CI variables let attackers publish packages or access infrastructure.

Well-known examples

  • SolarWinds Orion (2020): attackers inserted a backdoor, known as SUNBURST, into the build process of the Orion network management software, which was then shipped to customers as a regular update.
  • Codecov (2021): a modified Bash Uploader script exfiltrated environment variables, including credentials, from customers' CI environments.
  • xz Utils (2024): a backdoor tracked as CVE-2024-3094 was placed in the compression library after a contributor had built trust over a long period. It was discovered shortly before it reached many stable Linux distributions.
  • event-stream (2018): a new maintainer of a popular npm package added a dependency with code that targeted a specific cryptocurrency wallet.

Not every dependency risk is an attack. A vulnerability such as Log4Shell (CVE-2021-44228) in a widely used library is an accidental flaw, but it spreads through the same supply chain and needs the same visibility. Both are tracked as CVEs once they are known.

Reducing the risk

  • Know what you use: maintain a software bill of materials (SBOM) for each application, so you can answer within minutes whether an affected package is in use.
  • Pin and verify: use lock files, pin versions and image digests, and verify checksums or signatures, for example with Sigstore.
  • Configure registries: use scoped or private registries for internal packages to prevent dependency confusion.
  • Harden the build: isolated, reproducible builds with short-lived credentials. The SLSA framework describes levels of build integrity and provenance.
  • Least privilege in CI/CD: tokens that can only publish what they need and expire quickly.
  • Review changes: treat dependency updates as code changes, and look more closely at new maintainers, install scripts and sudden large changes.

A lock file entry ties a dependency to an exact version and integrity hash:

"node_modules/left-pad": {
  "version": "1.3.0",
  "resolved": "https://registry.npmjs.org/left-pad/-/left-pad-1.3.0.tgz",
  "integrity": "sha512-..."
}

Detecting a compromise

Because the malicious code arrives through trusted channels, detection often happens at runtime: new or unexpected processes after a deployment, outbound connections to unknown domains, unusual DNS queries, cryptominers or access to credentials that the application never needed before. In MITRE ATT&CK the technique is Supply Chain Compromise (T1195). Confirmed findings become indicators of compromise that can be searched for across all systems.

The observability perspective

Observability connects what was deployed with how it behaves. Deployment markers, container images and service versions next to network connections, process activity and error rates make it possible to ask: which services started behaving differently after a dependency update, and where else is the same version running? That context turns a vague suspicion into a concrete list of affected systems.

How Obseria helps

Obseria helps you see risks and suspicious behavior; it does not stop releases or remove packages. Software composition analysis checks dependencies from npm, PyPI, Maven and Cargo in repositories connected through GitHub for known vulnerabilities and licence risks, and can produce an SBOM. Secret scanning finds tokens and keys in code and Git history. At runtime, workload threat detection flags new processes and cryptominers on hosts, detection only, and threat intelligence matches connections against known malicious IPs and domains. Only published vulnerabilities can be reported, so runtime signals are an important complement.

Frequently asked questions

A supply chain attack is deliberate: someone inserts malicious code into a trusted component. A vulnerable dependency contains an accidental flaw. Both reach you through the same supply chain and need an inventory such as an SBOM.

Dependency confusion happens when a build tool installs a public package instead of an internal one with the same name, usually because the public version number is higher. Scoped or private registries prevent it.

No. An SBOM is an inventory of components. It does not stop an attack, but it lets you find out quickly whether an affected package or version is used and where.

Through checks before deployment, such as dependency scans and signature verification, and through runtime signals such as unexpected processes, outbound connections to unknown domains or access to credentials after an update.

Put these concepts into practice

Try Obseria free for 14 days, with OpenTelemetry and no proprietary agents.