Join our Newsletter — 33% off our NHI Course

Mutable Dependency Risk

Mutable dependency risk arises when a trusted tag, package version, or action reference can be changed after approval. That makes the security decision unstable because the thing that was reviewed is no longer necessarily the thing that executes.

Expanded Definition

mutable dependency risk appears when a review or approval is tied to a moving target rather than an immutable artifact. In software supply chains, that can mean a package tag that is later repointed, a container reference that changes content, or an action reference that pulls different code over time. The security concern is not just trust in the dependency itself, but trust in the stability of what was reviewed. This matters especially in CI/CD and agentic execution paths where one changed reference can alter build output, runtime behavior, or privileged automation without an obvious change in policy.

Definitions vary across vendors, but the practical NHI security view is consistent: if an autonomous workflow can execute code that is not cryptographically pinned or integrity-verified, the approval decision is fragile. The issue is closely related to supply chain trust controls discussed in the NIST Cybersecurity Framework 2.0, but it is more specific than generic third-party risk because it focuses on reference mutability after review. The most common misapplication is treating a semantic version or floating tag as a fixed approval target, which occurs when teams assume a human-reviewed dependency will remain unchanged after it is admitted into a pipeline.

Examples and Use Cases

Implementing immutable dependency controls rigorously often introduces release friction, requiring organisations to weigh deployment speed against the assurance that reviewed code is the code that actually runs.

  • A GitHub Action is approved by name and tag, then the maintainer repoints that tag to a new commit. This is exactly the kind of drift highlighted by the OWASP NHI Top 10, where execution context can change after trust is established.
  • A Python or JavaScript package is installed from a version range instead of a pinned digest, so the next build pulls a different artifact than the one validated in testing. The LiteLLM PyPI package breach shows why package reference stability matters when credentials and automation are exposed to the dependency chain.
  • An AI agent workflow calls a tool wrapper that depends on a mutable container tag. The model’s tool access may be unchanged, but the executable behind it is not, which creates a gap between governance intent and runtime reality.
  • A platform team approves an internal build image by tag across environments, then later discovers that the same tag now resolves to an image with different libraries, permissions, or startup scripts.
  • A maintainer rotates a release branch or action ref after a security review, making a previously safe approval stale even though no policy document was updated.

For broader identity and secret handling context, the Ultimate Guide to NHIs — Key Challenges and Risks is a useful companion reference, and the NIST Cybersecurity Framework 2.0 helps anchor the governance side of change control.

Why It Matters in NHI Security

Mutable dependency risk is dangerous because NHIs often execute with broad automation privileges, embedded secrets, and minimal human oversight. If a reviewed dependency can silently change, then a service account, pipeline token, or agent tool may end up executing code that was never assessed under the original access decision. That creates a direct path from software supply chain weakness to privilege misuse, secret exposure, and persistence. NHI governance becomes weaker when teams assume that approval of a reference is equivalent to approval of the artifact behind it.

This is not a hypothetical edge case. NHI Mgmt Group research shows that 96% of organisations store secrets outside of secrets managers in vulnerable locations, and 79% have experienced secrets leaks, with 77% causing tangible damage, according to the Ultimate Guide to NHIs — Why NHI Security Matters Now. In that environment, a mutable dependency can turn a routine build or agent action into an unauthorised execution path before anyone notices. Organisations typically encounter the consequence only after a build is compromised or an agent behaves unexpectedly, at which point mutable dependency risk becomes operationally unavoidable to address.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 and OWASP Agentic AI Top 10 address the attack and risk surface, while NIST CSF 2.0, NIST Zero Trust (SP 800-207) and NIST AI RMF set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-02 Addresses insecure dependency and secret handling patterns in NHI workflows.
OWASP Agentic AI Top 10 Highlights tool and supply-chain trust issues for autonomous agent execution.
NIST CSF 2.0 PR.DS-6 Supports integrity protection for software and firmware supply chain components.
NIST Zero Trust (SP 800-207) SA-3 Zero Trust requires continuously verifying what is actually executing, not just what was approved.
NIST AI RMF MAP Risk mapping must include supply-chain mutability that can alter AI system behavior.

Pin executable references, verify artifacts, and reject mutable tags in approved NHI pipelines.