Subscribe to the Non-Human & AI Identity Journal
Home Glossary Cyber Security CI/CD security testing
Cyber Security

CI/CD security testing

← Back to Glossary
By NHI Mgmt Group Updated August 1, 2026 Domain: Cyber Security

The use of automated security checks inside continuous integration and continuous deployment pipelines. This includes tools that evaluate code, running applications, and interactive behaviour so vulnerabilities can be found and blocked before deployment becomes irreversible.

Expanded Definition

CI/CD security testing is the practice of embedding security checks into the software delivery pipeline so that code, configuration, dependencies, containers, and runtime behaviour are assessed before release. It is broader than a single scanner: mature programmes combine source analysis, dependency review, secrets detection, infrastructure-as-code checks, dynamic testing, and policy gates that can stop an unsafe build from progressing. In NHI Management Group’s view, the term is best understood as a control layer for software supply chain risk, not just a developer convenience.

Definitions vary across vendors because some products describe only static analysis while others include runtime validation or release governance. For that reason, the scope should be stated explicitly when the term is used. The governance value is strongest when testing is tied to release criteria, change management, and evidence collection rather than treated as a post-build report. The NIST Cybersecurity Framework 2.0 provides a useful reference point for aligning these checks with risk management and protective controls.

The most common misapplication is calling a pipeline “secure” because one scanner ran once, which occurs when teams confuse visibility with enforced release control.

Examples and Use Cases

Implementing CI/CD security testing rigorously often introduces build latency and release friction, requiring organisations to weigh faster delivery against stronger pre-deployment assurance.

  • static application security testing runs on pull requests to catch injection flaws, unsafe deserialisation, and insecure coding patterns before merge.
  • Software composition analysis checks third-party packages for known vulnerabilities and licence issues, helping teams avoid shipping risky dependencies.
  • Secrets scanning blocks hard-coded API keys, tokens, and certificates from entering repositories or build artefacts.
  • Infrastructure-as-code testing validates cloud templates against insecure defaults, such as public storage, weak network exposure, or missing logging.
  • Dynamic testing in staging exercises a deployed service to identify authentication weaknesses, broken access control, or unsafe error handling.

Where pipeline security is used for regulated environments, teams often map test evidence to NIST Cybersecurity Framework 2.0 outcomes so that release decisions are easier to audit and repeat. The key is not to treat every control as a blocker; instead, teams should define which findings fail a build, which trigger review, and which generate tracked exceptions. That decision-making model keeps testing actionable rather than noisy.

Why It Matters for Security Teams

CI/CD security testing matters because modern breaches increasingly start with weak code, unsafe dependencies, exposed secrets, or misconfigured deployment assets that move from commit to production in minutes. When teams do not test within the delivery process, security review happens too late to prevent propagation, and remediation becomes costlier after release. For identity-heavy systems, this also affects IAM and NHI governance: compromised service accounts, leaked tokens, and overly permissive automation credentials often emerge from insecure pipeline practices rather than from application code alone.

Security teams need to see this term as part of operational governance, not just engineering hygiene. That means defining ownership, evidence retention, exception handling, and escalation paths for failed checks. It also means understanding that CI/CD security testing is only effective when the pipeline can enforce policy, not merely report findings. The most useful programmes integrate these checks with change control, release approvals, and monitoring so that risky artefacts are caught before they become trusted production dependencies.

Organisations typically encounter the full cost of CI/CD security testing only after a compromised build, exposed secret, or vulnerable dependency reaches production, at which point the pipeline itself becomes the only practical place to stop recurrence.

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 address the attack and risk surface, while NIST CSF 2.0, NIST AI RMF, NIST SP 800-63 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST CSF 2.0PR.IP-1Secure development practices and change control align closely with CI/CD security testing.
NIST AI RMFAI RMF applies when pipelines build or deploy AI systems that need lifecycle risk checks.
OWASP Non-Human Identity Top 10Pipeline secrets and service identities are core NHI concerns in CI/CD security testing.
NIST SP 800-63AAL2Identity assurance is relevant when pipelines authenticate users, services, or deployers.
NIST Zero Trust (SP 800-207)SC-7Zero trust principles support segmented, policy-driven pipeline access and execution.

Embed security gates into delivery workflows and require evidence before promotion.

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