Join our Newsletter — 33% off our NHI Course

CI/CD runtime security

CI/CD runtime security protects the live execution of build, test, and deployment pipelines from tampering, credential theft, and unauthorized code changes. It focuses on securing agents, runners, secrets, artifacts, and permissions during pipeline execution, so software delivery remains trustworthy across automated release workflows.

What CI/CD runtime security protects during execution

CI/CD runtime security is about the security posture of the pipeline while it is actually running, when build jobs, test steps, deployment actions, and ephemeral workers can be influenced by code, configuration, secrets, and external inputs. The main concern is that the runtime is an active trust boundary, not a passive automation script.

That distinction matters because many pipeline abuses happen after code has entered the workflow, not just before it. A compromised runner, a poisoned job step, or a leaked token can let an attacker alter artifacts, exfiltrate secrets, or redirect deployment actions without ever changing the repository itself.

Why the runtime layer is a high-value target

Pipeline runtime environments often hold the permissions needed to build, sign, publish, or deploy software, which makes them attractive targets for supply-chain abuse. Attackers do not need permanent infrastructure access if they can briefly intercept a job, steal a secret, or influence how a runner executes trusted code.

Runtime risk is especially acute when jobs run with broad cloud, registry, or repository permissions, or when shared runners mix trusted and untrusted workloads. That is why operational lessons from incidents like ArtiPACKED 2024 remain relevant: artifact handling, runtime tokens, and job permissions can turn a normal workflow into a secret exposure event.

Common failure modes in CI/CD execution

The most common failure patterns are poisoned workflow steps, overpermissive runner credentials, exposed secrets in logs or artifacts, and untrusted third-party actions or plugins. These problems often appear together because the runtime layer combines code execution, secret access, network reachability, and deployment authority in one place.

Another frequent weakness is assuming that source control protections alone are enough. A protected branch does not prevent a malicious action, compromised maintainer token, or vulnerable build step from accessing environment secrets or modifying generated output during the run itself. Runtime security therefore has to cover the execution context, not just the repository.

How runtime security supports trustworthy release workflows

Strong runtime controls preserve the integrity of build output by limiting what jobs can read, write, call, or publish while they execute. In practice, this means treating runners, workflow identities, signing material, and artifact handoff points as security-sensitive assets that need explicit trust boundaries.

That is why supply-chain provenance work such as SLSA belongs in the same conversation. Runtime security and provenance work together, because one protects the live execution path and the other helps verify where the resulting artifact came from and how it was produced.

Risk and Threat Considerations

CI/CD runtime security failures can expose the most privileged secrets in the delivery chain, including signing keys, deployment tokens, cloud credentials, and repository write access. Once a job or runner is compromised, an attacker can often pivot from a single pipeline run to artifact tampering, secret theft, or unauthorized release activity.

Failure mechanism: The attacker abuses the pipeline’s execution context, for example through malicious workflow code, compromised third-party actions, token theft, or runner compromise, and uses the job’s legitimate permissions to change output or exfiltrate sensitive material.

Impact: The organisation can ship tampered builds, leak credentials, lose trust in release artifacts, and be forced into credential rotation, rebuilds, and post-compromise review across the delivery chain.

Standards & Framework Alignment

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

SLSA and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
SLSA Supply Chain Levels for Software Artifacts CI/CD runtime security directly protects artifact integrity during build and release execution.
Recommendation — Adopt SLSA-aligned provenance checks to verify how release artifacts were produced.
NIST SP 800-53 Rev 5 IA-5 — Authenticator Management Pipeline runtime security depends on managing secrets, tokens, and other authenticators used during execution.
AC-6 — Least Privilege Runtime pipeline jobs should only receive the permissions needed to execute each step.
AU-6 — Audit Record Review, Analysis, and Reporting Detecting pipeline abuse requires reviewing execution logs, artifact events, and anomalous job activity.
Recommendation — Control token and secret lifecycle tightly so pipeline jobs cannot reuse exposed authenticators. Constrain job and runner permissions to the minimum required for each pipeline task. Review pipeline logs and audit records for unusual secret use, job changes, and artifact manipulation.

Practitioner Guidance

Why practitioners should care: Runtime security is where delivery automation becomes real authority, so it needs tighter controls than ordinary code execution. The practical question is not whether a pipeline can run, but whether it can run without giving every step more trust than it deserves.

Practitioner note: The safest designs minimize standing privilege in the job itself, isolate runners, restrict secret exposure to the smallest possible scope, and make artifact signing and provenance checks part of the release path rather than optional add-ons. A pipeline is only as trustworthy as the permissions it can exercise while it is live.