Where Do Software Supply Chain Attacks Start, and How Should You Respond?
A software supply chain attack abuses trust in the code, tools, build systems, distribution channels, or update paths used to deliver software, causing unwanted behavior to reach users. It is not limited to outdated or vulnerable libraries. An attacker may compromise a developer account, repository, build pipeline, publishing permission, or update channel, so organizations need to track not only their component inventories but also what was built from which source and process, and where it was distributed.
Why look at the whole supply chain?
Applications are not made only from code written in-house. External libraries and their own dependencies, compilers and build plugins, IDE extensions, source repositories, CI/CD systems, package registries, and automatic updates can all affect the result. If one stage is compromised, the next may accept its output as legitimate.
There are two distinct supply chain problems: a component with a known vulnerability is exploited, or trusted code, accounts, tools, or delivery paths are changed maliciously. OWASP Top 10:2025 A03 broadly covers failures and compromises in building, distributing, and updating software. Managing vulnerable components matters, but it does not by itself secure the supply chain.
Which boundaries do attackers target?
SLSA 1.2 groups threats by their location in the pipeline, including source, build, usage, and dependencies. This helps locate where trust may have broken during an investigation.
| Stage | Example attack | Evidence and questions to check |
|---|---|---|
| Source and accounts | A stolen developer or bot account bypasses review rules and changes code | Do change history, reviewers, and branch or tag protections match expectations? |
| Dependencies and developer tools | A malicious package or compromised IDE extension runs in development or build environments | Are direct and transitive versions, package origins, installation times, and tool changes recorded? |
| Build pipeline | A build script, parameter, or runner is changed to produce something different from reviewed source | Do the source revision and build settings match approved values? Are build environments and signing keys isolated? |
| Publishing, distribution, and updates | Publishing access or a registry is compromised to replace a package or update | Do the received file's hash, signature, and provenance match the approved release? Was rollout staged? |
These stages connect. A malicious dependency can affect a build even if application source did not change. A signature can help establish that a key signed something, but a compromised signing key or publishing account can also sign a malicious artifact. Check the signer, key protection, build provenance, and distribution records together rather than treating the signature alone as proof of safety.
What should you compare when an incident is suspected?
Suppose, hypothetically, a service begins making unusual outbound requests just after a dependency update. That timing alone does not prove the library caused the behavior. Compare events in order to identify whether the issue began in the updated package, build job, deployed file, or runtime credentials.
**Fix the scope.** Record when the behavior first appeared, the release version, affected services, and environments. Under your incident plan, pause further deployment or roll back to a safe prior version. Preserve logs and artifacts; do not erase evidence or overwrite it through a reinstall.
**Identify what actually ran.** Use lockfiles, a software bill of materials (SBOM), and image or package inventories to connect the deployed version to direct and transitive dependencies. Treat records with missing entries or unclear generation time as incomplete evidence.
**Compare source and build provenance.** Check whether the release's commit and tag, code review, CI/CD run, build settings and parameters, artifact hash, and provenance agree. Provenance is a record claiming which source and build process produced an artifact. It is useful evidence, not a guarantee that the software is safe.
**Check publishing and runtime evidence.** Compare registry upload records, signing-key use, deployment approvals and changes, runtime logs, and outbound connections. Missing or inconsistent records help focus the investigation on dependencies, accounts, the builder, a registry, or the update path.
**Recover and verify.** Following your response process, revoke or replace affected accounts and credentials, then build a new artifact from verified source and a trusted build path. Check whether removing the affected version is enough or whether secrets and downstream systems accessed by malicious behavior also need review. After redeployment, verify the hash, provenance, and service behavior, and regression-check preventive controls.
This is a general investigation sequence. Actual containment, evidence preservation, and reporting must follow the organization's incident response plan and applicable legal duties. Do not run a suspected artifact casually; use an isolated analysis environment.
Which controls should you prioritize?
No organization can eliminate every threat at once. Inventory the product and build structure, then apply and automate controls at the boundaries that affect production.
**Track components.** Record direct and transitive dependencies and versions in lockfiles or an SBOM; remove unused components. Monitor vulnerability notices and end of support, and assign owners, priorities, and remediation deadlines so alerts do not simply accumulate.
**Separate change authority.** Protect repositories, review changes, audit administrator actions, and use strong authentication. Reduce paths where one account or person can change reviewed code and deploy it straight to production. Manage bots and automation as distinct identities.
**Isolate builds and secrets.** Separate build environments and grant only necessary permissions. Provide secrets only to the jobs and environments that need them, and keep them out of logs. Record and review build-setting changes and exceptions.
**Verify provenance and integrity.** Use hashes, signatures, and verified provenance to check whether an artifact came from approved source and build steps. Signatures and attestations help assess origin and changes; on their own, they do not guarantee code safety or supplier integrity.
**Stage releases and keep records.** Promote the same verified artifact between environments instead of rebuilding it each time. Use canary or gradual rollouts to limit exposure. Track important settings and release changes in repositories, CI/CD, developer tools, and package registries.
An SBOM helps answer “what is included?” Provenance helps answer “what source and process is this artifact claimed to come from?” Neither replaces all other controls. Connect both to the deployed artifact's hash and make sure responders can use them for vulnerability handling, build verification, and investigations.
Where is a good place to start?
Instead of adopting a complex assurance program immediately, choose one application in production and trace it from source commit through dependencies, build run, artifact hash, publication, and deployment records. Fix the unapproved paths, missing records, and excessive permissions you find. Then automate the trace and extend it to other services.
The goal of supply chain security is not to adopt one particular tool. It is to explain and verify who made a change, how it became an artifact in a particular environment, and whether the deployed copy matches that result. Inventories help manage vulnerable components; provenance checks, separated permissions, tamper-evident logs, and staged rollouts reduce the chance and impact of malicious changes crossing trust boundaries.
References
[OWASP Top 10:2025 A03 — Software Supply Chain Failures](https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/)
[SLSA v1.2 — Threats & mitigations](https://slsa.dev/spec/v1.2/threats)
[SLSA v1.2 — Build: Assessing build platforms](https://slsa.dev/spec/v1.2/assessing-build-platforms)