Join our Newsletter — 33% off our NHI Course
Home FAQ Architecture & Implementation Why do CI/CD pipelines create such high risk…
Architecture & Implementation

Why do CI/CD pipelines create such high risk when access controls are too broad?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated September 1, 2026 Domain: Architecture & Implementation

CI/CD pipelines combine code, credentials, integrations, and deployment rights in one highly automated path, so broad access can turn a single compromise into code injection, data theft, or workflow disruption. When secrets, build systems, and production deployment controls are overexposed, attackers gain a faster route from initial access to meaningful impact.

Why Broad Pipeline Access Turns Small Mistakes into Major Incidents

CI/CD pipelines are not just automation tools. They are privileged execution paths that connect source control, build systems, secrets, testing, artifact storage, and production deployment. When access is broad, a single stolen token or compromised account can move from code review into build tampering, secret extraction, or release manipulation. That is why pipeline access needs to be treated as a high-value control plane, not a convenience layer.

NHI Management Group research on the State of Secrets Sprawl 2026 found that 59% of compromised machines in a major 2025 supply chain attack were CI/CD runners rather than personal workstations. That matters because runners, bots, and deployment identities often inherit more power than human operators realise. The operational risk is not just theft of a credential, but abuse of the automation path itself.

Broader exposure also widens the blast radius of secret leakage. The CI/CD pipeline exploitation case study and the OWASP Non-Human Identity Top 10 both reinforce the same pattern: once pipeline identities can reach too many systems, attackers do not need to break controls one by one. In practice, many security teams discover that their pipeline was effectively a hidden superuser after a release issue or secret leak has already become an incident.

How the Attack Path Expands Inside a Pipeline

Broad access makes CI/CD dangerous because pipelines concentrate multiple trust relationships into one workflow. A build job may read source code, fetch private dependencies, call cloud APIs, sign artifacts, and deploy to production. If any one of those steps uses standing credentials, an attacker who reaches the pipeline can often pivot across the whole chain.

The practical fix is to narrow every identity used by the pipeline and make it task-bound. Current guidance suggests three controls working together: least privilege, short-lived credentials, and runtime policy checks. Access should be issued to the specific job, for the specific repository or environment, and revoked as soon as the job ends. Long-lived static secrets are especially risky here because they persist across many builds and are reused by many actors.

  • Use separate identities for build, test, sign, and deploy stages.
  • Prefer ephemeral tokens over shared secrets stored in variables or files.
  • Limit runner permissions to only the repositories, branches, and environments required.
  • Evaluate deployment approvals and secret access at request time, not only at configuration time.

The NIST Cybersecurity Framework 2.0 and NIST SP 800-53 Rev 5 Security and Privacy Controls both support this direction through access control, auditability, and configuration discipline. The Guide to the Secret Sprawl Challenge shows why this matters operationally: secrets do not stay contained in source code, and pipeline-adjacent systems often become the real leakage point. These controls tend to break down when organisations share runners across projects because shared execution environments erase the separation that least privilege depends on.

Where the Standard Model Breaks Down in Real Environments

Tighter pipeline access often increases operational overhead, requiring organisations to balance delivery speed against stronger isolation and approval steps. That tradeoff becomes most visible in fast-moving environments with monorepos, self-hosted runners, and many ephemeral environments, where teams are tempted to reuse credentials for convenience.

There is no universal standard for every pipeline design yet, but current guidance suggests treating production deployment rights, signing keys, and secrets retrieval as separate trust zones. The strongest controls are often needed where pipelines interact with third-party actions, external package registries, or AI-assisted development tools, because those dependencies can introduce unexpected execution paths. The Reviewdog GitHub Action supply chain attack illustrates how quickly a trusted automation component can become a credential exposure event.

One NHIMG stat is especially relevant here: 64% of valid secrets leaked in 2022 are still valid and exploitable today. That means detection alone is not enough. When pipelines are broad, stale secrets remain useful long after the original leak, so revocation and rotation must be automated as part of the response path, not handled as a separate cleanup task.

In practice, broad pipeline access fails most often in organisations that optimise for delivery velocity before they have segmented identities, ephemeral credentials, and environment-specific approvals.

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 CSA MAESTRO address the attack and risk surface, while NIST AI RMF, NIST CSF 2.0 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-03Addresses overprivileged non-human identities in CI/CD pipelines.
CSA MAESTROIAM-03Covers identity isolation and least privilege for autonomous automation.
NIST AI RMFSupports governance of automated systems that can act unpredictably at runtime.
NIST CSF 2.0PR.AC-4Directly relates to access management and least privilege in pipelines.
NIST Zero Trust (SP 800-207)SC-identityZero trust limits lateral movement when pipeline identities are compromised.

Apply runtime governance and accountability to pipeline automation and decision points.

Deepen Your Knowledge

Sign up to our weekly newsletter — get 33% off our NHI Foundation Level Course

    NHIMG Editorial Note
    Reviewed and updated by the NHIMG editorial team on September 1, 2026.
    NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org