Join our Newsletter — 33% off our NHI Course
Home› Glossary› Architecture & Implementation› Continuous Integration And Continuous Deployment (CI/CD)
Architecture & Implementation

Continuous Integration And Continuous Deployment (CI/CD)

← Back to Glossary
By NHI Mgmt Group Updated November 3, 2026 Domain: Architecture & Implementation

Continuous integration and continuous deployment, or CI/CD, is a software delivery practice that automates code integration, testing, and release preparation. It uses build pipelines, test suites, and deployment steps so changes can move from source control into environments with less manual effort and clearer repeatability.

What CI/CD Means in Practice

CI/CD is best understood as a delivery system, not a single tool. Continuous integration focuses on merging code changes frequently and validating them automatically, while continuous deployment or release automation extends that pipeline so tested changes can move onward with minimal manual handoff.

The practical value is repeatability. When the pipeline is well designed, it reduces ad hoc release work, exposes integration problems earlier, and makes delivery behaviour more predictable across teams and environments.

Why CI/CD Changes the Security Posture

CI/CD shifts trust from individual operators to automated pipeline logic, build agents, secrets, and artifact handling. That means the security posture depends on how well the pipeline controls source integrity, credentials, approvals, and environment boundaries, not just on the code itself.

Because the pipeline can create, test, sign, package, and deploy software, a compromise in any step can become a fast path from source changes to production impact. The same automation that improves delivery speed can also scale abuse if permissions, third-party actions, or secret handling are too broad.

For this reason, CI/CD is often discussed alongside SLSA, because build provenance and artifact integrity are central to whether the pipeline can be trusted end to end.

Common Failure Modes in CI/CD Pipelines

The biggest failures usually come from trust expansion, not from the compiler or test runner itself. Exposed repository secrets, overly privileged pipeline tokens, unreviewed third-party actions, and weak environment isolation can all turn an ordinary build flow into a credential exposure or supply-chain event.

Pipeline metadata is also a risk surface. Logs, artifacts, cached dependencies, and configuration files can leak credentials or reveal enough operational detail for an attacker to modify the build path, tamper with deployment logic, or impersonate the pipeline in downstream systems.

NHIMG’s CI/CD pipeline exploitation case study shows how exposed configuration can let an attacker alter a pipeline and plant access on the target system, while ArtiPACKED 2024 illustrates how build artifacts can leak live tokens if artifact handling is not tightly controlled.

Compromise can also enter through dependencies and integrations. The reviewdog Action compromise 2025 is a reminder that a single poisoned action or maintainer account can cascade into secret exposure across many repositories and workflows.

How Teams Govern and Secure CI/CD

Effective CI/CD security starts with narrowing what the pipeline can access and what it can change. That includes strict separation between build, test, and deployment privileges, careful handling of tokens and signing material, and explicit approval paths for third-party integrations that run inside the workflow.

Governance also means visibility. Teams need to know which pipelines exist, what they execute, which identities they use, and which services they depend on. Without inventory and auditability, it becomes difficult to detect drift, prove control ownership, or investigate suspicious build behaviour after the fact.

NHIMG’s OWASP CI/CD Top 10 CICD-SEC-8 Ungoverned Usage of Third-Party Services Guide is useful where organisations need a control lens for connected apps, tokens, webhooks, and other workflow dependencies, while OWASP CI/CD Top 10 CICD-SEC-10 Insufficient Logging and Visibility Guide addresses the monitoring side of the same problem.

For the broader control model, the pipeline should be treated as part of the software supply chain, with review, attestation, logging, and release gating aligned to the organisation’s risk tolerance rather than to developer convenience alone.

Risk and Threat Considerations

CI/CD creates concentrated exposure because a successful compromise can affect many deployments at once. Attackers are drawn to pipelines that hold secrets, can write to production environments, or can approve and publish artifacts with minimal human review.

Failure mechanism: A malicious change, compromised integration, or leaked token can let an attacker tamper with build steps, steal credentials, or ship a backdoored artifact through a trusted delivery path.

Impact: The result can be unauthorized code release, secret exposure, downstream environment compromise, and a fast-moving supply-chain incident that is harder to detect than a direct server intrusion.

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.

FrameworkControl / ReferenceRelevance
SLSASupply-chain Levels for Software ArtifactsCI/CD depends on build provenance and artifact integrity across the delivery chain.
Recommendation — Adopt SLSA practices to verify build provenance and harden artifact trust before release.
NIST SP 800-53 Rev 5CM-3 — Configuration Change ControlCI/CD changes move rapidly, so controlled promotion and approval of pipeline changes is central.
AU-2 — Event LoggingCI/CD security depends on auditable build, release, and workflow events for investigation and review.
IA-5 — Authenticator ManagementCI/CD commonly relies on tokens, keys, and other secrets that must be issued and rotated safely.
Recommendation — Apply CM-3 to review and authorize pipeline and deployment changes before promotion. Use AU-2 to define the CI/CD events that must be logged and retained for traceability. Apply IA-5 to govern pipeline secrets, token rotation, and credential lifecycle controls.

Practitioner Guidance

Why practitioners should care: CI/CD is where speed and trust collide, so the most important operational question is whether automation is accelerating safe delivery or simply accelerating insecure delivery. The pipeline should be designed so that compromise of one workflow does not automatically grant access to many repositories, environments, or release targets.

Practitioner takeaway: Treat the pipeline as a production system in its own right, because attackers and auditors will.

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