Subscribe to the Non-Human & AI Identity Journal

What breaks when non-human identities are not governed in software supply chains?

When non-human identities are not governed, attackers can use tokens, service accounts, and secrets to reach build, release, and data systems that were never meant to be exposed together. The result is hidden persistent access, broad blast radius, and compromise that can spread through trusted automation before anyone notices.

Why This Matters for Security Teams

Software supply chains depend on non-human identities at every stage: source control, build runners, artifact registries, deployment tools, scanners, and data pipelines. When those identities are not governed, a single exposed token can become a path from code to production and then into downstream systems. That is why this is not just a secrets-management problem. It is an access, trust, and blast-radius problem that crosses the entire delivery chain.

Current guidance from the OWASP Non-Human Identity Top 10 and the NIST Cybersecurity Framework 2.0 both point toward least privilege, lifecycle control, and continuous monitoring, but supply chains add a harder reality: automation often reuses the same identity across many services. NHIMG research shows how this turns into real compromise, including the Reviewdog GitHub Action supply chain attack, where trusted workflow automation became a secret-exposure pathway.

In practice, many security teams discover the failure only after a runner, workflow, or package maintainer account has already been used to move laterally through systems that were assumed to be isolated.

How It Works in Practice

Governance starts by treating every machine account, token, workload credential, and automation secret as an identity with a lifecycle, an owner, and a scope. In a healthy supply chain, build jobs should not use long-lived credentials copied into pipelines. Instead, they should receive short-lived, task-bound access, ideally issued just in time and revoked automatically when the job ends. That limits how far an attacker can move if one runner, repo secret, or signing token is exposed.

Practitioners usually need three control layers:

  • Inventory: know which identities touch source, build, test, release, signing, and deployment steps.
  • Constraining access: bind each identity to one workload, one environment, or one phase of the pipeline.
  • Revocation and rotation: remove standing access and replace static secrets with ephemeral credentials wherever possible.

This approach aligns with the lifecycle emphasis in NHIMG’s Ultimate Guide to NHIs — Lifecycle Processes for Managing NHIs, and it is reinforced by breach patterns documented in the 52 NHI breaches Report. Where possible, workload identity should replace static shared secrets so the platform can prove what the workload is, not just what credential it knows. That is also consistent with supply-chain hardening guidance in OWASP Non-Human Identity Top 10 and the asset, access, and continuous monitoring practices in the NIST Cybersecurity Framework 2.0.

These controls tend to break down when CI/CD runners, package publishers, and deployment bots share broad credentials across multiple repositories because compromise in one stage immediately becomes access in all of them.

Common Variations and Edge Cases

Tighter NHI governance often increases delivery overhead, so organisations have to balance speed against containment. That tradeoff is real in high-velocity pipelines, especially where legacy tooling cannot issue ephemeral credentials or where external SaaS services only support static API keys.

Best practice is evolving, but current guidance suggests prioritising the identities with the largest blast radius first: signing keys, release automation, cloud deployers, artifact publishers, and secret-scanning exemptions. Public repositories are not the only concern. Private repos, internal package feeds, chat systems, and ticketing tools frequently store or reference the same credentials, which means a supply chain compromise can begin outside code and still reach production.

The hardest edge case is trusted automation that touches multiple trust zones. A single CI job may need read access to source, write access to an artifact registry, and deploy access to a production cluster. That does not mean one standing identity is acceptable; it means the workflow should be split, each step should receive its own short-lived credential, and approvals should be evaluated at runtime. The Top 10 NHI Issues and The State of Secrets in AppSec both show that fragmented secrets ownership and slow remediation make these edge cases persist far longer than teams expect.

Where environments rely on shared runners, ad hoc scripts, or manually copied tokens, governance breaks down because there is no reliable boundary between the identity that performs work and the systems that it can reach.

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 address the attack and risk surface, while NIST CSF 2.0 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-03 Static secrets in pipelines need rotation and revocation discipline.
NIST CSF 2.0 PR.AC-4 Supply chains need least privilege for machine identities and workflows.
NIST AI RMF Governance should account for automation risk across the full lifecycle.

Replace standing pipeline secrets with short-lived credentials and enforce rotation on every release path.