By NHI Mgmt Group Editorial TeamBased on Truffle Security: “We've been doing NHI since 2016” (October 31, 2025)

TL;DR: Truffle Security argues that pattern-based secret scanning creates too many false positives and misses whether a leaked credential is still live, so liveness checking is now central to NHI secret detection and remediation. The control changes detection from possible exposure to proven exploitability, which is the difference that matters operationally.


At a glance

What this is: This article says NHI secret detection has to prove whether a credential still works, not just whether it looks like a secret.

Why it matters: IAM and security teams need liveness verification because leaked credentials only become manageable when detection, revocation, and remediation are tied to actual exploitability.

👉 Read Truffle Security's analysis of why liveness checking matters for NHI secret detection


Context

Liveness checking is the practice of validating whether a discovered credential can still authenticate to its target service. In NHI programmes, that matters because a string that resembles a secret can be harmless noise, while a live credential is an active identity risk.

The article argues that simple pattern matching is not enough for NHI secret detection because it generates false positives and leaves teams uncertain about which exposures are real. For practitioners, the governance problem is not discovery alone, but proving whether a secret is still usable before remediation decisions are trusted.


Key questions

Q: What breaks when code scanning stops at pattern matching instead of tracing attack chains?

A: When scanning stops at pattern matching, teams get two problems. They miss exploitable issues that do not resemble known signatures, and they spend time triaging alerts that are technically risky but not actually exploitable in context. The result is weaker prioritisation, slower remediation, and blind spots around cross-file behaviours, authorization logic, and multi-step attacks.

Q: Why does liveness checking matter for leaked NHI credentials?

A: Because only a live credential can still authenticate and create an active access path. Liveness checking tells practitioners whether a discovered secret is immediately exploitable, which makes the result operationally meaningful. Without that proof, teams are left with uncertainty about whether they are handling noise or a real identity exposure.

Q: How do security teams know whether Teams remediation is working?

A: They should measure dwell time, removal latency, and the percentage of malicious messages removed before any user interaction. If detection is happening but content stays visible long enough to be clicked, the control is not effective enough. Audit trails should show fast, consistent containment.

Q: Should organisations prioritise all leaked secrets equally?

A: No. A leaked secret that still authenticates is more urgent than a candidate value that never worked or has already been revoked. Prioritisation should follow exploitability, privilege scope, and the systems the credential can reach. That approach reduces noise and concentrates response on real access risk.


Technical breakdown

Why pattern matching creates weak NHI signals

Regular expressions and entropy checks can identify values that look secret-like, but they cannot tell whether the value is active, revoked, scoped correctly, or even valid for a real service. That makes them useful as a first pass, but weak as a control boundary. In NHI programmes, the detection layer must distinguish probable exposure from proven exposure because the operational burden of chasing false positives can hide the one credential that still works. The article's point is that detection quality changes when validation is added, because the question moves from “does this look like a secret?” to “can this secret actually be used?”

Practical implication: Use liveness verification to separate candidate secrets from active credentials before opening remediation tickets.

How liveness checking closes the remediation loop

Liveness checking is an active validation step that attempts to authenticate the found secret against the relevant provider or service. If the credential works, the exposure is real; if it fails, the scan result can be downgraded or discarded. This matters because revocation is only measurable when the scanner can re-check the same credential after remediation. In other words, liveness checking gives teams a post-revocation proof point instead of relying on manual confirmation. That turns secret response into a closed loop rather than an assumed outcome.

Practical implication: Re-scan revoked credentials and require a failed live check before closing the incident.

Why live secrets change prioritisation

A live secret is not just a finding, it is evidence of an exploitable identity path. That makes prioritisation more defensible because teams can rank by actual access potential rather than by string confidence alone. The same logic applies across SaaS, cloud, and developer workflows: if the credential still authenticates, it can be abused immediately, regardless of where it was discovered. Liveness therefore reduces ambiguity in triage and shifts the focus from counting findings to measuring access risk. For identity programmes, that is the difference between inventory and control.

Practical implication: Prioritise live credentials first, then sort by the access they confer and the systems they reach.


  • 12,000 secrets in LLM training data: Truffle Security found 11,908 live API keys and passwords hard-coded in web pages captured by Common Crawl, a dataset used to train LLMs.
  • Red Hat Consulting GitLab breach 2025: Extortionists copied a Red Hat Consulting GitLab instance, exposing customer tokens, keys and database connection strings held in engagement reports.

Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Liveness is the control that converts secret detection into identity verification. Pattern matching tells you that a value might be sensitive, but it does not tell you whether the credential still grants access. Once teams accept that distinction, the governing question changes from finding secrets to proving active identity state before trusting response decisions.

