Join our Newsletter — 33% off our NHI Course
Home FAQ Cyber Security Why does DevOps create more risk when security…
Cyber Security

Why does DevOps create more risk when security is added too late?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated August 28, 2026 Domain: Cyber Security

Because teams optimise for delivery first, then discover flaws after code is already built, tested, and waiting to ship. At that point, fixes are slower, exceptions are more likely, and risk decisions become compressed into release deadlines. Late security turns governance into a negotiation, not a control.

Why This Matters for Security Teams

DevOps shortens the time between code change and production impact, which is exactly why late security adds so much risk. When controls are introduced after build, test, and integration work is already complete, teams are forced to retrofit authentication, secrets handling, approvals, and audit requirements into systems that were never designed for them. That creates friction, exceptions, and release pressure at the same time.

This is not just a process problem. It is an operational exposure problem that shows up in pipeline design, service accounts, and secret distribution. NHIMG’s research on CI/CD pipeline exploitation case study and the Top 10 NHI Issues both point to the same pattern: once delivery systems are already wired around speed, late controls often become optional in practice. Current guidance from the NIST Cybersecurity Framework 2.0 still supports integrating governance into the lifecycle, not bolting it on at the end. In practice, many security teams discover pipeline weaknesses only after a release exception has already normalized the unsafe path.

How It Works in Practice

Security creates less risk when it is embedded in the delivery flow because DevOps systems are full of non-human identities, ephemeral jobs, and machine-to-machine trust. If those identities are assigned static permissions too early, the organisation usually ends up overprovisioning just to keep releases moving. That is why the more effective pattern is to make access task-specific, time-bound, and evaluated at request time.

In mature setups, the build runner, deployment agent, and automation service each authenticate as a distinct workload identity, often using cryptographic identity rather than shared secrets. That can include approaches inspired by SPIFFE-style workload identity, short-lived OIDC tokens, and policy-as-code enforcement at runtime. The security team defines what the pipeline may do, while the delivery system requests only what it needs for the current step. This is a better fit for DevOps because the access path changes as the pipeline advances.

  • Use just-in-time credentials for deploy, scan, and release tasks so secrets are issued per job and revoked automatically.
  • Replace broad service account access with workload identity tied to the specific runner, environment, and action.
  • Evaluate authorisation in real time using context such as repo, branch, environment, and change window.
  • Log every privilege grant and secret retrieval so release activity remains auditable without manual ticket chasing.

That approach aligns with the direction described in the OWASP NHI Top 10 because machine identities in delivery pipelines are still identities, even when they are not human-operated. It also matches the lifecycle emphasis in the Ultimate Guide to NHIs — Why NHI Security Matters Now, where late discovery of identity sprawl becomes a governance failure. These controls tend to break down when legacy pipelines rely on shared credentials across many jobs because revocation, attribution, and least privilege become impossible to enforce cleanly.

Common Variations and Edge Cases

Tighter security often increases release overhead, requiring organisations to balance speed against control quality. That tradeoff is real, especially in fast-moving teams that ship many times per day. There is no universal standard for exactly where the cutoff should sit, but current guidance suggests that the earlier the guardrails are applied, the less likely the team is to convert risk into release exceptions.

Some environments are harder than others. Legacy CI/CD stacks may not support short-lived tokens, while multi-cloud deployments can fragment identity across tools, clusters, and secret stores. In those cases, teams sometimes keep a small number of long-lived credentials temporarily, but best practice is evolving toward narrower scope, shorter TTLs, and stronger revocation discipline. The strongest improvements usually come from fixing the most exposed control points first: artifact signing, secret retrieval, deploy permissions, and production promotion.

Vendor research from The 2024 ESG Report: Managing Non-Human Identities shows how common NHI compromise has become, which matters because DevOps pipelines often contain the same weak links that attackers target: overprivileged accounts, persistent tokens, and poor rotation hygiene. For teams that need a more breach-oriented view, the Emerald Whale breach illustrates how infrastructure trust can be turned against the organisation once automation is treated as a convenience layer instead of a security boundary.

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

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-03Late security often leaves long-lived pipeline secrets unrotated and overexposed.
NIST CSF 2.0PR.AC-4DevOps risk rises when access control is bolted on after delivery workflows exist.
NIST Zero Trust (SP 800-207)3.1Zero Trust is relevant because pipeline identities should be continuously verified.
NIST AI RMFGOVERNGovernance must be built into delivery so risk decisions are not compressed at release time.
CSA MAESTROG1MAESTRO addresses agentic and automated workflow risks that mirror DevOps pipeline trust issues.

Embed least-privilege access checks into pipelines and review them as part of change control.

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