TL;DR: Secrets management remains difficult in cloud, microservices, DevOps, and CI/CD environments because credentials are scattered, reused, and harder to govern manually, according to OXSecurity. Automation reduces exposure windows, improves rotation and access control, and lowers the human error that repeatedly turns secrets into breach paths.
At a glance
What this is: This is an analysis of why secrets management breaks down in modern cloud and DevOps environments, and why automation is the core control the article argues for.
Why it matters: It matters because IAM, PAM, and NHI teams are now governing credentials across dynamic systems where manual handling creates exposure, inconsistency, and avoidable breach risk.
By the numbers:
- 44% of organisations are currently using a dedicated secrets management system.
- 91% of former employee tokens remain active after offboarding, leaving organisations vulnerable to potential security breaches.
👉 Read OXSecurity's analysis of automated secrets management for cloud and DevOps
Context
Secrets management is the discipline of protecting passwords, API keys, certificates, tokens, and other credentials that applications and services use to authenticate and access resources. In cloud, microservices, and CI/CD environments, those secrets move constantly, which makes legacy on-premises control models too slow and too brittle for the operational reality.
The primary IAM problem is not only storage, but lifecycle control: where secrets live, who or what can use them, how often they rotate, and how quickly they are removed when no longer needed. That is why secret sprawl, shared credentials, and delayed rotation keep showing up as governance failures rather than isolated technical mistakes.
This problem space is well understood across the NHI security community. NHIMG's Ultimate Guide to NHIs and the Guide to the Secret Sprawl Challenge both frame the same issue from different angles: once credentials become embedded in cloud delivery workflows, security teams are no longer just managing access, they are managing drift.
Key questions
Q: How should security teams govern cloud secrets across DevOps and runtime systems?
A: Treat secrets as lifecycle-managed NHI credentials, not static configuration values. Assign ownership, scope every credential to a purpose, rotate it on exposure or expiry, and remove standing access wherever possible. The governance goal is to shrink the time and scope of usable access, especially in pipelines and cloud workloads.
Q: Why do secrets sprawl and duplicate credentials increase breach risk?
A: Because revoking one credential does not remove every place it was copied. If the same secret appears in repositories, pipelines, tickets, and application configs, an attacker only needs one surviving copy to regain access after the primary secret is changed.
Q: What breaks when secret rotation is treated as a standalone control?
A: Rotation alone breaks when teams do not also handle ownership, offboarding, and entitlement review. A rotated secret can still belong to a forgotten service account, and a revoked secret can still leave another credential active. Effective control comes from tying rotation to lifecycle state, not treating it as a separate hygiene task.
Q: How do organisations know whether secrets management is actually working?
A: Look for fewer exposed duplicates, faster revocation after discovery, and clear ownership for every credential. If secrets still appear in multiple locations or remain active after offboarding, the programme is producing alerts without reducing attack surface. The goal is measurable reduction in standing exposure, not just more findings.
Technical breakdown
Why secrets sprawl is hard to control in cloud systems
Secrets sprawl happens when credentials are copied into code, pipelines, ticketing systems, environment files, and multiple cloud services, creating too many hidden copies to govern manually. In distributed environments, the same secret can be reused by applications, teams, and platforms, which raises the chance of accidental exposure and makes revocation incomplete. The real technical issue is not just volume, but loss of inventory: if teams cannot enumerate every copy, they cannot reliably rotate or retire it.
Practical implication: build an authoritative secrets inventory before attempting rotation or policy enforcement.
How dynamic secrets reduce exposure windows
Dynamic secrets are generated at runtime and expire after a short, defined period, so they do not remain valid long enough to become durable breach assets. This is different from static credentials, which often persist for months or years and are reused across systems. Dynamic issuance only works well when the application can request fresh credentials reliably and when expiry, renewal, and revocation are automated end to end.
Practical implication: replace long-lived shared credentials with short-lived, task-scoped secrets wherever application architecture allows it.
Why CI/CD integration changes the secrets governance model
CI/CD pipelines turn secrets into part of the delivery chain, which means credential handling must be coordinated with build, test, deploy, and rollback steps. If secrets are injected unsafely, they end up in logs, config files, or source control, and if rotation breaks deployments, teams quietly delay controls. The governance model therefore shifts from protecting a vault to controlling every runtime handoff that touches a secret.
Practical implication: align secrets rotation, injection, and revocation with pipeline stages rather than treating them as separate security tasks.
Threat narrative
Attacker objective: The attacker aims to turn one exposed credential into broad access across cloud services, repositories, or customer data.
- entry via hardcoded AWS credentials or stolen OAuth tokens exposed in code repositories and repositories used by developers.
- escalation through reuse of the same secret across systems, or through overly broad access attached to the exposed credential.
- impact through unauthorized access to cloud data, repository content, or application resources at scale.
Breaches seen in the wild
- Sisense breach — unauthorized GitLab access led to exfiltration of access tokens, API keys and certificates.
- Shai Hulud npm malware campaign — Shai Hulud campaign: npm malware exposed secrets on GitHub.
Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Automated secrets management is now a lifecycle control problem, not a storage problem. The article correctly frames the operational burden, but the deeper issue is that secrets live across provisioning, use, rotation, and expiration states that manual governance cannot reliably track. Once credentials are distributed across cloud and CI/CD workflows, the control failure is lifecycle drift, not a single weak vault. Practitioners should treat secrets management as a continuous governance process, not a point solution.
Secret sprawl is the named concept that best explains why exposure keeps recurring. A secret can be protected in one location and still remain exploitable if duplicate copies persist in code, tickets, logs, or build artifacts. That duplication breaks the assumption that revoking one credential meaningfully ends access. Security teams should judge controls by their ability to collapse duplicate credential surfaces, not by vault adoption alone.
Least privilege fails when entitlement decisions lag behind application motion. Cloud and DevOps environments change faster than access review cadences, so secrets often outlive the business process that justified them. The governance problem is not only over-permissioning, but delayed deprovisioning and unclear ownership. Practitioners need a model where every secret has a named owner and a removal condition, or review will always be after the fact.
Automation is the only scalable control because the attack surface is now machine-paced. The article's conclusion is right that rote tasks should be automated, but the broader takeaway is that human-operated rotation cannot keep up with pipeline velocity, secret reuse, and distributed deployment. This is why secrets governance sits at the intersection of NHI management, DevOps, and IAM. Teams that still rely on manual handling are accepting a control gap they cannot observe in real time.
The breach pattern is no longer exceptional, it is structural. The historical cases cited in the article show the same failure mode repeating across companies and years: exposed credentials, delayed rotation, and inadequate visibility into where secrets live. That is not an isolated hygiene issue, it is a governance model mismatch. The practical conclusion is that organisations must redesign secrets ownership and lifecycle enforcement around the environment they actually run.
From our research:
- 88% of security professionals are concerned about secrets sprawl, with 49% of those in larger organisations described as "very concerned", according to The 2024 State of Secrets Management Survey.
- 54% of organisations are dissatisfied with their current secrets management solution because not all secrets are secured, and 43% cite lack of central management.
- That same pressure aligns with The 2025 State of NHIs and Secrets in Cybersecurity, where 62% of all secrets are duplicated and stored in multiple locations.
What this signals
Secret sprawl: when one credential exists in many places, governance shifts from single-point protection to distributed lifecycle control. For NHI and IAM teams, the practical question is no longer whether a vault exists, but whether every copy can be found, rotated, and retired before the next deployment cycle.
With 62% of all secrets duplicated and stored in multiple locations, according to The 2025 State of NHIs and Secrets in Cybersecurity, the operational challenge is inventory integrity, not policy intent. Teams should expect secrets governance to merge more tightly with CI/CD, access reviews, and offboarding workflows.
Practitioners should also expect stronger alignment between secrets controls and the OWASP Non-Human Identity Top 10, especially where secret sprawl, over-privilege, and lifecycle gaps converge. If a programme cannot account for every credential copy, it will keep rediscovering the same exposure in a different system.
For practitioners
- Inventory every credential copy across delivery paths Map where passwords, API keys, certificates, tokens, and environment secrets appear in source control, build logs, tickets, and deployment artifacts. Prioritise duplicate copies first, because revoking the primary secret does not remove hidden replicas.
- Move shared secrets to short-lived dynamic issuance Replace static credentials with runtime-generated secrets for workloads that can request them safely. Use short TTLs and automated expiry so a compromised credential has a smaller usable window.
- Bind rotation to application and pipeline events Trigger secret rotation on deployment, access change, offboarding, and compromise rather than only on a calendar schedule. Make sure the pipeline can consume updated secrets without manual intervention.
- Assign explicit ownership for every secret Give each secret a named business and technical owner, plus a removal condition tied to the application or service lifecycle. Without ownership, expired secrets linger because no one is accountable for retirement.
Key takeaways
- Secrets management fails most often when credentials are scattered across cloud, code, and delivery workflows faster than teams can govern them.
- The strongest evidence in the article points to exposure recurring through duplication, manual handling, and delayed rotation rather than a single control defect.
- The practical fix is lifecycle automation with explicit ownership, because secrets can only be governed at the speed they are created and consumed.
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 SP 800-53 Rev 5, NIST Zero Trust (SP 800-207) and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-03 | The article centers on secret rotation, exposure, and lifecycle control failures. |
| NIST CSF 2.0 | PR.AC-4 | Least-privilege access to secrets maps directly to access management controls. |
| NIST SP 800-53 Rev 5 | IA-5 | IA-5 governs authenticator management, including secret lifecycle handling. |
| NIST Zero Trust (SP 800-207) | Secrets access should be continuously verified in zero trust environments. | |
| CIS Controls v8 | CIS-5 , Account Management | Secret ownership and revocation depend on strong account and access governance. |
Inventory secrets, reduce duplication, and enforce rotation and revocation across every system that stores them.
Key terms
- 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.
- Dynamic Secret: A secret generated on-demand for a specific task and automatically revoked after use or expiry. Dynamic secrets dramatically reduce the risk of credential exposure compared to static, long-lived secrets and are considered best practice.
- Secrets Lifecycle: Secrets lifecycle is the management of credentials from issuance through rotation, revocation, and offboarding. It matters because a secret that is technically valid can still be operationally unsafe if its owner, purpose, or downstream access paths are no longer current.
What's in the full article
OXSecurity's full article covers the operational detail this post intentionally leaves for the source:
- Examples of how automated secrets handling fits into cloud, microservices, and CI/CD environments
- A step-by-step view of dynamic secrets, rotation, injection, and expiration patterns in practice
- The article's explanation of how automation reduces human error and operational overhead during secrets governance
- The source discussion of secure storage, distribution, and audit logging for secrets workflows
Deepen your knowledge
NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an identity security programme, it is worth exploring.
Published by the NHIMG editorial team on August 1, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org