Join our Newsletter — 33% off our NHI Course
Home FAQ Cyber Security Why do CI/CD pipelines create outsized risk when…
Cyber Security

Why do CI/CD pipelines create outsized risk when credentials or build steps are compromised?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated September 9, 2026 Domain: Cyber Security

CI/CD pipelines concentrate privileges, secrets, and automation into a small number of execution paths. If an attacker reaches a runner, workflow file, or dependency, they can steal secrets, alter build outputs, poison caches, or pivot into downstream systems. The risk is amplified because pipelines often have broad access that exceeds the needs of any single job.

Why CI/CD Pipelines Become a High-Value Target

CI/CD systems compress build logic, release authority, and access to secrets into a small number of automated paths. That concentration is efficient, but it also means a single compromised credential, runner, or workflow file can affect source code integrity, release trust, and downstream environments at once. The issue is not only theft of secrets; it is the ability to alter what is built, signed, tested, and deployed. NIST’s Cybersecurity Framework 2.0 is relevant here because the problem spans governance, protection, detection, and recovery across the full delivery chain.

Teams often underestimate how much implicit trust a pipeline inherits from the repository, the runner, the artifact store, and the identity used to invoke each step. If any one of those trust points is weaker than the others, an attacker does not need to break every layer; they only need to compromise the most permissive one and then reuse the pipeline’s own authority to move onward. In practice, many security teams encounter that concentration only after a build account, secret, or dependency has already been abused.

How Compromise Spreads Through the Build Path

A pipeline is dangerous when it can both read sensitive material and make trusted changes. Build steps commonly fetch tokens, sign artifacts, pull dependencies, push images, and publish packages. If an attacker controls a step in that chain, they can use the pipeline’s normal privileges to produce an outcome that looks legitimate to downstream consumers. That is why pipeline compromise is often a trust problem, not just a host compromise problem.

The main failure patterns are straightforward:

  • A workflow file or build script is modified so the pipeline exfiltrates secrets during execution.
  • A runner or shared build host is compromised so cached credentials, environment variables, or signing material can be reused.
  • A dependency or package source is poisoned so the build incorporates malicious code before release.
  • An attacker alters an artifact after build but before deployment when integrity checks are weak or inconsistent.

These mechanics are especially severe when jobs run with broad, standing access instead of narrowly scoped, short-lived permissions. The more a pipeline can do, the more useful it becomes to an intruder, because the attacker can turn ordinary automation into a relay for privilege, persistence, and distribution. This is also where identity and access design matters in a practical sense: if build credentials are long-lived, shared across jobs, or reused across environments, the compromise surface expands well beyond the original pipeline.

For supply-chain and release assurance, the most useful external references are often the ones that speak directly to the delivery chain itself, such as the OWASP Non-Human Identity Top 10 when machine credentials and automation accounts are part of the pipeline, because the control problem is really about how non-human execution authority is issued, used, and revoked. Where the build process also depends on identity proofing for operators, maintainers, or release approvers, the NIST SP 800-63 Digital Identity Guidelines can help distinguish human identity assurance from machine-to-machine trust, which are often conflated in release workflows.

Where the Risk Profile Changes, and What Teams Should Watch For

Tighter pipeline controls often increase operational overhead, so organisations have to balance release speed against the loss of implicit trust in automation. That tradeoff becomes most visible when teams support multiple environments, many repositories, or frequent deployments, because convenience pressures tend to push them toward reusable secrets and shared runners.

One important edge case is that not every pipeline compromise starts with stolen credentials. A malicious commit, a compromised dependency, or a tampered artifact can produce the same outcome if the build system trusts inputs too early. Another common variation is build isolation: ephemeral runners reduce persistence, but they do not eliminate risk if the job itself can still access high-value secrets or sign output. Guidance is not fully settled on how much trust should be placed in shared hosted runners versus self-managed build infrastructure, so organisations should treat that as an active governance decision rather than a purely engineering preference.

The practical difference between a manageable pipeline and an outsized one is usually scope. When the same build path can reach source control, secret stores, registries, and production deployment, compromise at any one point can cascade. When those duties are separated, instrumented, and time-bound, the attack surface is less concentrated and recovery is more realistic.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATT&CK address the attack and risk surface, while CIS Controls v8 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
CIS Controls v86 — Access Control ManagementCI/CD risk centers on overly broad and persistent access.
Recommendation — Restrict pipeline permissions to the minimum required and revoke unused automation access paths.
MITRE ATT&CKT1552 — Unsecured CredentialsCompromise often yields secrets from build environments or workflow state.
T1608 — Stage CapabilitiesAttackers may stage malicious build inputs or artifacts through trusted delivery paths.
Recommendation — Hunt for exposed secrets in build logs, runner environments, and repository-adjacent storage. Inspect build inputs and artifact promotion for staging activity before release.
NIST CSF 2.0PR.AA — Identity Management, Authentication, and Access ControlThe question is about concentrated authorization in delivery automation.
PR.DS — Data SecurityPipelines expose secrets, source, and artifacts that must be protected in transit and at rest.
Recommendation — Apply least-privilege access and separate identities for build, sign, and deploy functions. Protect secrets and artifacts with encryption, integrity checks, and controlled handling.

Practitioner Guidance

What to prioritise: Treat the highest-risk pipeline as the one that can both access secrets and publish trusted output. That combination deserves stronger review than a pipeline that only builds or only tests, because the ability to change artifacts is what turns compromise into downstream impact.

What to verify: Confirm that build credentials are job-scoped, short-lived, and separated by environment and purpose. The most dangerous assumption is that a single automation identity can safely carry many duties just because it has been convenient so far.

What good looks like: A mature pipeline leaves a clear trail for who changed the workflow, which identity executed the job, which secrets were exposed to that job, and which artifact was promoted. If any of those questions cannot be answered quickly, the pipeline is still relying on trust that is larger than its control model.

Common mistake: Teams often harden the runner while leaving the workflow permissions, dependency inputs, and release approvals too broad. That narrows one attack path but leaves the underlying trust concentration intact.

Practitioner takeaway: Reduce the number of places where the pipeline can both authenticate and make trusted change, because every extra capability inside the same execution path amplifies the blast radius of a single compromise.

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 9, 2026.
    NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org