Join our Newsletter — 33% off our NHI Course
Home› FAQ› Threats, Abuse & Incident Response› Why do CI/CD footholds often lead to credential…
Threats, Abuse & Incident Response

Why do CI/CD footholds often lead to credential abuse and lateral movement?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated October 12, 2026 Domain: Threats, Abuse & Incident Response

CI/CD footholds often sit beside tokens, cloud keys, signing material, and service credentials, so compromise of the workflow can expose more than code. Attackers then reuse that trust to pivot into adjacent systems. The risk rises when a workflow can read secrets, call protected endpoints, or impersonate deployment identities.

Why CI/CD footholds become a credential-rich beachhead

CI/CD systems are not just build machinery, they are trusted execution environments. Once an attacker reaches the pipeline, they often land near the same material defenders use to deploy, sign, test, and automate production changes, so the foothold can quickly become a credential problem as much as a code problem.

That matters because pipeline trust is usually broad by design. A workflow that can authenticate to source control, cloud services, artifact stores, or deployment targets can also inherit the reach of those connections, which makes the initial compromise a gateway to adjacent systems rather than a contained event.

CI/CD compromise also tends to be high value because it can expose exposed secrets in CI/CD environments and create a path from build access to broader environment access. That is why the attacker objective is often not the pipeline itself, but the tokens, keys, and credentials the pipeline can read or mint on demand.

How footholds turn into credential abuse and lateral movement

The common escalation path is simple: obtain pipeline access, enumerate what the workflow can reach, and reuse those trust relationships elsewhere. If a job can read secret variables, pull signing material, call protected endpoints, or invoke cloud APIs, the attacker can often export those values and authenticate as the pipeline or as a dependent deployment identity.

That reuse is what turns one foothold into multiple pivots. A single workflow token may be enough to reach artifact storage, cloud control planes, container registries, or internal automation services, and those connections can reveal more credentials or permissions in turn. The compromise therefore spreads through the trust graph, not just through the build server.

Recent breaches show the pattern clearly. NHIMG’s reviewdog Action compromise 2025 shows how a poisoned action can leak CI secrets, while CI/CD pipeline exploitation case study shows how pipeline access can be used to modify execution and plant attacker-controlled access on a server. Both illustrate the same failure mode: trusted automation becomes an execution path into adjacent systems.

Which pipeline properties make the blast radius worse

The most dangerous pipelines are the ones that combine broad permissions with reusable credentials and weak separation between build stages. Long-lived secrets, shared service accounts, and credentials reused across environments make it easier for an attacker to move from one system to another without needing fresh exploitation at each step.

That is why environment boundaries matter. If the same workflow identity can touch development, staging, and production, compromise in one area can become lateral movement into the others. The problem is not only whether a secret exists, but whether it grants reach into a control plane, a deployment path, or another trusted automation plane.

Tooling that automates release operations can also amplify the blast radius when it is allowed to impersonate deployment identities. For a practical view of the trust relationships behind this, see MITRE ATT&CK Enterprise Matrix for credential access, privilege escalation, and lateral movement patterns, and RFC 6749: The OAuth 2.0 Authorization Framework for how machine-to-machine authorization can become a reusable access path when tokens are overbroad or overexposed.

Risk and Threat Considerations

CI/CD footholds are attractive because they often sit at the intersection of code, credentials, and deployment authority. If the attacker can read secrets or alter pipeline behaviour, they may gain the same trusted access that operators rely on to release software, sign artifacts, or update infrastructure.

Failure mechanism: The attacker abuses a trusted workflow to harvest secrets, impersonate a service or deployment identity, and then reuse that access to reach other systems with adjacent trust.

Impact: The initial compromise can expand into credential theft, unauthorized deployment activity, internal reconnaissance, and lateral movement across cloud, build, and production environments.

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 MITRE ATT&CK define the specific risk controls and attack patterns relevant to this topic.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-02 — Secret LeakageCI/CD footholds often expose secrets and tokens.
NHI-05 — Overprivileged NHIPipeline identities often have excessive reach into adjacent systems.
NHI-07 — Long-Lived SecretsReusable CI/CD secrets make lateral movement easier after compromise.
Recommendation — Reduce secret exposure in pipelines and rotate any leaked credentials immediately. Scope pipeline identities to the minimum access needed for each job. Replace long-lived pipeline secrets with short-lived credentials wherever possible.
MITRE ATT&CKT1552 — Unsecured CredentialsAttackers target stored secrets in CI/CD to pivot into other systems.
T1021 — Remote ServicesStolen CI/CD credentials are often reused to access adjacent systems remotely.
Recommendation — Hunt for exposed credentials in build logs, variables, and artifact stores. Monitor for abnormal remote access that follows pipeline secret exposure.

Practitioner Guidance

What to prioritise: Treat the pipeline as an identity-bearing control point, not just a delivery system. The first question is whether the compromised workflow can read secrets, mint tokens, sign artifacts, or invoke production-facing APIs, because that determines blast radius faster than the code change itself.

What to verify: Check which credentials are short-lived versus reusable, which are environment-scoped, and which are shared across jobs or repositories. If a workflow can access the same secret from multiple stages, assume the attacker can reuse that reach after first compromise.

Common mistake: Teams often focus on whether the pipeline was tampered with, while underestimating the access already embedded in the pipeline. The better question is what the workflow could already do legitimately, because that is usually the attacker’s fastest lateral movement path.

Practitioner takeaway: The decisive control is not only stopping pipeline compromise, but shrinking what a compromised workflow can authenticate to, impersonate, or export before it can turn into cross-system access.

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.

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