Subscribe to the Non-Human & AI Identity Journal

Why do secrets managers not fully solve NHI risk?

They solve custody, not runtime trust. A vault can centralise storage and log retrieval, but it cannot stop a credential from being copied, cached, reused, or replayed after delivery. That is why organisations need runtime identity controls for workloads that can authenticate without a persistent secret.

Why This Matters for Security Teams

Secrets managers are necessary, but they do not eliminate NHI exposure because the risk is not just where a secret is stored. The real problem is what happens after delivery: copying into scripts, caching in memory, reuse across services, and replay from logs or tickets. That is why NHI governance has to extend beyond vault hygiene into lifecycle control, as outlined in the Ultimate Guide to NHIs and the Top 10 NHI Issues.

This is also why compliance-style checks often miss the issue. A vault can prove retrieval was approved, but not that the credential was never copied, shared, or reused outside its intended runtime context. The OWASP Non-Human Identity Top 10 treats exposed and overprivileged machine identities as a core design flaw, not an edge case. In 52 NHI Breaches Analysis, the pattern is consistent: custody failures and runtime misuse reinforce each other. In practice, many security teams encounter credential misuse only after an application has already reused a token in a way no vault policy was designed to stop.

How It Works in Practice

Effective NHI risk reduction starts by treating secrets managers as one control layer in a broader runtime trust model. The vault should issue or broker access, but the workload still needs its own identity, short-lived credentials, and request-time policy checks. That means combining workload identity, JIT credential provisioning, and intent-based authorization so the decision is made when the action is attempted, not when the secret was first retrieved. NIST’s NIST Cybersecurity Framework 2.0 and the OWASP Non-Human Identity Top 10 both point toward this shift from static custody to continuous control.

Operationally, that usually means:

  • binding the workload to a cryptographic identity rather than a shared static secret,
  • issuing ephemeral tokens per task or session with narrow scope and short TTL,
  • enforcing policy at request time with context such as workload, destination, and action,
  • revoking or invalidating credentials immediately after task completion, and
  • logging both secret issuance and actual runtime use so anomalous reuse can be detected.

NHIMG research shows why this matters at scale: Entro Security’s 2025 State of NHIs and Secrets in Cybersecurity reports that 44% of NHI tokens are exposed in the wild, often in tickets, chat tools, or code commits. That is not a vault problem alone; it is a lifecycle and runtime problem. Current guidance suggests pairing the vault with policy-as-code, ZTA principles, and ownership controls so a copied secret becomes far less useful. These controls tend to break down when workloads share credentials across multiple applications because the runtime context becomes too broad to enforce meaningful least privilege.

Common Variations and Edge Cases

Tighter secret controls often increase delivery complexity, so teams have to balance short-lived credentials and policy checks against automation overhead and service reliability. That tradeoff is especially visible in legacy systems, batch jobs, and CI/CD pipelines, where static credentials are still embedded in tools that cannot yet request ephemeral identity on demand. In those environments, a vault reduces sprawl, but it does not remove the underlying exposure unless the application itself changes. The Guide to the Secret Sprawl Challenge is useful here because it shows how duplication and shadow storage make secrets managers look effective while risk continues elsewhere.

Best practice is evolving toward workload identity and runtime policy, but there is no universal standard for every architecture yet. For high-autonomy systems, especially agents and tool-using workloads, the harder question is not whether a secret exists, but whether the system should be using a persistent secret at all. In those cases, the CI/CD pipeline exploitation case study and Reviewdog GitHub Action supply chain attack show how quickly one credential can be propagated, reused, and abused across systems. The practical answer is to minimise standing secrets, isolate workloads, and treat every long-lived credential as technical debt that should be retired rather than merely stored more safely.

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 Addresses secret exposure, reuse, and weak lifecycle control for machine identities.
NIST CSF 2.0 PR.AC-4 Covers least-privilege access and runtime authorization for non-human workloads.
NIST Zero Trust (SP 800-207) SC-23 Supports continuous verification instead of trusting a delivered secret.

Replace persistent secrets with short-lived workload credentials and review where NHI-03 still allows standing access.