TL;DR: Secrets management failures keep turning convenience shortcuts into breach paths and operational outages, with exposed credentials, hardcoded keys, and leaked tokens still common in modern development and cloud workflows, according to Infisical’s guide. The governance gap is not awareness but control over where secrets live, who can fetch them, and how quickly exposure is neutralised.
At a glance
What this is: This is a secrets management guide arguing that secret sprawl, hardcoded credentials, and slow rotation remain central causes of breach and outage risk.
Why it matters: IAM, NHI, and platform teams need to treat secrets as governed identities because exposure, blast radius, and operational dependency now intersect in the same control plane.
Context
Secrets management is the discipline of controlling where credentials live, who can fetch them, and how quickly they can be revoked or replaced. The problem in this article is not a lack of awareness, but a control gap: secrets keep spreading into repositories, chats, local files, and CI workflows faster than teams can govern them.
For identity programmes, the issue sits at the junction of NHI governance, cloud operations, and application delivery. When service credentials, API keys, and certificates become routine infrastructure inputs, the practical question becomes whether the organisation can still prove ownership, scope, and lifecycle control at scale.
The article also links poor secrets handling to both security incidents and outages. That matters because the same credential that opens a production system can also be the one that breaks deployments when it expires, rotates, or is copied inconsistently across environments.
Key questions
Q: What breaks when organisations do not centralise secrets management?
A: Without centralisation, teams lose visibility into where secrets live, who can access them and whether they have been rotated or revoked. That makes audit, offboarding and incident response slower and less reliable. Fragmented secret storage is one of the clearest signs that lifecycle governance is incomplete.
Q: Why do leaked service credentials so often lead to lateral movement?
A: Because many credentials are over-scoped and reused across systems. Once an attacker gets a token, key, or certificate that can reach multiple services, the compromise stops being a single login event and becomes a route to additional systems and data.
Q: How do security teams know whether secret rotation is actually working?
A: Rotation is working only if exposed credentials are found quickly, revoked everywhere they are used and replaced before attackers can reuse them. If a secret remains valid after exposure, or if owners cannot prove where it was deployed, rotation is only reducing exposure on paper. The signal to watch is not the rotation schedule, but the time from leak to invalidation.
Q: Should organisations prioritise dynamic secrets over managed storage?
A: Prioritise dynamic secrets when credential lifetime is the main risk and the workload can authenticate without a permanent shared secret. Prioritise managed storage when the estate is mostly single-cloud and the operating burden of self-managed platforms would create more risk than the credential lifetime you are trying to reduce.
Technical breakdown
Why secret sprawl breaks central control
Secret sprawl is the uncontrolled growth of credentials across tools, teams, and environments. In practice, it means no single system can reliably answer what secrets exist, where they are stored, who can read them, and whether they are still valid. That is why plaintext files, Slack messages, and scattered .env files become more than bad habits: they create an inventory problem that makes governance impossible. Once that happens, auditability, revocation, and blast-radius reduction all depend on guesswork rather than policy.
Practical implication: treat inventory and ownership as the first control layer, because you cannot govern secrets you cannot enumerate.
How blast radius grows when secrets are reused
A secret is not just a login mechanism; it is a delegated path into systems and data. If a single AWS token, OAuth token, or contractor credential can reach multiple services, then compromise of that one secret becomes a lateral-movement opportunity. Reuse and over-scoping turn a single leak into a multi-system exposure event. Dynamic secrets reduce that window by issuing credentials that expire quickly, while least privilege constrains what the leaked secret can touch if it is abused.
Practical implication: scope each secret to one purpose and one environment, then shorten its lifetime enough to limit reuse after exposure.
Why rotation can still cause outages
Rotation is meant to invalidate stolen credentials, but the article shows why it can also disrupt service delivery. If one secret changes before every dependent system receives the new value, applications fail, deployments stall, and teams lose confidence in rotation altogether. The technical issue is propagation, not the concept of rotation itself. Successful rotation depends on overlapping validity windows, automated distribution, and verification that consuming systems have picked up the new credential before the old one is retired.
Practical implication: design rotation around propagation and validation, not just expiry dates, or you will trade exposure risk for outage risk.
Threat narrative
Attacker objective: The attacker objective is to turn a leaked secret into durable access to systems, data, or cloud resources before the organisation invalidates it.
- Entry begins when a secret is exposed through a public repository, a shared file, or another convenience channel that was never designed for credential handling.
- Credential access follows when the exposed value remains valid long enough for an attacker to use it before rotation, revocation, or detection catches up.
- Escalation occurs when that one credential provides access to additional systems, APIs, or cloud resources beyond the original intended scope.
- Impact is breach, outage, or both, because the same secret that unlocks production also becomes the mechanism for data theft or service disruption.
Breaches seen in the wild
- Toyota T-Connect key exposure 2022: A subcontractor left a T-Connect server key on public GitHub from 2017 to 2022; 296,019 customers' emails were exposed, misuse unknown.
- iOS apps leaking hard-coded secrets: Cybernews found 71% of 156,080 iOS apps leak hard-coded secrets, with open cloud storage and Firebase databases exposing user data.
Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Secret sprawl is a governance failure, not a training failure. People will keep taking the fastest path when release pressure is high, which is why the real problem is not awareness but the absence of enforceable control over secret inventory, access, and revocation. A programme that relies on memory, spreadsheet tracking, or ad hoc sharing is already operating beyond its assurance model. The practitioner conclusion is simple: if ownership and lifecycle cannot be proven, the control does not exist.
Blast radius, not mere exposure, is the metric that should drive secrets policy. A leaked credential matters according to what it can reach, how long it remains valid, and whether it can be exchanged for more privilege. That is why least privilege and short-lived credentials are not separate hygiene tasks but the structure of usable containment. The practitioner conclusion is to prioritise secrets by reach and consequence, not by how recently they were created.
Dynamic secrets are the cleanest answer to an old assumption: that a secret should survive long enough to be reused. The article shows the opposite model, where the value of a credential should expire with the task that needed it. Static secrets, especially when duplicated across services and environments, create hidden persistence that attackers can monetise later. The practitioner conclusion is to replace reusability with task-scoped credentials wherever the workload allows it.
Secrets lifecycle governance now spans human, machine, and cloud identity boundaries. Engineers may create the exposure, service accounts may consume it, and automated systems may fail when rotation or revocation is not synchronised. That makes this problem cross-domain by nature, not merely a DevOps hygiene issue. The practitioner conclusion is to govern secrets as identity assets with owners, scope, monitoring, and retirement rules.
Compliance pressure is only reinforcing a control reality that already exists. The article ties auditability, logging, and central vaulting to SOC 2, PCI DSS 4.0, GDPR, and related expectations, but the operational case would stand even without regulation. Organisations that cannot answer who fetched a secret, when, and from where have lost basic control of the identity surface. The practitioner conclusion is to make traceability a design requirement, not a reporting afterthought.
From our research library:
- 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, according to the 2024 State of Secrets Management Survey.
- Read next: Secrets Management Buyer's Guide
What this signals
Secret sprawl is now a control-plane problem: once credentials exist in repositories, chat tools, local files, and pipeline variables at the same time, governance shifts from protection to reconstruction. Practitioners should assume that inventory gaps will expose the organisation long before any single secret is rotated.
The next programme question is not whether secrets should be centralised, but whether access can be issued and revoked fast enough to match modern delivery cycles. That is where vault design, workload identity, and short-lived credential patterns become operational controls rather than architecture preferences.
For practitioners
- Inventory every secret and assign an owner Build and maintain a complete registry of API keys, tokens, certificates, and cloud credentials, including where each one is stored and which workload uses it. Use that inventory to identify orphaned secrets, duplicated values, and unknown access paths.
- Move high-value credentials into a central vault Stop relying on plaintext files, chat messages, and local .env copies as operational storage. Use a central vault with access logging so revocation, audit, and rotation are coordinated from one control point.
- Scope credentials to one workload or environment Separate development, staging, and production credentials, and avoid sharing the same secret across unrelated services. A read-only analytics job should not inherit the same permissions as a deployment pipeline or a data migration task.
- Automate rotation with overlap and verification Rotate static credentials on a schedule, but keep overlapping validity windows so consuming systems can adopt the new secret before the old one expires. Confirm propagation before invalidating the previous credential.
- Prefer dynamic secrets where the workload allows it Issue short-lived credentials for databases, cloud roles, and internal service access so a leak loses value quickly. Reserve static secrets only for cases where the provider or application cannot support short-lived issuance.
Key takeaways
- Secrets management failures persist because credentials are still copied, shared, and reused in places that governance cannot reliably see.
- The article links this problem to both breach exposure and operational disruption, with centralisation and shorter-lived credentials doing the most work to reduce risk.
- Teams that cannot inventory, scope, and revoke secrets quickly should treat secret sprawl as an active identity governance problem, not a tooling inconvenience.
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 MITRE ATT&CK address the attack and risk surface, while NIST SP 800-53 Rev 5 sets the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-02 — Secret Leakage | The article centres on exposed secrets across repos, chats, and files. |
| NHI-05 — Overprivileged NHI | It shows how broad credential scope increases blast radius after compromise. | |
| NHI-07 — Long-Lived Secrets | The article argues that static, persistent credentials remain exploitable too long. | |
| Recommendation — Scan for leaked secrets and revoke exposed credentials before they can be reused. Reduce secret scope so a single leaked credential cannot reach unrelated systems. Replace long-lived secrets with short-lived issuance wherever the workload supports it. | ||
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | Credential lifecycle, rotation, and revocation are central to the article's guidance. |
| Recommendation — Apply IA-5 to automate secret rotation and retire stale authenticators promptly. | ||
| MITRE ATT&CK | TA0006;TA0008 — Credential Access; Lateral Movement | The article describes stolen credentials enabling further access across systems. |
| Recommendation — Map exposed secrets to credential access and lateral movement risk in threat detection. | ||
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.
- Blast Radius: The potential scope of damage if a specific credential or identity is compromised. Identities with broad permissions have a larger blast radius and represent a higher priority for least-privilege enforcement and security controls.
- 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.
- Overlapping Validity Window: An overlapping validity window is the period during rotation when both the old and new secret remain accepted. It lets services adopt the replacement credential before the previous one is invalidated, which reduces outage risk during controlled rotation.
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 responsible for identity security strategy or NHI governance in your organisation, it is worth exploring.
Published by the NHIMG editorial team on July 8, 2026.
Updated on October 11, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org