Secrets fragmentation occurs when credentials are spread across multiple tools, environments, or ownership boundaries. It weakens central control because no single team can reliably see every secret, enforce consistent rotation, or prove that all exposures have been removed.
Expanded Definition
Secrets fragmentation is the operational state where credentials, tokens, API keys, certificates, and signing material are dispersed across code repositories, chat tools, ticketing systems, vaults, CI/CD runners, and team-owned spreadsheets. In NHI operations, that dispersion creates governance gaps even when each individual secret looks “managed.” Definitions vary across vendors, but the core problem is the same: no single control plane can reliably inventory, rotate, revoke, and attest to the full secret estate.
This matters because fragmented secrets break the assumptions behind centralized policy enforcement. If one application stores a token in a vault, another in a pipeline variable, and a third in a Confluence page, exposure handling becomes a coordination problem rather than a control problem. The industry is still evolving on exact boundaries between secret sprawl, shadow secrets, and vault fragmentation, so NHI teams should treat the term as a risk pattern rather than a product category. The OWASP Non-Human Identity Top 10 frames this as a core governance issue, not just a hygiene issue. The most common misapplication is assuming that a vault eliminates fragmentation, which occurs when secrets remain duplicated in CI/CD variables, chat history, and stale service account stores.
Examples and Use Cases
Implementing secret centralisation rigorously often introduces workflow friction, requiring organisations to weigh developer speed against revocation certainty and auditability.
- A release pipeline stores deployment tokens in a build system, while the same credentials also exist in a team vault and an engineer’s local config file. The Guide to the Secret Sprawl Challenge shows how duplicated storage delays clean-up after exposure.
- A SaaS integration uses different API keys for staging, production, and testing, but ownership is split across platform, app, and security teams. That split mirrors the pattern seen in the Shai Hulud npm malware campaign, where exposed secrets became hard to enumerate quickly.
- An AI agent receives temporary access through a shared token stored in a prompt engineering workspace, then the same token is reused in automation scripts. This is where the Reviewdog GitHub Action supply chain attack pattern becomes relevant: one exposed path can cascade into many downstream systems.
- Onboarding teams create new vaults without security approval, so secrets migrate in name only and remain duplicated elsewhere. That is often a precursor to the misconfiguration patterns documented in 230M AWS environment compromise.
- Repository secrets, chat-shared credentials, and ticket attachments coexist for the same service account, making revocation incomplete and incident response slow.
Why It Matters in NHI Security
Secrets fragmentation is dangerous because NHI security depends on lifecycle control, not just secret existence. When credentials are duplicated across tools, teams cannot prove which copy is authoritative, which copy is stale, or whether revocation has actually removed access everywhere. That weakens PAM, RBAC, and JIT workflows, and it undermines Zero Trust Architecture because trust decisions are only as good as the secret inventory behind them.
NHIMG research shows why this is not theoretical: The State of Secrets Sprawl 2026 reported that 62% of all secrets are duplicated and stored in multiple locations, a direct indicator that fragmentation is widespread. That same research found that 28% of secrets incidents now originate outside code repositories, including Slack, Jira, and Confluence, which means teams miss exposures if they only scan source control. The operational lesson is clear: fragmented secrets create blind spots, stale access, and incomplete remediation. Organisations also need the broader governance lens in the 52 NHI Breaches Analysis and the control expectations in the OWASP Non-Human Identity Top 10. Organisations typically encounter the consequence only after a leak or offboarding failure, at which point secrets fragmentation becomes operationally unavoidable to address.
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 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-02 | Covers improper secret management and fragmentation across NHI workflows. |
| NIST CSF 2.0 | PR.AC-1 | Secret fragmentation weakens access control visibility and accountability. |
| NIST Zero Trust (SP 800-207) | Zero Trust depends on continuous verification of identity and credentials. |
Inventory, centralize, rotate, and revoke all NHI secrets under one governed control process.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on May 30, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org