Teams can tell by checking whether the credential exists only inside the agent runtime, such as a live process, enclave, or ephemeral container, or whether it is merely referenced through a vault or token broker. Proof should come from runtime inspection, issuance logs, and access traces that show the agent can present the secret or token, not just know its location.
How to verify an agent truly holds the credential
The practical test is not whether the agent can name a secret, but whether it can present it from its own runtime context. That means looking for evidence in the live process, enclave, or ephemeral container, plus issuance logs and access traces that show the secret or token was actually available for use rather than only referenced through a broker or vault.
Teams should treat this as a possession-and-presentability question. If the agent can only request a token from an external service at call time, the credential is not resident in the agent in the same way as a locally held secret, and the assurance evidence must reflect that distinction.
When the evidence is weak, the first follow-up is to separate reference from possession. A configuration entry, environment variable placeholder, or vault path proves association, not custody; runtime inspection must show an in-memory secret, usable session token, or equivalent ephemeral credential material before you conclude the agent actually holds it.
What counts as proof of runtime custody?
Strong proof comes from triangulation. Runtime inspection can show the credential material in memory or the active execution environment, issuance records can show the credential was minted for that agent instance, and access traces can show the agent successfully used it against the intended service.
Each signal answers a different part of the question. Inspection shows presence, issuance shows assignment, and traces show exercise of authority. When all three line up, you have far stronger evidence than a static config review or a vault inventory alone.
For short-lived or brokered secrets, the most persuasive evidence is usually temporal. A token may only exist long enough for a task run, so teams need to capture logs and telemetry close to issuance and use, otherwise the credential can disappear before anyone confirms it was ever present in the agent runtime.
Ultimate Guide to NHIs, Static vs Dynamic Secrets is useful here because it explains why short-lived credentials change the verification model compared with long-lived secrets.
Why this distinction matters for governance and incident response
Teams often discover that a credential existed somewhere in the platform, but not where they assumed it did. That creates governance blind spots around ownership, revocation, and auditability, especially when an agent is using delegated tokens, brokered access, or per-run credentials that never persist in a durable store.
The same distinction matters during compromise review. If a secret was only referenced and never loaded into the agent runtime, the blast radius is different from a secret that was resident, copied, or replayed from memory. The response path should follow the actual custody model, not the inventory record.
Agent Identity vs Agent Session Identity helps teams reason about whether they are validating a stable agent identity or a short-lived execution identity.
AI Agent Credential Compromise Playbook is the right companion when verification turns up evidence that a credential may have been exposed, reused, or exercised outside its intended runtime.
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 sets the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-02 — Secret Leakage | Resident or exposed agent secrets are the core verification concern. |
| NHI-07 — Long-Lived Secrets | The question hinges on whether a credential is ephemeral or persistently held. | |
| Recommendation — Inspect runtime state and revoke any credential that should not exist outside the broker. Prefer short-lived credentials and verify their runtime use through logs. | ||
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | Credential issuance, storage, and rotation are central to proving and governing possession. |
| AU-2 — Event Logging | Access traces are needed to prove the agent actually presented the credential. | |
| IA-9 — Service Identification and Authentication | Agents and services using tokens or certificates map to machine-to-machine authentication. | |
| Recommendation — Track issuance, storage, rotation, and revocation for every agent authenticator. Log credential issuance and use events so runtime custody can be verified later. Authenticate agent-to-service traffic with scoped, traceable machine credentials. | ||
Practitioner Guidance
What to verify: Confirm three things separately: the credential was issued for the specific agent instance or run, the agent runtime could actually present it, and downstream service logs show use from that runtime. If any one of those is missing, treat the claim of custody as unproven.
Decision rule: If you can only show a vault reference or token broker pointer, classify the agent as dependent on mediated access rather than credential-holder evidence. If the secret is visible only in ephemeral runtime state, prioritise containment, rotation, and log preservation before the state disappears.
API Key Management Guide supports the same judgement for teams deciding when a discovered key should be treated as live and revokeable rather than merely catalogued.
Practitioner takeaway: The answer is established by runtime evidence of presentability, not by documentation of access. In practice, that means proving the agent could use the credential in the moment you care about, then preserving the traces needed to explain what it did with it.
Related resources from NHI Mgmt Group
- How can organisations tell whether AI agent governance is actually working?
- How can security teams tell whether agent access is actually under control?
- How can organisations tell whether credential management is actually working?
- How can teams tell whether agent-assisted detection is actually working?
Deepen Your Knowledge
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.
Reviewed and updated by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org