CICD-SEC-3 Dependency Chain Abuse is an OWASP Top 10 CI/CD Security Risks category covering attacks that get malicious packages fetched by build systems, such as dependency confusion, typosquatting and brandjacking. Defenders pin versions, use lockfiles with integrity hashes, scope internal package names to private registries, and limit which sources pipelines may pull from.
What Dependency Chain Abuse Means in CI/CD
Dependency chain abuse is a build-time supply chain attack pattern in which an attacker poisons the package resolution path so a pipeline fetches a malicious dependency instead of the intended one. In CI/CD, that can happen through namespace confusion, typosquatting, brandjacking, or registry selection mistakes, turning ordinary package installation into an ingress path for untrusted code.
The danger comes from trust placed in automated dependency resolution. Build systems often run with broad network reach, access to source repositories, and permissions to sign, test, or package artifacts, so a poisoned dependency can influence the software before it ever reaches production.
How Attackers Exploit the Dependency Chain
Attackers aim at the weakest point in the resolution chain, not necessarily the codebase itself. If a pipeline pulls from public registries, accepts ambiguous package names, or lacks strict source controls, a malicious package can be selected during install and executed as part of normal build activity.
OWASP CICD-SEC-3 Dependency Chain Abuse Guide explains why internal proxies, scoped names, lockfiles, and hash-based validation matter when build systems resolve packages.
This is especially dangerous because the compromise may look like a routine dependency update. The attacker does not need to break the build system first if they can make the build system trust the wrong source.
Exposure Signals and What to Check
Exposure usually begins with inventory and policy gaps: unclear package ownership, unused public registries still reachable from runners, package names that collide with external ecosystems, or pipelines that install dependencies without enforcing exact versions and integrity checks.
CI/CD Security Tooling Buyer's Guide is useful here because dependency-chain defence depends on workflow analysis, runner visibility, and the ability to detect risky package resolution paths.
Teams should also review whether build logs show unexpected registry lookups, whether lockfiles are actually enforced, and whether external package fetches are limited to approved sources. For broader threat context, MITRE ATT&CK Enterprise Matrix helps map how initial access, execution, and persistence can emerge once malicious code runs inside the pipeline.
Defensive Controls That Reduce the Blast Radius
Effective defence is mostly about removing ambiguity from package resolution. Pin versions, require integrity hashes where the ecosystem supports them, and route package traffic through private registries or proxies so the pipeline only sees trusted sources.
Malicious Package and Dependency Confusion Guide gives the operational logic behind scoped namespaces, trusted publishing, and install-time hardening against typosquats and hijacked packages.
For software supply chain integrity, SLSA is a strong external reference for provenance and integrity expectations, while OpenSSF is useful for understanding the wider ecosystem of open source supply chain controls and guidance.
Detection, Recovery, and Post-Exposure Review
After suspected exposure, the key question is what the pipeline may have executed, downloaded, or embedded before the malicious dependency was blocked. Review build logs, artifact contents, dependency graphs, and any secrets or tokens that may have been available during the affected build.
Top 10 CI/CD Security Risks is relevant because dependency-chain abuse rarely exists in isolation, it often overlaps with artifact integrity issues, credential exposure, and broader pipeline compromise patterns.
If a malicious package executed in the build environment, treat the event as a compromise investigation rather than a simple package removal task. Rebuild from trusted sources, invalidate any secrets accessible to the runner, and verify that downstream artifacts were not signed, published, or promoted while poisoned inputs were present.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
SLSA, CIS Controls v8, NIST SP 800-53 Rev 5 and OWASP ASVS set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| SLSA | Supply-chain Levels for Software Artifacts | Defines provenance and integrity expectations for build artifacts affected by dependency poisoning. |
| Recommendation — Adopt SLSA-aligned provenance checks to verify build inputs and reject untrusted artifact paths. | ||
| CIS Controls v8 | CIS-16 — Application Software Security | Supports securing the software supply chain and validating third-party components used by builds. |
| Recommendation — Apply CIS-16 practices to control third-party components and verify software integrity in pipelines. | ||
| NIST SP 800-53 Rev 5 | SA-12 — Supply Chain Protection | Addresses supply chain risks from externally sourced code and components used in the development lifecycle. |
| CM-5 — Access Restrictions for Change | Limits unauthorized changes that can alter dependency sources, build inputs, or approved package paths. | |
| Recommendation — Use SA-12 to govern trusted sourcing, provenance checks, and component integrity for pipeline dependencies. Enforce CM-5 to restrict who can modify dependency sources and build configuration. | ||
| OWASP ASVS | V15 — Secure Coding and Architecture | Covers software architecture choices that reduce dependency and supply-chain abuse opportunities. |
| Recommendation — Use V15 to design builds and dependency handling so external packages are verified before use. | ||
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org