CI/CD is a software delivery approach that automates integration, testing, and release of code changes. It reduces manual handoffs, but also creates a high-value attack path if build systems, secrets, or pipelines are weakly controlled. Teams should restrict pipeline permissions, scan dependencies, sign artefacts, and monitor for unauthorised changes.
Why CI/CD matters
CI/CD turns code integration, testing, and release into a repeatable delivery path. That speed is valuable, but it also concentrates trust in build runners, pipeline configuration, deployment credentials, and artifact integrity, so a weak control anywhere in the chain can affect every release that passes through it.
A pipeline should be treated as production infrastructure, not just developer tooling. When teams automate merges, builds, and deployments, they also automate the consequences of stolen tokens, poisoned jobs, compromised dependencies, and unsafe release approvals.
Common CI/CD failure modes
The most damaging failures tend to come from mis-scoped permissions, leaked secrets, untrusted third-party actions or plugins, and insufficient separation between pull-request activity and trusted release workflows. Those weaknesses let an attacker modify code, alter build outputs, or exfiltrate credentials without needing direct access to the target application itself.
Build integrity also depends on provenance. If artefacts are not signed and verified, or if dependency sources are not pinned and reviewed, teams can no longer tell whether a release came from the intended source or from a tampered pipeline step. That is why secure delivery programs often pair pipeline hardening with supply-chain controls such as SLSA.
What makes CI/CD a security control point
CI/CD sits at the intersection of source code, build systems, secrets, and deployment authority. A compromise here can produce broad blast radius because pipeline jobs often have access to signing keys, package publishing tokens, cloud credentials, and infrastructure endpoints that ordinary developers do not touch directly.
That is why pipeline security is more than a matter of clean automation. It determines whether code changes are tested in a trustworthy environment, whether secrets stay confined to the jobs that need them, and whether release artefacts can be trusted downstream by production systems and users.
For teams looking to formalise this boundary, the strongest operational guidance is to treat pipeline identity, secret handling, and provenance as first-class design concerns. NHIMG’s CI/CD Pipeline Identity Security Guide is useful here because it ties those concerns together around federation, permissions, and signing.
How practitioners should think about defence
Defence starts with reducing what the pipeline can touch, then validating every trust edge it depends on. In practice that means limiting token scope, separating trusted and untrusted workflows, pinning dependencies and actions, and monitoring for unexpected workflow changes or secret access.
CI/CD also benefits from looking at incidents as reusable lessons. NHIMG’s CI/CD Security Guide and CI/CD pipeline exploitation case study both show how small pipeline mistakes can become code execution, credential exposure, or release tampering problems.
Risk and Threat Considerations
CI/CD creates a high-value attack path because it sits close to source control, secrets, and release authority. When an attacker reaches the pipeline, they may be able to steal credentials, alter build logic, or push a malicious artefact into multiple environments at once.
Failure mechanism: Weak workflow isolation, overprivileged tokens, compromised third-party actions, or exposed secrets let an attacker turn the delivery system into a trusted execution channel.
Impact: The result can be code tampering, secret theft, fraudulent releases, or downstream compromise of production systems and signing material.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
SLSA, NIST SP 800-53 Rev 5 and OWASP SAMM set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| SLSA | Supply-chain Levels for Software Artifacts | CI/CD directly governs build provenance and artefact integrity. |
| Recommendation — Adopt SLSA practices to verify provenance and protect release artefacts from pipeline tampering. | ||
| NIST SP 800-53 Rev 5 | CM-3 — Configuration Change Control | CI/CD pipelines depend on controlled changes to build and release configuration. |
| IA-5 — Authenticator Management | CI/CD security depends on managing pipeline secrets, tokens and other authenticators. | |
| SI-7 — Software, Firmware, and Information Integrity | CI/CD output integrity depends on detecting tampering in code and artefacts. | |
| Recommendation — Enforce CM-3 to review and approve pipeline and release configuration changes before deployment. Apply IA-5 to rotate, restrict and retire pipeline credentials and secrets. Use SI-7 to validate build integrity and detect unauthorised modification of release artefacts. | ||
| OWASP SAMM | Build Security — Build Security | CI/CD is the software delivery stage where secure build practices are established. |
| Recommendation — Integrate build-security checks into the delivery process and assess pipeline maturity regularly. | ||
Practitioner Guidance
Why practitioners should care: CI/CD is not only about deployment speed, it is also where release trust is either preserved or broken. A pipeline that can publish, sign, or deploy should be designed with the same care as any privileged production system.
Practitioner takeaway: If you cannot explain who can change the pipeline, what it can access, and how release integrity is verified, the delivery process is carrying more trust than it should.
Related resources from NHI Mgmt Group
- What is workload identity federation and why is it important for CI/CD security?
- How do I implement secrets scanning in a CI/CD pipeline?
- When should teams prioritise CI/CD hardening over broader secret scanning?
- How should security teams govern machine credentials across cloud and CI/CD environments?
Deepen Your Knowledge
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.
Reviewed and updated by the NHIMG editorial team on October 17, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org