Join our Newsletter — 33% off our NHI Course

Why do leaked secrets stay usable under standing privilege?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 2 years ago
Posts: 20230
Topic starter  

TL;DR: Secret scanning can find exposed API keys, tokens, and passwords across code, CI/CD, and cloud systems, but Apono says it does not remove the permissions those secrets unlock. Standing privilege and unmanaged non-human identities can keep a discovered secret live.

Editorial analysis by NHI Mgmt Group, based on content published by Apono: “Top 7 Secret Scanning Tools for 2026”.

By the numbers:

  • Machine identities now outnumber humans by more than 80 to 1.

Key questions

Q: Why do leaked API keys and tokens create such a large security risk?

A: They authenticate actions directly, so anyone who finds them can act as a trusted caller.

Q: How do security teams measure whether secret scanning is actually reducing exposure?

A: Security teams should measure the time from secret creation to detection, the percentage of repositories and build artifacts scanned, and the time from detection to rotation or revocation.

Q: What breaks when secret scanning is the only control in place?

A: Scanning breaks down when teams assume finding a secret is the same as neutralising the access it grants.

Practitioner guidance

  • Separate detection from revocation Route every high-confidence secret finding into a revoke-and-rotate workflow so discovery is immediately followed by credential invalidation and replacement.
  • Inventory the identity behind each secret Require ownership, system context, and effective permissions for every service account, token, or API key so leaked secrets can be traced to a named NHI lifecycle.
  • Convert standing access to time-bound access Replace always-on permissions with just-in-time and least-privilege access so a leaked credential cannot retain broad operational reach after exposure.

Bottom line: Secret scanning finds exposed credentials, but it does not by itself remove the permissions those credentials unlock.

Glossary terms: Secrets Scanning, Standing Privilege, Non-Human Identity Lifecycle, Blast Radius

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →


This topic was modified 1 week ago by NHI Mgmt Group

   
Quote
(@mr-nhi)
Member Moderator
Joined: 6 months ago
Posts: 20712
 

Secret scanning is not a governance control, it is an exposure detector. The article is right to position scanners as a way to find credentials in code, CI/CD, and cloud systems before abuse. But the deeper identity problem is that the scanner only tells you the secret exists. It does not change the permissions behind the secret, and it does not retire the identity that owns it. Practitioners should treat scanning as the first half of a control, not the control itself.

A few things that frame the scale:

  • 59% of compromised machines in a major 2025 supply chain attack were CI/CD runners rather than personal workstations, according to the State of Secrets Sprawl 2026.
  • 96% of organisations store secrets outside of secrets managers in vulnerable locations including code, config files, and CI/CD tools, according to the Ultimate Guide to NHIs.

A question worth separating out:

Q: What should teams do first after discovering that a CI pipeline may have exposed secrets?

A: The first response is to revoke and reissue any credentials, tokens, or keys that may have been exposed in the affected CI process. Teams should also verify the authenticity of build scripts and review repositories, docker images, and pipeline logs for hard coded secrets. Rapid secret rotation reduces the window for reuse while investigation continues.

👉 Read our full editorial: Secret scanning tools expose a deeper NHI governance gap



   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.