Subscribe to the Non-Human & AI Identity Journal

What do teams get wrong about secretless access for AI agents?

Many teams treat secretless access as a storage problem, when it is really an authorization problem. If the agent can still act with broad reusable authority through another path, the risk remains. The control has to move to request-time policy, not stop at vaulting the credential.

Why This Matters for Security Teams

secretless access for AI agents fails when teams confuse credential hiding with permission reduction. An agent with broad API scope, reusable tokens, or indirect delegation still has meaningful power even if no static secret is visible in a vault. The real issue is whether the agent’s authority is constrained at request time, for the exact action, data, and context involved.

This is why the shift toward runtime authorization keeps showing up in current guidance on agentic systems, including the OWASP Agentic AI Top 10 and NIST AI Risk Management Framework. NHIMG’s research on the Guide to the Secret Sprawl Challenge shows why sprawl persists even in mature programs: organisations often keep adding managers and controls without reducing the underlying blast radius. In practice, many security teams discover that “secretless” still permits overreach only after an agent has already queried, copied, or chained its way into systems that were never meant to be in scope.

How It Works in Practice

For AI agents, secretless access should mean the agent is authenticated as a workload and authorised per action, not that it merely avoids storing long-lived credentials. The better pattern is to bind identity to the workload, then issue short-lived, narrowly scoped access at runtime. That can include OIDC-based workload tokens, SPIFFE/SPIRE-style workload identity, and policy-as-code decisions evaluated on each request rather than on a static role assignment.

In practical terms, teams should separate three layers:

  • Identity: prove which agent instance is acting, using workload identity rather than a shared service account.

  • Authorization: decide whether the specific tool call, dataset access, or API request is allowed right now.

  • Credential delivery: if a secret is unavoidable, issue it just in time, make it ephemeral, and revoke it automatically after task completion.

This is the distinction missed by many “vault-first” rollouts. A vault can reduce exposure of stored secrets, but it does not prevent an autonomous system from invoking an overbroad connector, escalating through chained tools, or reusing delegated permissions beyond the original intent. The best implementation guidance is evolving, but the direction is clear in the OWASP Non-Human Identity Top 10 and the CSA MAESTRO agentic AI threat modeling framework: reduce standing authority, evaluate context at runtime, and keep agent permissions short-lived and measurable. The SailPoint findings in AI Agents: The New Attack Surface report reinforce the operational risk: many organisations still cannot fully track where agents are acting or what they touched. These controls tend to break down in highly integrated environments with legacy service accounts and shared middleware because authorization boundaries are too coarse to follow agent behavior.

Common Variations and Edge Cases

Tighter secretless controls often increase orchestration overhead, requiring organisations to balance reduced blast radius against slower delivery and more complex policy maintenance. That tradeoff becomes more visible in multi-agent workflows, where one agent may call another through a chain of tools, each with different data access needs.

One common mistake is assuming that “no secret” equals “no risk” in environments where the agent inherits privileges from a platform, workflow engine, or parent process. Another is using one shared identity for all agents and then trying to compensate with network segmentation alone. Current guidance suggests that context-aware authorization is more defensible than static RBAC for these workloads, but there is no universal standard for this yet. Teams should treat high-risk actions as step-up events, require policy checks for sensitive tools, and log every decision with enough detail to reconstruct the task path.

NHIMG’s 52 NHI Breaches Analysis and the Ultimate Guide to NHIs both point to the same operational reality: credential issues are often the symptom, not the root cause. Secretless access is most effective when it removes standing authority, not when it merely hides the token from view.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10 and CSA MAESTRO address the attack and risk surface, while NIST AI RMF set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Agentic AI Top 10 A2 Targets overbroad agent actions and request-time risk in autonomous workflows.
CSA MAESTRO T1 Focuses on agent threat modeling and least-privilege execution paths.
NIST AI RMF Addresses governance and risk controls for autonomous AI decision-making.

Assign accountability, monitor agent behavior, and enforce runtime policy checks for sensitive actions.