Because runners, action permissions, and promotion credentials behave like non-human identities with scope and lifecycle. If those identities are shared across untrusted and privileged jobs, a compromise in one execution path can reach secrets, artifact signing, or deployment authority. That turns a code trust problem into an identity governance problem.
Why pipeline compromise becomes an identity problem
Pipeline compromise becomes an identity risk when the pipeline itself can act, not just build. Runners, deployment jobs, signing steps, and promotion workflows often hold short-lived or long-lived credentials, then use them to call cloud, registry, or release systems. If an attacker controls the execution path, they may inherit the authority attached to that path.
The key shift is that compromise is no longer limited to code integrity. Once a pipeline can read secrets, mint artifacts, approve releases, or deploy to production, it is operating as a non-human identity with scope, privilege, and lifecycle. That means the question is not only whether the code is trustworthy, but whether the execution identity is governed with the same discipline as any other privileged actor.
That distinction is why the definition of non-human identities matters here: a pipeline component may not look like an account, but if it authenticates, authorises, and reaches protected systems, it behaves like one.
Where the risk shows up in real pipelines
The most common failure mode is shared trust. A build runner that handles untrusted pull requests and privileged release jobs can become a bridge between two security zones. If the same environment can access signing keys, registry tokens, or deployment credentials, compromise in the low-trust path can extend into the high-trust path.
This is especially dangerous when secrets are injected broadly, credentials live too long, or artifact promotion is automatic. Attackers do not need a new privilege model if they can reuse the one already attached to the pipeline. In practice, stolen build access often turns into secret theft, artifact tampering, or release-system abuse before defenders realise the compromise has moved beyond source control.
The pattern is visible in known supply chain incidents where compromise of build or release infrastructure exposed signing material or enabled token misuse. GitHub code signing certificate theft 2022 shows how a machine account token can expose signing material, while SolarWinds supply chain compromise shows the downstream value of forged trust once build authority is reached.
How to separate code trust from authority trust
A strong pipeline design treats execution authority as a governed identity, not a convenience layer. That means separating untrusted build jobs from privileged promotion jobs, scoping credentials to the narrowest possible use, and rotating or revoking credentials on the same schedule you would apply to any sensitive identity material.
It also means inventorying which jobs can reach which systems, because the real question is blast radius. If a compromised job can only build artifacts, the incident is usually contained. If it can also publish, sign, or deploy, the compromise becomes an access-control event with governance consequences.
For broader operational maturity, use lifecycle thinking rather than one-off hardening. NHI Lifecycle Management Guide and Top 10 NHI Issues both reinforce the same control logic: provision narrowly, review regularly, and remove standing access when the job no longer needs it.
Risk and Threat Considerations
Pipeline compromise is risky because attackers often do not need to break production directly. They only need a foothold in the path that already holds trusted credentials, build permissions, or release authority. From there, the most damaging outcomes are secret extraction, artifact poisoning, signing abuse, or unauthorized deployment.
Failure mechanism: A compromised job or runner inherits the authority of the credentials it can access, especially when the same pipeline identity spans untrusted and privileged workloads.
Impact: The attacker can move from code compromise to environment compromise, which increases blast radius, weakens provenance, and can make malicious releases look legitimate.
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 addresses the attack surface, NIST SP 800-53 Rev 5 and SLSA set the technical controls, and ISO/IEC 27001:2022 defines the regulatory obligations.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-01 — Improper Offboarding | Pipeline credentials often outlive the job that uses them. |
| NHI-02 — Secret Leakage | Compromised pipelines commonly expose tokens, signing keys, and deployment secrets. | |
| NHI-05 — Overprivileged NHI | Runners and promotion jobs can carry excess authority across trust boundaries. | |
| Recommendation — Revoke pipeline credentials when jobs, runners, or release paths are retired. Restrict secret scope and monitor pipelines for unintended secret access. Reduce pipeline permissions to the minimum needed for each execution path. | ||
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | Pipeline tokens, keys, and credentials need lifecycle control and rotation. |
| AC-6 — Least Privilege | The question centers on limiting what compromised pipeline identities can do. | |
| AU-2 — Event Logging | Pipeline identity abuse requires auditable traces across build and release actions. | |
| Recommendation — Rotate and revoke pipeline authenticators on a defined lifecycle. Limit each pipeline identity to the smallest set of actions it needs. Log secret access, artifact signing, and deployment actions for review. | ||
| ISO/IEC 27001:2022 | A.5.15 — Access control | Pipeline compromise becomes an access control issue when credentials cross trust zones. |
| Recommendation — Define and enforce access boundaries for build, sign, and deploy identities. | ||
| SLSA | Supply Chain Levels for Software Artifacts | Build provenance and release integrity are central to pipeline compromise. |
| Recommendation — Use provenance controls to separate artifact integrity from pipeline execution trust. | ||
Practitioner Guidance
What to verify: Check whether build, test, and release paths use different identities, different secret scopes, and different trust boundaries. If one pipeline context can both accept untrusted input and reach privileged targets, treat that as a governance defect, not just a hardening gap.
What good looks like: Untrusted jobs can produce artifacts, but only tightly controlled promotion jobs can sign, publish, or deploy them. The credential that authorises release should have a shorter lifetime, narrower audience, and clearer owner than the credential that runs a normal build.
Practitioner takeaway: The important judgement is to assess pipeline compromise as delegated authority abuse, not just code tampering, because the security outcome is determined by what the pipeline can do after it is compromised.
Related resources from NHI Mgmt Group
- Why do exposed software supply chain packages create such a high-risk path to cloud and CI/CD compromise?
- Why do developer machines increase the risk of non-human identity compromise in software supply chain attacks?
- How do attackers turn a supply-chain incident into wider NHI compromise?
- Why do developer workspaces create supply-chain risk when identity is misvalidated?
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 October 11, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org