TL;DR: Breached accounts rose nearly eight times year over year in 2024, and more than 1.4 billion records were breached globally in May 2025, according to Probely, but the deeper issue is that security scans are still too often treated as one-off checkpoints rather than continuous pipeline controls. CI/CD security fails when governance is bolted on after development instead of being embedded across commit, build, and deployment stages.
At a glance
What this is: This is an analysis of secure CI/CD pipeline integration and the key finding that security fails when it is treated as a periodic scan instead of a continuous control.
Why it matters: It matters to IAM, PAM, and NHI practitioners because CI/CD pipelines often depend on secrets, service accounts, and deployment privileges that need lifecycle governance, not just application scanning.
By the numbers:
- Breached accounts rose nearly eight times year over year in 2024.
- More than 1.4 billion records were breached globally in May 2025.
- Only 44% of organisations are currently using a dedicated secrets management system.
👉 Read Probely's analysis of secure CI/CD pipeline integration
Context
Secure CI/CD pipeline integration means building security checks into code, build, and deployment stages rather than relying on a late-stage review. In practice, the governance gap is not just software defects but the credentials, tokens, and service permissions that let pipelines move work into production. For identity teams, that makes CI/CD a lived NHI and secrets-management problem, not only an application security concern.
Probely frames the issue as a mismatch between tooling and usage: many organisations scan once or twice, then assume the pipeline is secure. That model is brittle because modern pipelines are dynamic, heavily automated, and full of machine identities that can be over-permissioned or reused across environments. The starting position described here is common, not exceptional.
The article also connects secure pipelines to compliance outcomes, which is accurate but incomplete. Compliance alone does not close the gap if secrets remain exposed, build roles stay persistent, or pipeline controls are not continuously monitored across environments.
Key questions
Q: How should security teams govern credentials used by CI/CD pipelines?
A: Security teams should treat CI/CD credentials as production-grade machine identities and apply least privilege, short lifetimes, and continuous monitoring. The key is to limit what the pipeline can reach, revoke secrets quickly, and audit every privilege path that could let one stolen token spread across repositories, cloud accounts, or SaaS systems.
Q: Why do CI/CD pipelines create non-human identity risk?
A: CI/CD pipelines create non-human identity risk because they authenticate to other systems, carry secrets, and perform privileged actions automatically. When a workflow is compromised, the attacker can inherit that authority and move into cloud, source control, or publishing systems. The pipeline is therefore an identity-bearing control point, not just an execution engine.
Q: What do teams get wrong about securing CI/CD integration?
A: The common mistake is assuming that one secure check early in the pipeline makes the whole delivery chain safe. In reality, each stage has its own identity boundary, and every integration widens the attack surface if credentials are shared, persistent, or over-permissioned. Security must follow the workflow, not just the build step.
Q: How do teams know if agentic CI/CD controls are actually working?
A: Look for evidence that the agent cannot reach secrets, cannot mutate protected branches, and cannot execute shell commands outside its declared boundary. If telemetry shows attempted outbound calls, credential access, or policy violations being blocked or alerted on, the control is operating. If you only see clean workflow files, you do not yet know whether runtime guardrails are effective.
Technical breakdown
Why CI/CD security fails when controls are point-in-time
CI/CD pipelines are event-driven systems, so a control applied only at one stage leaves gaps in the rest of the workflow. Source code, build runners, artifact stores, and deployment jobs each have different trust boundaries, and attackers often target the weakest one that still has access to secrets or release rights. SAST and DAST help, but they do not govern who can invoke the pipeline, what credentials it can use, or how long those credentials remain valid. When those identity controls are missing, the pipeline becomes an automation path for compromise rather than a defence layer.
Practical implication: treat pipeline identity and secret lifecycle controls as continuous, not release-based.
How secrets and service accounts expand the attack surface
Pipelines commonly rely on API keys, tokens, certificates, and service accounts to authenticate to repositories, registries, cloud platforms, and deployment targets. Those non-human identities are often shared across jobs, stored in variables, or granted broad privileges to avoid breaking automation. That creates a standing privilege problem: once a secret is exposed, an attacker can often use it immediately outside the pipeline context. Continuous scanning matters, but secret rotation, scoped access, and offboarding of stale credentials are what actually reduce blast radius.
Practical implication: inventory every pipeline secret and tie each one to an owner, scope, and rotation path.
Why compliance checks do not equal secure delivery
Compliance controls can confirm that a process exists, but they rarely prove that access is limited, monitored, and revoked correctly in real time. In CI/CD environments, a compliant process can still leave over-permissioned runners, long-lived deployment tokens, or unmanaged integrations in place. That gap is where identity governance intersects with DevSecOps: the security question is not whether a check ran, but whether the credential used by the pipeline was appropriate for the task and discarded afterwards. Without that view, compliance becomes a lagging indicator instead of a control.
Practical implication: pair compliance evidence with identity governance evidence for pipeline access and secrets.
Threat narrative
Attacker objective: The attacker wants trusted automation to become the delivery mechanism for code execution, secret theft, or downstream compromise.
- Entry typically begins with exposed repository credentials, leaked pipeline secrets, or a compromised build integration that gives the attacker a path into the CI/CD system.
- Escalation occurs when the attacker abuses standing privileges in build, registry, or deployment roles to reach broader infrastructure or production release paths.
- Impact follows when the pipeline is used to inject malicious code, steal additional secrets, or deploy unauthorised artefacts into downstream environments.
NHI Mgmt Group analysis
CI/CD security is an identity governance problem disguised as tooling hygiene. The article is right that scanning alone is insufficient, but the deeper issue is that pipelines depend on service identities, secrets, and deployment permissions that need lifecycle control. From an NHI perspective, each pipeline token is a non-human identity with scope, owner, expiry, and revocation obligations. Practitioners should stop treating CI/CD as a build concern and start treating it as a governed identity surface.
Standing pipeline privilege is the control gap that attackers exploit first. When build runners or deployment jobs retain broad access across environments, the attacker does not need to break the pipeline, only borrow its authority. That is why secrets sprawl and reusable credentials are so dangerous in DevOps flows. The control lesson is clear: reduce standing privilege before you invest in more detection, because detection cannot undo overbroad authorisation.
Continuous security in CI/CD must include credential lifecycle, not only code analysis. SAST, DAST, and dependency checks are necessary, but they do not answer who can authenticate to the pipeline or how quickly that access can be revoked. The governance model needs the same discipline used for human IAM and PAM, applied to machine identities. Practitioners should align pipeline controls with NIST-CSF and OWASP-NHI-style lifecycle thinking.
Secure delivery depends on separating release authority from build authority. A pipeline that can compile code should not automatically be able to promote it, sign it, and deploy it everywhere. This is a classic privilege concentration problem that increases blast radius and weakens accountability. Security teams should push for segmented roles, short-lived credentials, and explicit approval boundaries so the build system cannot act as its own unbounded operator.
What this signals
Secret lifecycle governance will become the differentiator in CI/CD programmes. As pipelines grow more automated, the practical question is whether identity teams can prove that deployment credentials are ephemeral, scoped, and revocable. That will push more organisations toward tighter integration between DevSecOps controls and identity governance processes, especially for workload and service identities.
Pipeline telemetry needs to feed identity controls, not sit in a separate toolchain. If unusual job behaviour, secret reuse, or unexpected deployment scope changes are not visible to IAM or SIEM workflows, the organisation will miss the earliest signs of abuse. Practitioners should plan for continuous policy enforcement across build and release systems, not isolated security checks.
Secrets sprawl is a measurable operational risk, not a theoretical one. Our research shows leaked secrets can take 36 hours on average to mitigate, which is too slow for modern automation paths. That finding should push teams to prioritise inventory, rotation, and revocation workflows that work at machine speed.
For practitioners
- Separate build, sign, and deploy privileges Split pipeline permissions so no single job can both create and release production artefacts. Use distinct service identities for build, signing, and deployment, with narrow scopes and explicit approvals for promotion.
- Inventory every pipeline secret and token Map each credential to a workload owner, use case, expiry date, and revocation path. Eliminate shared secrets where possible and rotate high-value credentials on a fixed schedule tied to release operations.
- Apply short-lived credentials to automation paths Replace long-lived API keys and deployment tokens with ephemeral credentials wherever the platform supports them. This reduces the time attackers have to reuse stolen access outside the intended pipeline window.
- Monitor pipeline identity behaviour continuously Track unusual job invocation patterns, unexpected registry access, and changes in deployment scope. Feed those events into SIEM or SOAR workflows so identity misuse in the pipeline is visible quickly.
Key takeaways
- Secure CI/CD integration fails when identity and secrets controls are treated as occasional checks rather than continuous governance.
- The main risk is standing privilege in pipeline identities, because attackers can reuse leaked tokens faster than most teams can respond.
- Practitioners should separate automation roles, shorten credential lifetimes, and tie pipeline access to explicit lifecycle controls.
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 surface, NIST CSF 2.0, NIST SP 800-53 Rev 5 and CIS Controls v8 set the technical controls, and ISO/IEC 27001:2022 define the regulatory obligations.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-03 | Pipeline secrets and service accounts are non-human identities that need lifecycle governance. |
| NIST CSF 2.0 | PR.AC-4 | CI/CD access control hinges on least privilege for build and deploy identities. |
| NIST SP 800-53 Rev 5 | IA-5 | Authenticator management is central to rotating and revoking CI/CD secrets. |
| CIS Controls v8 | CIS-5 , Account Management | Pipeline accounts and service identities need lifecycle ownership and review. |
| ISO/IEC 27001:2022 | A.8.2 | Privileged access and secret handling in pipelines map to access restriction controls. |
Inventory pipeline identities, scope each credential tightly, and revoke or rotate access on a fixed lifecycle.
Key terms
- CI/CD Pipeline Identity: The machine identity used by continuous integration and deployment systems to authenticate to code repositories, registries, and cloud environments during automated build and deployment.
- Standing Privilege: Standing privilege is access that remains active even when no immediate task requires it. For NHI programmes, it is a common failure mode because long-lived credentials and persistent roles create unnecessary exposure. Reducing standing privilege usually means tighter expiry, on-demand access, and clearer review of who or what still needs access.
- Secrets Sprawl: The uncontrolled proliferation of sensitive credentials — API keys, tokens, passwords, certificates — across codebases, cloud environments, CI/CD pipelines, and configuration files. In 2024, over 50 million leaked secrets were found on the dark web.
- Shift Left: Shift left is the practice of moving security checks earlier in the software development lifecycle, usually into planning, code review, or build steps. It reduces some defects before deployment, but by itself it does not control runtime behaviour, identity sprawl, or secrets misuse after release.
What's in the full article
Probely's full article covers the operational detail this post intentionally leaves for the source:
- Specific examples of where SAST, DAST, and dependency checks fit into a CI/CD workflow
- A step-by-step view of how to assess current pipeline gaps before choosing controls
- Practical guidance on making security part of the build process without disrupting delivery
- The article's discussion of Snyk API & Web integration and how it fits existing workflows
Deepen your knowledge
The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, secrets management, and identity lifecycle control. It is built for practitioners who need to govern automation, not just monitor it.
Published by the NHIMG editorial team on August 18, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org