Because they combine authentication and change authority in a runtime identity that is often reused across pushes. If the same credential can both start the job and write policy state, compromise or misuse of that pipeline path can translate into unauthorised policy changes, not just build leakage.
Why write-capable CI/CD credentials are a policy tampering risk
Write access turns a pipeline credential from a delivery enabler into a control-plane authority. If the same runtime identity can start trusted jobs and also modify the policy state those jobs enforce, an attacker who steals it can change the rules that were supposed to contain them. That is why policy write paths deserve the same scrutiny as production access paths.
One useful way to think about the risk is that the credential is not just proving “who” the pipeline is, it is also deciding “what it is allowed to change.” In CI/CD systems, that often includes branches, workflow files, deployment rules, approval logic, signing settings, or release gating. The more of those controls a single credential can edit, the easier it is to convert a narrow compromise into durable control.
That is why pipeline identity and secret handling should be treated as part of the control plane, not just build hygiene. NHIMG’s CI/CD Pipeline Identity Security Guide is the most direct place to see how federation, token permissions, pinned actions, and publishing boundaries change the blast radius of pipeline identities. For secret exposure patterns, the Guide to the Secret Sprawl Challenge shows how CI/CD secrets become reachable in the first place, and the API Key Management Guide is useful when the write-capable credential is effectively an API credential with lifecycle and revocation risk.
How tampering happens in practice
Policy tampering usually follows a simple pattern: a credential that was issued for automation is reused, over-scoped, or stolen, and then it is used to alter the policy source of truth. In Git-based pipelines that can mean rewriting workflow files, altering protected branch rules, weakening environment approvals, or changing deployment conditions so later runs inherit the weaker policy.
The important detail is that policy changes are often themselves codified as code or configuration. That makes them easy to commit, easy to merge, and easy to hide inside otherwise legitimate pipeline activity. If the credential can write both the policy artifact and the build or release state, the attacker does not need a separate administrator path. The pipeline becomes the policy editor.
Write-capable credentials also create a persistence advantage. Once an attacker changes the policy, they may not need the original secret anymore because the weakened policy can keep authorising future activity. That is a stronger outcome than a one-time build leak. It is why repository and pipeline compromise often turns into governance compromise.
Which CI/CD control boundaries matter most
Three boundaries matter most: the boundary between build and governance, the boundary between read and write, and the boundary between automation and human approval. If those are blurred, a credential that was meant to trigger jobs can also alter the conditions under which jobs are trusted.
In mature setups, the safest pattern is to separate the identity that runs the build from the identity that approves or changes policy state. Short-lived, narrowly scoped credentials reduce the chance that a single compromise can change both code and control logic. For a broader view of secrets lifecycle and rotation trade-offs, Guide to NHI Rotation Challenges is helpful, especially where rotation must not break deployment dependencies.
The external references reinforce the same boundary. OWASP Non-Human Identity Top 10 is useful because overprivilege, long-lived secrets, and insecure authentication are exactly the conditions that let a CI/CD credential become a policy-writing foothold. For broader supply-chain integrity, SLSA matters because provenance and trusted build boundaries reduce the chance that a compromised pipeline can silently alter what gets shipped.
Risk and Threat Considerations
Write-capable CI/CD credentials increase exposure because they collapse separate duties into one token or secret. If that credential is stolen, reused, or invoked from an untrusted job context, the attacker can do more than observe builds, they can alter policy artifacts, weaken approvals, and create persistent trust changes that survive the original compromise.
Failure mechanism: The runtime identity that starts the pipeline also has permission to modify the policy source, so a compromise in the delivery path becomes a policy-authoring path.
Impact: Unauthorized changes can broaden access, weaken release gates, disable controls, or create persistence that allows later malicious changes to 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 and risk surface, while NIST SP 800-53 Rev 5 and SLSA set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-05 — Overprivileged NHI | Write-capable CI/CD credentials can become overprivileged when they can change policy state. |
| NHI-02 — Secret Leakage | Compromise often starts with exposed CI/CD secrets or tokens used by the pipeline. | |
| NHI-07 — Long-Lived Secrets | Long-lived pipeline secrets increase the window in which write access can be abused for tampering. | |
| Recommendation — Restrict pipeline credentials so they cannot modify policy or approval controls they should only consume. Harden secret storage and rotation to reduce the chance that pipeline credentials are stolen and reused. Replace durable pipeline secrets with short-lived credentials and revoke them quickly when scope changes. | ||
| NIST SP 800-53 Rev 5 | AC-6 — Least Privilege | Least privilege directly limits whether a CI/CD identity can both deploy and alter policy controls. |
| IA-5 — Authenticator Management | CI/CD tokens and secrets need lifecycle control because misuse of a writable authenticator drives tampering. | |
| CM-3 — Configuration Change Control | Policy tampering is fundamentally an uncontrolled change to security-relevant configuration. | |
| Recommendation — Constrain pipeline identities to the minimum permissions needed for execution only. Rotate, protect, and revoke pipeline authenticators as soon as their role or scope changes. Require controlled review and approval for changes to pipeline policy and release configuration. | ||
| SLSA | Supply-chain integrity | Pipeline write access can undermine provenance and integrity of the delivered artifact chain. |
| Recommendation — Preserve build provenance and separate policy-changing permissions from artifact-producing permissions. | ||
Practitioner Guidance
What to prioritise: Separate credentials that execute pipelines from credentials that can change policy state. If one secret can both deploy and rewrite the rules for deployment, treat that as a high-risk design even before any incident is observed.
What to verify: Check whether the pipeline identity can write to branch protection, workflow definitions, environment approvals, signing settings, or release policy files. If yes, confirm that those writes require a different, tightly governed approval path.
Common mistake: Teams often harden the build step but leave policy files and governance settings writable by the same automation path. That preserves a direct route from secret compromise to policy tampering.
Practitioner takeaway: The key question is not whether CI/CD credentials are powerful, but whether they are powerful in a way that lets a compromise rewrite the controls meant to contain it.
Related resources from NHI Mgmt Group
- Why do CI/CD workflows with standing write permissions increase supply chain risk?
- Why do locally stored cloud credentials increase the risk of CI/CD compromise?
- Why do standing credentials and weak access controls increase risk in CI/CD environments?
- Why do CI/CD policy upload jobs increase secret exposure risk?