When identity is too broad, one job can inherit access intended for another job on the same cluster. That creates privilege spillover, weakens separation between workloads, and makes it difficult to prove which pipeline actually requested a given downstream action.
Why This Matters for Security Teams
When pipeline identity is too broad, the blast radius is no longer limited to one workflow. A build job, release job, or test job can inherit permissions that were intended for a different stage, a different repository, or a different environment. That breaks separation of duties, makes incident scoping harder, and turns ordinary automation into a lateral-movement path. The practical risk is not just unauthorised reads and writes; it is also audit ambiguity, where downstream systems cannot prove which pipeline actually initiated the action.
That problem shows up quickly in secret-heavy environments. NHIMG’s Ultimate Guide to NHIs notes that 97% of NHIs carry excessive privileges, which is exactly the condition that makes pipeline identity spillover more damaging. OWASP’s OWASP Non-Human Identity Top 10 also frames over-privileged machine identities as a core design flaw, not a minor hardening issue. In practice, many security teams discover the scope problem only after an unexpected deploy, secret read, or artifact tamper has already occurred, rather than through intentional access design.
How It Works in Practice
The fix starts with treating each pipeline step as its own workload identity, not as a shared service account with convenience access. A CI job that compiles code should not automatically inherit the same permissions as the job that signs releases. Current guidance suggests combining tight RBAC boundaries with runtime policy checks so the pipeline gets only the access needed for the exact task, at the exact moment it is needed. For higher-risk actions, JIT credentials and ephemeral secrets reduce the time window in which stolen tokens remain useful.
That model works best when identity is cryptographic and contextual. Standards such as SPIFFE and OIDC can bind a workload to a verifiable identity, while policy engines evaluate intent at request time rather than relying on static allowlists. NIST’s OWASP Non-Human Identity Top 10 is useful here because it reinforces the need for least privilege, short-lived credentials, and clear ownership of non-human access. NHIMG’s CI/CD pipeline exploitation case study and Guide to the Secret Sprawl Challenge show how quickly broad pipeline permissions turn into secret exposure and downstream abuse.
- Split identities by stage, repository, and environment.
- Issue short-lived tokens per job, not reusable credentials per cluster.
- Authorize actions by intent, for example deploy, sign, or publish, rather than by blanket role.
- Revoke or expire credentials automatically when the task ends.
- Log the originating workload identity so downstream actions remain attributable.
These controls tend to break down when legacy runners share a single long-lived token across multiple projects because one compromised job can then impersonate every other job that trusts the same credential.
Common Variations and Edge Cases
Tighter pipeline identity often increases operational overhead, requiring organisations to balance stronger isolation against build complexity and slower onboarding. That tradeoff is real, especially in monorepos, shared runners, and release trains where teams want convenience and speed. There is no universal standard for this yet, but best practice is evolving toward context-aware authorisation and zero standing privilege for high-impact pipeline actions.
Edge cases are common. A shared deployment service may need access to multiple clusters, but it should still use distinct identities per target rather than one global token. Multi-agent or highly automated delivery systems are even harder because the workflow can branch dynamically, chain tools, and request new privileges mid-run. For those environments, the question is not whether a role exists; it is whether the task’s current intent justifies the next permission. NHIMG’s 52 NHI Breaches Analysis and Reviewdog GitHub Action supply chain attack both illustrate how machine identity mistakes compound when trust is inherited across tools. These issues become especially severe in cross-tenant runners and third-party build systems because identity boundaries are harder to verify and revoke quickly.
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 Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-01 | Addresses overbroad machine identity scope and least-privilege design. |
| OWASP Agentic AI Top 10 | A-02 | Dynamic authorisation is critical when autonomous workflows can request new access mid-run. |
| NIST Zero Trust (SP 800-207) | PR.AC-4 | Zero Trust requires continuous verification of workload identity and entitlement scope. |
Give each pipeline step a distinct identity with the minimum permissions needed for that task.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on June 4, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org