Alert fatigue is not a tooling inconvenience, it is a governance failure mode. When scanners produce large volumes of false positives, the real credential gets buried in review queues and the response process loses credibility. The practical implication is that NHI programmes need validation at discovery time, not just inventory after the fact.

Lifecycle control for secrets now depends on continuous reachability checks. A credential that was revoked yesterday but still authenticates today is a governance defect, not a detection artifact. In OWASP-NHI terms, this aligns with leaked secrets and long-lived secrets as live operational risks rather than static findings, and it should be treated as such in every secret response workflow.

Identity assurance for machines is moving toward proof, not assumption. The same NHI can be present in code, logs, or repositories, but only liveness reveals whether it remains a usable access path. The implication is that NHI governance increasingly has to measure access reality, not just credential presence.

Secret detection without liveness checking leaves the programme blind to exploitability. That is the central concept this article sharpens: credential liveness gap: the distance between identifying a possible secret and proving whether it can still be used. Practitioners should treat that gap as a control weakness in its own right.

What this signals

Credential liveness gap: NHI programmes that stop at discovery are treating exposure as a static list problem instead of an access verification problem. Once liveness becomes the control boundary, detection quality, remediation proof, and incident triage all improve together.

Secret scanning only becomes governance-grade when it can answer whether the credential still works. That means teams should align discovery tooling, revocation workflows, and post-remediation validation around the same identity source of truth.


For practitioners

  • Implement live secret validation Add provider-level authentication checks to every discovered credential so teams can separate active secrets from false positives before triage.
  • Re-scan after revocation Require a second validation pass after secret rotation or revocation to confirm the credential no longer authenticates and the exposure is closed.
  • Prioritise by exploitability Rank leaked credentials by whether they still work and what permissions they expose, then route the live ones to immediate response.
  • Track secret state through the lifecycle Maintain an inventory that records discovery, validation, revocation, and post-revocation status so secret handling does not stop at detection.
  • Separate noisy scans from confirmed exposures Use liveness results to suppress non-working candidates so analysts spend time on credentials that can actually be abused.

Key takeaways

  • Pattern-based secret scanning is useful for discovery, but it is not enough to determine whether a credential is still exploitable.
  • Liveness checking turns leaked credential handling into a closed-loop process by confirming whether revocation actually removed access.
  • For NHI governance, the decisive question is not whether a secret exists somewhere in the estate, but whether it still authenticates today.

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 addresses the attack and risk surface, while NIST SP 800-53 Rev 5, CIS Controls v8 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-02 — Secret LeakageThe article is fundamentally about leaked secrets that may still be active.
NHI-07 — Long-Lived SecretsLiveness becomes critical because long-lived credentials remain usable long after discovery.
Recommendation — Validate exposed secrets for active use and revoke any credential that still authenticates. Shorten secret lifetime and require post-remediation verification before closure.
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementIA-5 covers the lifecycle handling of authenticators, including rotation and invalidation.
Recommendation — Apply authenticator management controls to detect, revoke, and revalidate exposed machine credentials.
CIS Controls v8CIS-5 — Account ManagementThe article focuses on identifying and removing active credential paths tied to identities.
Recommendation — Manage exposed credentials as account lifecycle events and remove stale access paths quickly.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsLive secret validation is about whether permissions and authorisations are still real.
Recommendation — Verify that exposed credentials still map to current permissions and revoke them when they do.

Key terms

  • Active Liveness Check: An active liveness check requires the user to complete a prompt during verification, such as blinking, smiling, or turning the head. The system uses the response to confirm presence and detect replay or spoofing attempts. It is stronger against fraud, but it adds friction and depends on user participation.
  • Secret Scan False Positive: A secret scan false positive is a detected value that resembles a credential but cannot be used as one. These results consume analyst time and reduce trust in detection unless the programme adds validation that proves whether the finding is actually live.
  • Verified Exploitability: Verified exploitability means a finding has been reproduced in execution, not merely inferred from code. It is the practical threshold that separates a plausible defect from a security issue that should drive severity, remediation priority, and incident response.
  • Remediation Verification: Remediation verification is the follow-up step that confirms a fix actually changed the security state and did not simply create new documentation. It is the difference between acknowledging a problem and proving that the exposure window has closed.

What's in the full article

Truffle Security's full article covers the operational detail this post intentionally leaves for the source:

  • How liveness verification is applied across supported secret types in the scanner.
  • Why false positives overwhelm regex-based detection and how active validation reduces noise.
  • What the article says about remediation proof and why a second scan matters after revocation.
  • How the authors describe their broader NHI tooling direction and detector coverage.

👉 The full Truffle Security article explains the liveness workflow, remediation proof, and active secret verification approach.

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.
NHIMG Editorial Note
Published by the NHIMG editorial team on July 11, 2026.
Updated on October 5, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org