Join our Newsletter — 33% off our NHI Course

Who is exposed when agentic execution uses secrets?

 

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

TL;DR: AI agents can trigger credentials and tool calls without the model seeing the secret, according to Crogl. Secrets handling then becomes a governance issue for invocation, scope, and audit trails, not just vault storage.

Editorial analysis by NHI Mgmt Group, based on content published by Crogl: “Do Your Agents Know Your Secrets?”.

Key questions

Q: Why do AI agents increase secrets management risk even when the model never sees the secret?

A: Because the credential can still be used downstream through tool calls, delegated execution or external systems.

Q: What signs show that third-party NHI access is too broad?

A: Watch for shared secrets across multiple integrations, long-lived tokens with no clear owner, CI/CD identities that can reach production broadly, and vendor accounts that remain active after the relationship changes.

Q: What breaks when AI agent access relies on long-lived secrets?

A: Long-lived secrets let AI agents carry persistent access far beyond the task they were created for.

Practitioner guidance

  • Define the agent as a governed executor Separate the logic that selects an action from the system that executes it, and ensure the executor applies policy, not the model.
  • Remove secrets from model context paths Audit prompts, tool payloads, traces and memory to ensure API tokens, OAuth credentials and service account material never enter the LLM context.
  • Scope tool permissions to exact actions Map every tool the agent can call to a narrowly defined permission set so that one credential cannot become a general-purpose control surface.

Bottom line: AI agents become a control plane problem when their usefulness depends on triggering secrets, not merely viewing them.

Glossary terms: Secrets handling, Agentic Execution Layer, Invocation Governance, Delegated Execution

Explore further

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


This topic was modified 3 weeks ago by NHI Mgmt Group

   
Quote
(@mr-nhi)
Member Moderator
Joined: 7 months ago
Posts: 21330
 

Secret handling is becoming the control plane for agentic systems: once an AI agent can query, trigger and rotate across enterprise tools, the main governance question is no longer whether a secret is visible to the model. It is whether the surrounding identity and policy model can govern credential use as an authorised action path. That changes secrets from a storage problem into a runtime control problem. Practitioners should evaluate the full delegation chain, not just the vault.

A few things that frame the scale:

  • Only 13% of organisations feel extremely prepared for the reality of agentic AI despite the majority racing toward autonomous adoption, according to the 2026 Infrastructure Identity Survey.

A question worth separating out:

Q: How should teams govern AI agents that act inside customer accounts?

A: Treat them as delegated non-human identities, not as ordinary customer sessions. Governance should require explicit consent, narrow authorization scope, token binding, and a complete audit record tying each action back to the human principal that approved it.

👉 Read our full editorial: AI agents and secrets handling are becoming the new control plane



   
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.