Join our Newsletter — 33% off our NHI Course

How did runtime mediation change secrets governance for agents?

 

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

TL;DR: A secrets manager can still leave agent execution exposed when credentials are handed off for use, KeyRunner argues. Secure agent runtime policy shifts control to the point of action, reducing leak paths into logs, memory, and tool flows.

Editorial analysis by NHI Mgmt Group, based on content published by KeyRunner: “Secure Agent Runtime vs Secrets Manager: What Is the Difference?”.

By the numbers:

  • 54% of organisations are dissatisfied with their current secrets management solution because not all secrets are secured, and 43% cite lack of central management, according to the 2024 State of Secrets Management Survey.
  • 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.

Key questions

Q: Why does runtime policy matter if the vault already secures the credential?

A: Because the vault only governs storage and retrieval, while runtime policy governs whether the action should happen at all.

Q: What are the signs that secrets are being overexposed in agent workflows?

A: Look for credentials appearing in prompts, logs, traces, memory stores, or repeated tool configuration updates.

Q: What breaks when an AI agent receives the secret instead of a reference?

A: The control boundary breaks because the credential can leak into logs, memory, traces, or tool flows outside the vault.

Practitioner guidance

  • Define a runtime enforcement boundary Keep the vault as the system of record and require the runtime to resolve credentials only after policy approval.
  • Remove raw secrets from agent context Pass tool names, vault references, and business parameters to the agent instead of copying credential values into prompts or tool state.
  • Audit credential propagation paths Check logs, traces, memory stores, and tool outputs for any point where a secret can escape the controlled execution boundary.

Bottom line: A secrets manager can protect credentials at rest without controlling how an AI agent uses them during execution.

Glossary terms: Secure Agent Runtime, Secret Reference, Execution boundary, Runtime Mediation

Explore further

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


This topic was modified 7 days ago by NHI Mgmt Group

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

Runtime governance is the missing control layer in agentic secrets management. A vault can protect storage, but it cannot by itself govern what an AI agent does after retrieval. The article's core point is that secret exposure now depends on execution-time handling, not just at-rest protection. That shifts identity control from the vault boundary to the action boundary, where policy, tool mediation, and response filtering determine whether the credential becomes visible at all. The practitioner implication is that storage controls and use controls must be treated as separate control planes.

A few things that frame the scale:

A question worth separating out:

Q: What are the best practices for rotating credentials for AI agents?

A: Rotate AI agent credentials regularly and whenever an agent is reconfigured, retired, or suspected of compromise. Use short-lived secrets where possible, separate credentials per agent and environment, and revoke unused tokens immediately. Monitor for failed authentications, unusual token use, and privileges that outlast the task the agent is meant to perform.

👉 Read our full editorial: Secure agent runtimes close the gap vaults leave open


This post was modified 7 days ago by NHI Mgmt Group

   
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.