Subscribe to the Non-Human & AI Identity Journal

What breaks when CI/CD access is not tightly governed?

Build and deployment systems become an easy path to bypass application defenses. If tokens, service accounts, or deployment credentials are over-privileged, an attacker or careless operator can alter what gets shipped, inject malicious changes, or expose sensitive data. Least privilege and credential rotation are essential in those environments.

Why This Matters for Security Teams

CI/CD access is not just an engineering convenience, it is a production control plane. When tokens, runners, service accounts, and deployment credentials are loosely governed, the pipeline can become a direct route into source code, artifact stores, cloud environments, and secrets management. That turns routine automation into a high-impact trust boundary that attackers actively target. The NIST Cybersecurity Framework 2.0 frames this as a governance and protection problem, not merely a tooling problem.

The common mistake is assuming CI/CD permissions are low-risk because they are machine-to-machine. In practice, these identities often have broader reach than human administrators, especially in fast-moving delivery environments where temporary exceptions become permanent. If those credentials can create infrastructure, read secrets, or approve deployments, a compromise can move from source control into runtime very quickly. In practice, many security teams encounter CI/CD abuse only after a tampered build, a leaked token, or an unexpected production change has already occurred, rather than through intentional pipeline governance.

How It Works in Practice

Tight governance means treating every pipeline identity as a privileged non-human identity with a defined purpose, expiry, and scope. The strongest control sets separate build, test, release, and infrastructure roles so one credential cannot authorise the full path from code commit to production deployment. This aligns well with the OWASP Non-Human Identity Top 10, which highlights inventory, rotation, secret storage, and privilege sprawl as recurring failure points.

  • Use short-lived credentials where possible, not static tokens embedded in pipelines.
  • Bind each service account or deploy key to one system, one repo, or one environment.
  • Store secrets in a dedicated secrets manager and restrict read access to the minimum job step.
  • Require approvals for production release paths and protect those approvals with separate identities.
  • Log pipeline actions in a SIEM so build, release, and infrastructure changes can be correlated.

Pipeline governance should also extend to the artifacts themselves. Signed builds, verified dependencies, and provenance checks help prevent malicious code from being substituted after review but before release. NIST SP 800-53 Rev 5 Security and Privacy Controls is useful here because it maps well to access enforcement, audit logging, configuration control, and system integrity expectations. These controls tend to break down when organisations share one deployment identity across multiple repositories and environments because attribution, rotation, and revocation become operationally ambiguous.

Common Variations and Edge Cases

Tighter CI/CD governance often increases delivery friction, requiring organisations to balance release speed against change assurance. That tradeoff is real, especially where teams rely on ephemeral branches, frequent hotfixes, or multi-account cloud deployments. Best practice is evolving, but there is no universal standard for exactly how much release friction is acceptable; the right answer depends on the blast radius of the pipeline and the sensitivity of the systems it can reach.

Some environments need additional caution. Self-hosted runners expand the attack surface because the build host may have network access, persistent state, or direct access to internal services. Monorepos can make permission scoping harder because one pipeline may touch many applications with different risk levels. For regulated workloads, governance should also reflect traceability and change accountability, especially where code changes affect financial, identity, or customer data flows. Security teams should treat exceptions as time-bound and recorded, not as informal fixes that survive the incident review.

Where this guidance becomes less effective is in highly dynamic platform engineering setups that allow developers to create pipelines on demand without central policy checks, because identities and permissions multiply faster than reviews can keep up.

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 SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
NIST CSF 2.0 PR.AC-4 Pipeline identities need least-privilege access to code, secrets, and deployment targets.
OWASP Non-Human Identity Top 10 CI/CD tokens and service accounts are non-human identities that commonly go unmanaged.
NIST SP 800-53 Rev 5 AC-2 Account lifecycle controls are essential for service accounts and deployment credentials.

Inventory every pipeline identity, rotate secrets, and remove standing access wherever possible.