They usually fail because they arrive too late or ask for manual work at the point where teams are optimising for speed. If a control is hard to understand, slow to approve, or detached from the developer’s context, it will be bypassed, deferred, or applied inconsistently. Good controls reduce friction instead of adding it.
Why This Matters for Security Teams
Fast-moving CI/CD environments compress build, test, approval, and deployment into a narrow window, which means security controls have to operate at machine speed and with clear developer context. When a control depends on tickets, manual sign-off, or a separate security queue, it becomes vulnerable to bypass rather than adoption. NIST SP 800-53 Rev 5 Security and Privacy Controls is useful here because it reinforces that control design must match operational reality, not just policy intent.
The practical risk is not only missed findings. It is the accumulation of small exceptions: hardcoded secrets in build steps, over-permissive service accounts, unreviewed dependency updates, and pipeline jobs that can be modified without strong change control. In CI/CD, these issues often cross from code to cloud to runtime before anyone notices, which makes later remediation slower and more expensive.
Security teams also need to recognise that developer experience is part of control effectiveness. A control that interrupts every build, produces vague failures, or requires security to interpret context outside the pipeline will be treated as optional. In practice, many security teams encounter control failure only after a deployment path has already been normalised around exceptions, rather than through intentional policy design.
How It Works in Practice
Controls work better in CI/CD when they are embedded as automated checks, policy-as-code, and gated release decisions that fit naturally into the pipeline. This means using pre-commit checks for secrets and dependency risks, build-stage scanning for code and container issues, artifact signing, and deployment-time verification that only approved artifacts move forward. The objective is not to add more tools, but to make the path of least resistance the secure path.
Good practice also separates where a control runs from what it protects:
- Shift-left controls catch obvious defects early, such as exposed secrets, vulnerable packages, and insecure configuration patterns.
- Build integrity controls verify provenance, signing, and dependency authenticity before artifacts are trusted.
- Release controls enforce change approval, environment-specific policy, and rollback readiness at deployment time.
- Runtime controls validate that what is running matches what was approved, especially for containers and ephemeral workloads.
For teams formalising this approach, it helps to align control ownership with delivery stages and to document which checks are advisory versus blocking. That distinction matters because not every issue should stop the pipeline, but every issue should be visible, traceable, and triaged. Security guidance from OWASP Top 10 CI/CD Security Risks is especially useful for identifying where attackers or careless configuration can turn delivery automation into an attack path. Similarly, CISA Secure by Design is a strong reminder that security should be built into the pipeline rather than bolted on after releases are already routine. These controls tend to break down when pipelines are highly fragmented across teams and each stage uses different tooling, because visibility, ownership, and enforcement become inconsistent.
Common Variations and Edge Cases
Tighter pipeline control often increases friction and maintenance overhead, requiring organisations to balance release speed against assurance. That tradeoff is real, especially where teams ship many times per day and cannot afford heavy manual gates on every change.
Current guidance suggests that the best controls are not identical across all environments. A regulated payment platform may justify stronger release approval, artifact provenance, and segregation of duties than a low-risk internal service. Likewise, a monorepo with shared build infrastructure needs different safeguards than a small team with isolated pipelines. There is no universal standard for this yet, so the control set should follow asset criticality, exposure, and blast radius.
Edge cases often appear where automation itself becomes the trust boundary. Agentic build assistants, autonomous remediation jobs, and infrastructure provisioning bots may have legitimate execution authority, but they also expand the identity and privilege surface of CI/CD. In those environments, identity governance for non-human identities becomes part of pipeline security, not a separate concern. The same is true when third-party actions, reusable workflow templates, or external package registries are allowed into the delivery chain. For further operational context, SLSA is useful for thinking about build provenance, while Sigstore documentation helps teams implement signing and verification in a way that is compatible with automation.
The hardest cases are highly distributed engineering organisations where each product team owns its own pipeline, secrets, and deployment logic. In those settings, controls fail when central policy is too abstract to be enforced locally or when local teams can override it without consequence. The most resilient models combine shared guardrails, strong identity for automation, and pipeline-native enforcement that does not depend on post-hoc review.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Agentic AI Top 10 and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0, NIST AI RMF and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST CSF 2.0 | PR.IP-1 | Secure development processes are the core issue in fast-moving CI/CD. |
| NIST AI RMF | AI RMF helps when CI/CD includes AI models, agents, or automated decisions. | |
| OWASP Agentic AI Top 10 | Agentic automation in pipelines creates identity and execution risk. | |
| OWASP Non-Human Identity Top 10 | CI/CD relies on service accounts, tokens, and secrets as non-human identities. | |
| NIST SP 800-53 Rev 5 | SA-11 | Security testing controls need automation to keep pace with deployment velocity. |
Inventory pipeline identities, rotate secrets, and enforce least privilege for every automation principal.
Related resources from NHI Mgmt Group
- How should security teams govern machine credentials across cloud and CI/CD environments?
- What do security teams get wrong about workload identity in cloud and CI/CD environments?
- Why do AI security controls often fail to transfer across deployment models?
- Why do traditional security controls fail for conversational AI in regulated environments?