TL;DR: Secrets continue to leak into repos, CI logs, chat tools, and config files, and GitGuardian says leaked secrets on public GitHub rose 25% year over year while 70% of valid leaked secrets from 2022 were still valid in 2025. The governance problem is no longer discovery alone, but closing the last mile from exposure to controlled vaulting and rotation.
At a glance
What this is: This is an analysis of GitGuardian’s push-to-vault workflow, which bridges secret detection and secure storage so exposed secrets can be moved into an existing Secret Manager with less manual handling.
Why it matters: For IAM and NHI practitioners, the issue is that discovery without controlled remediation leaves live credentials in circulation and turns secrets sprawl into an operational and access-risk problem.
By the numbers:
- The State of Secrets Sprawl 2025 found a 25% year-over-year increase in leaked secrets on public GitHub.
- GitGuardian also found that 70% of the valid secrets leaked in 2022 remained valid when retested in 2025.
👉 Read GitGuardian's analysis of push-to-vault remediation for secrets sprawl
Context
Secrets governance fails when discovery and remediation live in separate workflows. In practice, teams find exposed credentials in code, logs, collaboration tools, and temporary files, but then have to move those values into a vault, update dependencies, and rotate access by hand. That gap is where NHI risk persists, because a secret is still an active identity credential until it is controlled, not merely detected.
Push-to-vault is GitGuardian’s answer to that last-mile problem, but the broader lesson is independent of the tool. Once secrets are linked to service accounts, workloads, pipelines, and agents, the organization needs a repeatable path from exposure to vaulting, rotation, and auditability. For teams building a lifecycle model, the Ultimate Guide to NHIs , Lifecycle Processes for Managing NHIs is the more durable reference point.
For secret sprawl itself, the operational challenge is already well understood. The Guide to the Secret Sprawl Challenge maps how exposed credentials spread across development and collaboration systems, which is the typical starting position for enterprises rather than an edge case.
Key questions
Q: How should teams handle leaked secrets without creating more operational risk?
A: Treat leaked secrets as live credentials and move them through a standard remediation path that includes vaulting, dependency updates, rotation, and revocation. The goal is to reduce exposure time while preserving evidence and avoiding ad hoc fixes that break applications or leave duplicate credentials behind. A controlled workflow is safer than manual copy-paste recovery.
Q: When does vaulting a secret actually reduce NHI risk?
A: Vaulting reduces risk when it is paired with ownership, rotation, and confirmation that the old value is no longer usable. If the credential is merely copied into a vault but still remains active in the application or pipeline, the identity is still exposed. Control exists only when the secret is retired everywhere it matters.
Q: What is the difference between secret detection and secret remediation?
A: Detection tells you that a secret exists in an exposed location. Remediation is the operational work that moves it into approved storage, updates the systems that depend on it, and removes the old credential from use. Detection improves visibility, but remediation is what turns visibility into actual control.
Q: Why do leaked secrets remain a persistent IAM problem?
A: Because a secret is an authentication credential, not just sensitive data. If it remains valid, it can be reused to impersonate a service account, workload, or pipeline long after the original leak. That makes leaked secrets an IAM and NHI governance issue with direct access implications, not only a secrets hygiene issue.
Technical breakdown
How push-to-vault fits into the secrets remediation workflow
Push-to-vault is a remediation pattern, not a new secrets manager. The workflow starts when a scanner finds an exposed credential in a repo, CI log, chat thread, or config file. A local agent or connector then writes that secret into an approved vault path, while the security platform keeps only metadata and hashes for tracking. The architectural point is separation of duties: detection, storage, and verification are distinct steps. That matters because the raw secret never needs to round-trip through a central SaaS control plane in clear text, which reduces handling risk while preserving auditability.
Practical implication: build remediation flows that move exposed secrets directly into an approved vault path and preserve metadata for evidence.
Why last-mile secret handling creates the real control gap
The hard part is not finding secrets. The hard part is the work between discovery and closure: deciding the target vault, selecting the correct namespace or path, updating consuming applications, and rotating the old value without breaking production. That is a governance problem disguised as an operations task. If the organization lacks a standard pathing model, remediators improvise, and that improvisation creates inconsistent storage, duplicate credentials, and weak audit trails. In NHI terms, the secret remains a live credential until the downstream systems are updated and the old value is revoked.
Practical implication: standardize vault paths and ownership before you automate secret remediation at scale.
Why vaulting is not the same as lifecycle control
Vaulting a secret helps, but it does not complete NHI governance by itself. Lifecycle control means knowing where the credential came from, where it is used, whether it is overprivileged, how often it is rotated, and what system owns its retirement. That is why exposed secrets are really identity records, not just sensitive strings. In environments with service accounts, CI/CD tokens, and API keys, the control plane must map secret events to identity events. Without that linkage, teams can prove a secret was stored safely but cannot prove the identity behind it was brought under control.
Practical implication: connect secret events to identity inventory, rotation policy, and revocation evidence.
Threat narrative
Attacker objective: The attacker objective is to turn a leaked credential into persistent access to a non-human identity and the systems it can reach.
- Entry occurs when an exposed secret is discovered in a repo, log, chat thread, or temporary config file.
- Escalation follows when the leaked value remains valid and can be reused before the owner rotates or revokes it.
- Impact is unauthorized access to the workload, service, or environment that the secret protects.
Breaches seen in the wild
- MongoBleed breach — MongoBleed exposed secrets across 87K MongoDB servers.
- 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
Push-to-vault closes a governance gap that discovery tools alone cannot solve. Finding a leaked secret is only the beginning. Until that secret is moved into approved storage, linked to a known identity, and rotated out of circulation, the organization still has a live access path. Practitioners should treat remediation workflow design as part of IAM, not as a separate DevOps cleanup task.
Secret sprawl is now an identity problem, not just a data-handling problem. Secrets authenticate service accounts, pipelines, workloads, and agents, which means every leaked token is a non-human identity with access authority. That shifts the control question from where the secret was found to how quickly the underlying identity can be contained. Teams should align secret remediation with identity inventory and privilege review.
Lifecycle governance matters more than one-time cleanup. A vaulted secret that is never rotated or traced back to its source still leaves risk behind. The field needs repeatable processes for provisioning, vaulting, rotation, and revocation so exposed credentials are retired as identities, not just filed away as incidents. Practitioners should measure closure, not just detection volume.
Automation must be constrained before it is scaled. Push-to-vault style workflows reduce manual error, but only if scope, vault paths, and write permissions are tightly bounded. Unrestricted automation can simply move sprawl from repos into poorly governed vault namespaces. Practitioners should start with narrow write scopes, audit trails, and reviewable dry-run modes.
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 Akeyless' The 2024 State of Secrets Management Survey.
- Only 44% of organisations are currently using a dedicated secrets management system, according to Akeyless' The 2024 State of Secrets Management Survey.
- For lifecycle context, see Ultimate Guide to NHIs , Lifecycle Processes for Managing NHIs for how secret events should map to provisioning, rotation, and retirement.
What this signals
Push-to-vault is a signal that NHI programmes are moving from visibility to closure. Discovery alone does not reduce attack surface if exposed credentials still require manual handling. The programme-level change is to treat remediation as a governed workflow with bounded write access, audit evidence, and identity ownership, not as an informal ticketing exercise.
Secret sprawl will keep expanding until teams control the storage path, not just the finding path. The operational lesson is that repositories, collaboration tools, and CI systems are now part of the access surface. For practitioners, the next step is to map where secrets are found to where they are allowed to land, then align that with NIST Cybersecurity Framework 2.0 and the OWASP Non-Human Identity Top 10.
Identity blast radius: leaked secrets are not isolated incidents, they are reusable credentials tied to service accounts, workloads, and automation. Once that framing is accepted, teams can prioritize tighter vault scoping, shorter rotation windows, and faster revocation workflows. The practical target is to shrink the number of credentials that remain valid after exposure, not to count alerts more efficiently.
For practitioners
- Implement a formal last-mile remediation workflow Define the steps from secret detection to vaulting, application update, rotation, and incident closure. Assign ownership for each step so teams do not improvise under pressure.
- Standardize vault paths for common NHI types Create approved destination paths for production, non-production, and team-specific credentials so responders do not invent storage locations during remediation.
- Constrain write access for remediation agents Limit automation to specific namespaces, repositories, or environments, and require dry-run output before enabling writes in production paths.
- Tie secret incidents to identity lifecycle records Link each exposed secret to the service account, token, or workload it authenticates so rotation and revocation can be tracked as identity events.
Key takeaways
- Secret leakage is only half the problem. The governance gap appears when exposed credentials remain valid long enough to be reused.
- A controlled remediation workflow is the difference between identifying risk and actually reducing it across NHI environments.
- Teams that tie secret handling to lifecycle ownership, rotation, and revocation will have a materially better chance of shrinking identity blast radius.
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-03 | Secret rotation and invalidation are central to exposed credential remediation. |
| NIST CSF 2.0 | PR.AC-1 | Credential handling and access enforcement affect who or what can use the secret. |
| NIST Zero Trust (SP 800-207) | PR.AC-4 | Least-privilege and continuous verification are needed when secrets can be reused after exposure. |
Apply PR.AC-4 by limiting secret scope and validating access continuously after rotation.
Key terms
- Push-to-vault: Push-to-vault is a remediation workflow that moves an exposed secret directly into an approved secret manager instead of leaving the response to manual copy and paste. The control value is speed with traceability, so the secret can be vaulted, rotated, and closed out with evidence.
- Secret sprawl: Secret sprawl is the uncontrolled spread of credentials across code, logs, chat tools, tickets, and temporary files. It matters because each leaked secret is a live authentication path until it is rotated or revoked, which turns a hygiene issue into an identity governance problem.
- Identity blast radius: Identity blast radius is the amount of access that becomes exposed when a non-human credential is leaked or misused. It is shaped by privilege scope, token lifetime, and how many systems trust the credential before it is detected and retired.
- Last-mile remediation: Last-mile remediation is the operational work between finding a secret and restoring safe control over it. It includes choosing the right vault location, updating consuming systems, rotating the old value, and preserving proof that the credential is no longer active.
What's in the full article
GitGuardian's full article covers the operational detail this post intentionally leaves for the source:
- How ggscout writes discovered secrets into approved vault paths without storing raw values in GitGuardian
- Configuration patterns for read-only, dry-run, and write-enabled remediation modes
- Examples of how Push-to-Vault maps incidents to vault hierarchies for teams, repos, and environments
- How remediation metadata is used to show which incidents are vaulted, rotated, and still open
Deepen your knowledge
Secrets remediation and lifecycle control are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If your team is trying to move from detection to governed closure, the course is a practical next step.
Published by the NHIMG editorial team on 2025-12-05.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org