Security teams should treat dependency governance as a release-control problem, not just a scanning problem. That means mapping direct and transitive dependencies, enforcing package provenance before download, and tying every approved component to an accountable owner. The goal is to prevent untrusted code from entering the pipeline in the first place.
Why This Matters for Security Teams
Open source dependency governance affects the integrity of the software supply chain, not just developer convenience. A package pulled into CI/CD can introduce vulnerable code, malicious updates, or hidden transitive dependencies that bypass normal review. That makes dependency policy a release decision, a third-party risk decision, and a detection problem at the same time. Guidance from the NIST Cybersecurity Framework 2.0 supports treating this as a lifecycle control issue rather than a one-time scan.
The common mistake is assuming that a clean dependency scan equals a safe build. It does not. Scanners can flag known vulnerabilities, but they do not prove provenance, publisher trust, or whether a dependency was swapped after approval. Security teams also miss the fact that CI/CD systems often have broad build-time credentials, which makes a compromised package registry or install step especially dangerous. In practice, many security teams encounter dependency abuse only after a build artifact has already been published, rather than through intentional release gates.
How It Works in Practice
Effective governance starts with inventory and policy. Security teams should require a complete software bill of materials for each build, distinguish direct from transitive dependencies, and define which package sources, versions, and signing methods are acceptable. Where possible, provenance checks should happen before retrieval so the pipeline rejects untrusted packages before they can execute. That includes validating repository ownership, checksum integrity, signing attestations, and internal allowlists for critical components.
Operationally, the control set should be embedded into the pipeline rather than bolted on after build completion. A practical model is:
- Block downloads from unknown or unsigned sources.
- Pin versions or ranges for critical packages to reduce surprise updates.
- Require approval for new top-level dependencies and high-risk transitive additions.
- Link each approved package to a named owner for review and emergency response.
- Feed dependency alerts into change management, not just the developer backlog.
Teams should also separate vulnerability severity from release risk. A dependency may be low severity in a lab but unacceptable in a production path that processes secrets, payment data, or privileged automation. This is where software supply chain controls intersect with identity governance: build systems, signing keys, package registries, and release automation often behave like non-human identities and need the same lifecycle discipline as privileged service accounts. For implementation detail, the NIST Secure Software Development Framework is a useful reference point for embedding secure development practices into release workflows.
These controls tend to break down in fast-moving monorepos with many language ecosystems because ownership, provenance, and version policy become inconsistent across build paths.
Common Variations and Edge Cases
Tighter dependency control often increases build friction and review overhead, requiring organisations to balance release speed against supply chain assurance. Best practice is evolving on how prescriptive these checks should be for every repository, especially where teams use polyglot stacks, internal mirrors, or ephemeral build agents. There is no universal standard for this yet, so the policy should scale with application criticality rather than apply one rigid rule everywhere.
Edge cases matter. Internal package mirrors can improve control, but they also create a trust concentration point that must be protected and monitored. Private forks of open source projects may be necessary for patching, yet they complicate provenance and patch tracking. Automated dependency update tools can reduce lag, but they should not be allowed to merge changes without policy checks and owner approval. For higher-risk environments, align release gating with OWASP supply chain guidance and consider whether the pipeline credentials themselves are managed as privileged non-human identities. The right answer is usually layered control: provenance, policy, approval, and monitoring working together.
Where organisations struggle most is in build farms that reuse long-lived tokens and allow ad hoc package source exceptions, because that combination weakens both traceability and enforcement.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Agentic AI Top 10 address the attack and risk surface, while NIST CSF 2.0, NIST AI RMF and NIST SP 800-63 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST CSF 2.0 | PR.DS-6 | Dependency provenance and integrity protect software assets in the supply chain. |
| NIST AI RMF | AI-driven dependency checks still need governance over data, provenance, and accountability. | |
| OWASP Agentic AI Top 10 | Agentic build automation can execute untrusted dependency actions without strong guardrails. | |
| NIST SP 800-63 | AAL2 | Build and release identities need strong authentication before they can fetch or publish code. |
Use AI RMF governance practices to ensure automated dependency decisions remain explainable and accountable.
Related resources from NHI Mgmt Group
- How should security teams govern credentials used by CI/CD pipelines?
- How should teams enforce open-source licence compliance in CI/CD pipelines?
- How should security teams govern machine credentials across cloud and CI/CD environments?
- How should security teams handle protobuf vulnerabilities in CI/CD pipelines?
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on August 2, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org