Join our Newsletter — 33% off our NHI Course
Home FAQ Cyber Security Why do CI/CD runners create a different risk…
Cyber Security

Why do CI/CD runners create a different risk profile from long-lived workloads?

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

CI/CD runners are ephemeral, which means they spin up, execute a single job, and terminate. That makes host-level baselining and delayed detection much less effective than in persistent infrastructure. Security teams need per-pipeline behavior profiles and immediate enforcement, because the attack window is short and the runner often holds secrets, signing keys, and deployment credentials.

Why This Matters for Security Teams

CI/CD runners are not just “short-lived servers.” They are execution environments with privileged access, compressed lifetimes, and highly variable behavior. That changes the detection model: a runner can fetch code, resolve dependencies, access registries, sign artifacts, and deploy changes before a host-based agent ever has time to build confidence. The practical risk is not persistence, but speed and privilege concentration.

Long-lived workloads usually support baseline-driven monitoring because they repeat patterns over time. Runners do not. Their job scope changes by pipeline, branch, or trigger, which makes static allowlists and delayed alerting weak controls. Guidance from the NIST Cybersecurity Framework 2.0 still applies, but the control design must shift toward per-job identity, tight secret scoping, and immediate enforcement. NHIMG research on CI/CD pipeline exploitation case study shows how fast pipeline trust can be turned into downstream compromise.

In practice, many security teams discover runner abuse only after secrets have already been used or artifacts have already been published.

How It Works in Practice

The right way to think about a CI/CD runner is as a transient workload identity, not a managed server. The runner should obtain a narrow, time-bound identity for the exact job it is executing, ideally backed by workload identity controls such as the SPIFFE workload identity specification. That gives security teams a cryptographic way to verify what the runner is, rather than trusting a machine image or a static token.

In this model, secrets are issued just in time, used once, and revoked automatically when the job ends. Static credentials create unnecessary blast radius because a runner may only exist for minutes, yet still hold long-lived access to package repositories, cloud APIs, or signing systems. The better pattern is per-pipeline authorization, where policy is evaluated at request time based on job context such as repository, branch, commit status, environment, and approval state. That is a stronger fit for ephemeral execution than conventional role-based access control.

  • Bind each runner to a unique workload identity instead of reusing shared credentials.
  • Issue short-lived tokens for registry access, deployment, and signing tasks.
  • Scope secrets to a single pipeline stage whenever possible.
  • Evaluate policy at runtime rather than relying on pre-approved static roles.
  • Revoke access automatically at job completion or on anomaly detection.

This approach aligns with NHIMG guidance in the Guide to SPIFFE and SPIRE and the Guide to the Secret Sprawl Challenge, both of which emphasize reducing secret exposure windows and improving machine identity assurance. These controls tend to break down when runners are reused across many pipelines with shared images and broad network reach, because the identity and secret boundaries blur faster than the job lifecycle.

Common Variations and Edge Cases

Tighter runner controls often increase pipeline complexity and operational overhead, requiring organisations to balance delivery speed against stronger isolation and review requirements. That tradeoff is real, especially where build jobs are frequent or where teams rely on self-hosted runners for performance, custom tooling, or restricted network access.

There is no universal standard for this yet, but current guidance suggests treating high-trust jobs differently from low-trust jobs. For example, signed release pipelines may justify stricter approvals, stronger attestation, and dedicated runners, while routine test jobs may use more limited scopes. The main edge case is shared runner fleets: if multiple teams, branches, or trust zones share the same runner pool, lateral movement risk rises sharply because an attacker only needs one exposed job to pivot into another.

Another common failure mode is overreliance on image hardening alone. A hardened base image helps, but it does not solve short-lived credential exposure, malicious dependency execution, or token theft during runtime. NHIMG’s Top 10 NHI Issues and the Ultimate Guide to NHIs — Key Challenges and Risks both reinforce the same operational point: machine identities become dangerous when access outlives purpose.

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, OWASP Agentic AI Top 10 and CSA MAESTRO address the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-03Covers overprivileged, long-lived machine credentials in ephemeral pipelines.
OWASP Agentic AI Top 10A-04Autonomous execution environments need runtime authorization, not static trust.
CSA MAESTROIAM-02Maps to workload identity and policy enforcement for agentic or automated execution.
NIST AI RMFAI RMF supports governance for dynamic, automated decision-making in pipelines.
NIST CSF 2.0PR.AC-4Least-privilege and access control are central to ephemeral runner risk reduction.

Replace reusable runner secrets with short-lived, pipeline-scoped credentials and enforce automatic revocation.

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