TL;DR: Weak secrets management now drives a large share of cloud incidents, with Cycode citing 22% of overall security incidents in 2025 stemming from credentials in public view. The real problem is not storage alone but secret sprawl across code, CI/CD, and collaboration tools, where rotation and detection must work together.
At a glance
What this is: This is an analysis of secrets management tools in 2026, and its central finding is that vaults alone do not solve secret sprawl, exposed credentials, or lifecycle risk.
Why it matters: It matters because IAM, PAM, and NHI teams need to govern where credentials appear, how they are detected, and when they are rotated or revoked across modern delivery pipelines.
By the numbers:
- Weak secrets management now ranks as one of the biggest contributors to cloud data breaches, with credentials in public view sparking 22% of overall security incidents in 2025.
- 28.65 million new hardcoded secrets were detected in public GitHub commits in 2025 alone, a 34% year-over-year increase and the largest single-year jump ever recorded.
- 64% of valid secrets leaked in 2022 are still valid and exploitable today, proving that detection alone is not enough without automated revocation.
👉 Read Cycode's guide to the best secrets management tools of 2026
Context
Secrets management is the discipline of controlling how credentials such as API keys, passwords, tokens, and certificates are stored, retrieved, rotated, and revoked. In this article, the primary governance problem is not whether secrets can be vaulted, but whether organisations can prevent secrets from appearing in places they should never reach in the first place.
The article's own evidence points to a broader identity failure across code repositories, CI/CD pipelines, chat tools, ticketing systems, and cloud infrastructure. That is an NHI governance problem, because the exposed objects are machine credentials and the controls needed span discovery, validation, lifecycle management, and access scope.
For practitioners, the key question is whether secrets management is being treated as a storage decision or as a full credential lifecycle control. The latter is the only framing that matches how modern breaches actually happen, especially when secrets outlive the systems and workflows that created them.
Key questions
Q: How should security teams govern secrets across code, vaults, and collaboration tools?
A: Treat secrets as lifecycle-bound identities, not static strings. Security teams should inventory them across code, vaults, tickets, chat, and build systems, assign an owner and purpose to each one, and enforce rotation and revocation through a single process. Discovery without ownership leaves valid access scattered across the enterprise.
Q: Why do static credentials create more risk than short-lived access tokens?
A: Static credentials create more risk because they remain valid until someone finds and removes them, which gives attackers a durable entry path. Short-lived tokens reduce exposure time, but they still need scope limits and revocation. The real control is the combination of short lifetime, least privilege, and continuous review.
Q: How do organisations know if secrets management is actually working?
A: Secrets management is working only when credentials are absent from endpoints, build logs, environment variables, and source-controlled configuration. If secret scanners still find high-value tokens in routine developer paths, the control is not operating as designed, regardless of policy statements or vault adoption.
Q: What is the difference between secret scanning and secrets management?
A: Secret scanning finds credentials that have been exposed, while secrets management controls how credentials are stored, issued, rotated, and revoked. Scanning is detective. Management is preventive and lifecycle-based. Strong programmes need both because discovery alone does not remove access.
Technical breakdown
Why vaults do not eliminate secret exposure
A vault centralises credential storage, but it does not prevent developers, automation, or collaboration workflows from creating new exposure paths. Secrets can still be hardcoded into repositories, copied into CI/CD variables, pasted into tickets, or logged by applications. Modern secrets management therefore has two different jobs: protect the known credential store and detect credentials that bypass it. The article correctly distinguishes management from detection, because organisations often fail at the handoff between these two layers. A vault that is technically sound still leaves a blind spot if the surrounding development workflow is not continuously scanned.
Practical implication: treat vaulting and secret detection as linked controls, not interchangeable ones.
Dynamic secrets and runtime credential resolution
Dynamic secrets replace reusable static credentials with short-lived credentials issued at runtime. In practice, an application authenticates to the secrets system, retrieves a temporary secret, and uses it only for the active session or task. This reduces persistence and limits blast radius, but only when the application identity is governed correctly and the rotation model is reliable. The article's examples across AWS Secrets Manager, HashiCorp Vault, and similar tools show that lifecycle control is the real differentiator, not storage format alone. The operational challenge is making sure credentials are not still valid long after their original purpose has ended.
Practical implication: prioritise systems that can issue, expire, and revoke credentials automatically at runtime.
Secrets detection across code and collaboration systems
Secrets rarely stay confined to source code. The article highlights exposure in Slack, Jira, Confluence, Teams, and cloud storage, which means the detection perimeter must extend beyond repositories. That changes the technical model from code scanning to enterprise-wide secret discovery, validation, and response. If a secret is discovered in a chat thread or ticket, the security issue is not merely visibility but whether the secret is still live and can be abused immediately. This is why validation matters as much as detection. Without validation, teams generate alerts but still do not know whether exposure is exploitable.
Practical implication: scan collaboration systems and validate exposed secrets before assuming the exposure is benign.
Threat narrative
Attacker objective: The attacker aims to convert exposed reusable credentials into unauthorized access that can be monetised, persisted, or used to expand into cloud and development environments.
- Entry occurs when attackers find exposed credentials in public repositories, chat systems, or configuration files rather than breaking authentication directly.
- Escalation follows when those secrets are still valid, allowing access to cloud services, CI/CD systems, databases, or AI-related tooling with little resistance.
- Impact comes from persistence, lateral movement, data exposure, or ransomware activity once standing credentials are abused at scale.
Breaches seen in the wild
- Sisense breach — unauthorized GitLab access led to exfiltration of access tokens, API keys and certificates.
- IOS app secrets leakage report — iOS apps leaking hardcoded secrets and credentials endangering user privacy.
Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Vault-only thinking is now a governance failure, not a security strategy. Secrets management tools can store credentials safely, but they cannot compensate for development and collaboration workflows that keep leaking new secrets into uncontrolled places. The discipline now has to treat discovery, validation, rotation, and offboarding as one lifecycle problem. Practitioners should stop evaluating secrets platforms as storage products and start judging them as lifecycle control systems.
Secret sprawl is the real control boundary, not the vault. The article's strongest signal is that secrets now appear in repositories, tickets, chat systems, and cloud assets with equal ease. That means the security boundary has moved upstream into creation and distribution, where most IAM programmes are weakest. Teams should treat any uncontrolled secret-bearing workflow as an identity governance issue, because the credential itself is the identity.
Credential validation changes secrets management from alerting to exposure triage. A found secret is only useful to defenders if they can determine whether it is still active and where it can reach. That is the difference between a hygiene alert and a breach window. In practice, secrets governance should prioritise active-secret reduction, not just detection volume, because dormant findings do not change risk the way valid credentials do.
Static secret persistence is the same structural problem across NHI, human, and autonomous workflows. The article points to a broader pattern: credentials remain usable long after the human, pipeline, or agent that created them has moved on. That breaks lifecycle assumptions across IAM, PAM, and NHI governance. The implication is that organisations need one cross-domain model for issuance, detection, revocation, and recertification rather than separate controls for each workload class.
From our research:
- 64% of valid secrets leaked in 2022 are still valid and exploitable today, according to The State of Secrets Sprawl 2026.
- 28.65 million new hardcoded secrets were detected in public GitHub commits in 2025 alone, a 34% year-over-year increase and the largest single-year jump ever recorded.
- Guide to the Secret Sprawl Challenge shows how exposure shifts when credentials appear outside repositories and into collaboration workflows.
What this signals
Secret sprawl is now a lifecycle problem that spans code, chat, and cloud boundaries. If your programme only scans repositories, you are missing where a meaningful share of exposure now happens. With 24,008 unique secrets exposed in MCP configuration files in 2025 alone, the control plane must extend to the places where machine credentials are created and shared, not just where they are stored.
Active-secret reduction should become a primary operating metric. The useful question is no longer how many secrets were found, but how many of them still authenticate and where they can reach. That shifts reporting from volume to exposure, which is a better measure for IAM, PAM, and NHI teams trying to reduce real blast radius.
For practitioners
- Expand secret discovery beyond repositories Scan Slack, Teams, Jira, Confluence, and cloud storage in the same control plane as source code so exposed credentials do not escape detection simply because they moved out of Git.
- Prioritise active-secret validation Separate dormant findings from live credentials, then revoke or rotate only the secrets that still authenticate successfully and have a reachable service path.
- Replace static credentials with runtime issuance Use dynamic secrets, workload identity, and short-lived credentials where applications can authenticate without embedding reusable tokens into code or pipelines.
- Tie secret rotation to offboarding events Rotate and retire credentials when services, vendors, or delivery workflows change, not only on a calendar schedule, so old secrets do not survive organisational drift.
Key takeaways
- Secrets management fails when organisations treat vaults as the whole control plane instead of one part of a credential lifecycle.
- The evidence points to live credential exposure across repositories, collaboration tools, and cloud workflows, which makes validation and revocation just as important as detection.
- Practitioners should measure active-secret exposure, not scanning volume, because risk only falls when usable credentials disappear from uncontrolled locations.
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 CSF 2.0, NIST SP 800-53 Rev 5 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-01 | Secret sprawl and exposed credentials are the article's core NHI risk. |
| NIST CSF 2.0 | PR.AC-4 | The article centers on access scope and credential governance. |
| NIST SP 800-53 Rev 5 | IA-5 | Secret rotation and authenticator management are central to this topic. |
| NIST Zero Trust (SP 800-207) | Runtime credential use and least privilege align with zero trust principles. | |
| MITRE ATT&CK | TA0006 , Credential Access; TA0010 , Exfiltration | Exposed secrets enable credential access and downstream data theft. |
Map leaked-secret scenarios to credential access and exfiltration tactics for detection and response.
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.
- Secret Validation: Secret validation is the attacker practice of testing stolen credentials against the target provider to confirm that they still work. In supply chain attacks, this turns a stolen token from a possibility into an active access path, often within minutes or hours of theft.
- Credential Lifecycle: Credential lifecycle is the process of issuing, rotating, expiring, and revoking secrets, certificates, and tokens across their usable life. For non-human identities, lifecycle discipline is the core control that separates temporary access from persistent exposure.
What's in the full article
Cycode's full article covers the operational detail this post intentionally leaves for the source:
- Side-by-side feature summaries for 16 secrets management tools and the environments they fit best.
- Tool-specific notes on rotation, validation, CI/CD integration, and cloud-native support.
- Practical selection criteria for teams comparing vaults, detection platforms, and hybrid approaches.
- Implementation details behind secret detection across code, chat, and cloud storage.
👉 Cycode's full article covers the tool-by-tool comparisons and implementation details.
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 August 20, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org