By NHI Mgmt Group Editorial TeamBased on Willow: “Static Keys, Non-Deterministic Agents: Willow's CEO on Why AI Broke Access Control” (October 15, 2026)

TL;DR: Non-deterministic AI agents cannot be governed safely with the same static API keys and scope-based permissions used for deterministic software, because a single valid action can produce outsized damage, according to Willow. The practical shift is from scopes to capabilities, with per-tool risk controls and credentials kept off the endpoint.


At a glance

What this is: This is Willow's argument that AI agents need a different access model than microservices because static API keys and scope-based permissions do not match non-deterministic behaviour.

Why it matters: It matters because identity teams now have to govern agent actions, not just authenticate software, and that changes how access, approval, and credential containment work across NHI and autonomous programmes.


Context

The governance gap is simple: access models built for deterministic software assume the actor will behave predictably every time. AI agents break that assumption because they can choose actions at runtime, making static scopes a poor fit for operational control.

That mismatch matters most where non-human identities hold reusable credentials and can reach production systems directly. When an agent can act on its own initiative, the issue is no longer just authentication, but whether the access model can safely bound what the agent is able to do.

In this context, AI agent authorisation becomes a practical question rather than a theoretical one: what permissions should exist, who or what should hold them, and how much discretion should the runtime have?


Key questions

Q: What breaks when AI agents rely on long-lived API keys?

A: Long-lived keys turn a single leaked secret into persistent authority, and agents create more places for that secret to leak through prompts, logs, cache layers, and tool outputs. Once the key is reused across tasks, revocation becomes slow and unreliable. Short-lived credentials are safer because they reduce the window in which exposure can be exploited.

Q: Why do scoped credentials fail to fully control AI agent behaviour?

A: Scoped credentials fail because they answer who may enter a system, not whether a specific generated action should happen now. AI agents can choose different tool paths at runtime, so the authorisation decision must be made at execution time. Without that, valid access can still produce unsafe or unintended actions.

Q: How should security teams reduce the blast radius of AI agents without assuming authorization alone is enough?

A: Security teams should treat agent permissions as necessary but insufficient. Limit the agent to the smallest practical identity, tool set, and data scope, then add controls that observe what the agent actually does across a session. The key is to separate legitimate actions from coerced sequences, because every individual call may be allowed while the overall chain still causes data loss or policy abuse.

Q: What should teams do when an autonomous agent can reach production systems?

A: Teams should restrict the agent’s production reach, separate sandbox and live environments, and require checkpoint enforcement before any production-side action executes. If the agent can directly touch production, the governance model has already given it more operational power than most IAM programmes are designed to handle.


Technical breakdown

Why static API keys fail for non-deterministic agents

Static API keys work when the calling system behaves predictably and stays within an expected action pattern. Non-deterministic agents do not. They can decide at runtime to take an unexpected path, so a valid credential no longer implies a safe outcome. The failure is not the token itself, but the assumption that the token can express intent, timing, and bounded use. Once an agent can change its plan mid-session, the access model must account for dynamic behaviour, not just identity at login. See the AI agent identity guide. See the Agentic AI Identity Guide.

Practical implication: Treat reusable agent credentials as structurally unsafe for high-impact actions and move toward runtime-controlled issuance.

Why scopes are too coarse for agent capabilities

Scopes describe broad verbs such as read or write, which is adequate when software follows a stable workflow. Agent behaviour is different because the system can chain tool calls, select a path that was not anticipated at provisioning time, and create risk from a single valid action. That is why capability-based control is more useful: it maps access to specific tasks, tools, and contexts rather than a broad permission label. The distinction matters because the control point moves from static entitlement design to runtime authorisation decisions tied to the requested action. See the AI agent authorisation guide.

Practical implication: Replace broad scopes with task-specific capability checks that are evaluated at the moment of action.

How guardrails shift from prompts to resource access

Prompt filtering alone cannot solve the problem because the valuable target is usually not the prompt, but the resource behind the tool call. If an agent can reach SaaS apps, cloud control planes, or data stores with long-lived credentials, then the control failure sits at the resource boundary. The stronger design pattern is to keep the real credential off the endpoint, broker access through an intermediate control layer, and enforce policy where the action lands. That is a resource-centric model, not a prompt-centric one. See Zero Trust for AI Agents. Read Zero Trust for AI Agents.

Practical implication: Move enforcement to the resource layer and remove direct credential exposure from the agent runtime.


Threat narrative

Attacker objective: The objective is to turn legitimate agent access into high-impact system changes, data loss, or uncontrolled downstream actions.

  1. Entry begins when an AI agent is given a valid static API key or similar reusable credential to operate against internal systems.
  2. Escalation occurs when the agent selects an unexpected action path, such as issuing destructive commands or accessing a resource beyond the operator's intent.
  3. Impact follows when that single authorised action changes real systems, deletes data, or reaches downstream services that were never meant to be touched.

Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Static scopes are the wrong abstraction for autonomous behaviour: scopes were built for deterministic systems whose intent is known in advance. That assumption fails when the actor can decide at runtime which tool to use and how far to go. The implication is that access design for AI agents has to be capability-based, not verb-based, because the old model cannot express runtime intent.

Capability control is now an identity governance problem, not just an application design problem: once an agent can act through valid credentials, the question becomes who governs the discretion attached to that identity. That shifts the control plane from provisioning alone to runtime authorisation, tool policy, and bounded delegation. Practitioners need to treat each agent as a governed identity with its own access envelope, not as a smarter script.

Prompt injection is a symptom, not the core control failure: the deeper issue is that agents are often allowed to hold reusable credentials and reach high-value resources directly. That is the same mistake in a different form. The security boundary has to move to the resource, where the action actually matters, instead of relying on the prompt as the only line of defence.

Non-human identity governance and autonomous identity governance are converging: the article describes a transition from traditional NHI patterns toward runtime-governed agents that need identity, delegation, and offboarding discipline. That convergence means IAM teams cannot keep treating agents as a separate novelty category. The operational lesson is to align NHI lifecycle controls, authorisation design, and AI governance before agent sprawl becomes normal.

Identity blast radius is the right named concept here: a single valid agent credential can create far more damage than the same credential would create in a deterministic service. That difference is not about privilege count alone, but about how much the actor can do with one authorised decision. Practitioners should measure access by potential blast radius, not by whether the token is technically valid.

From our research library:

  • DeepSeek alone generated 113,000 new exposed API keys in 2025, illustrating how new AI providers create credential exposure before security guardrails catch up, according to the State of Secrets Sprawl 2026.
  • Only 20% have formal processes for offboarding and revoking API keys, and even fewer have procedures for rotating them, according to the Ultimate Guide to NHIs.
  • Read next: AI Agent Authorisation Guide

What this signals

Identity blast radius: the next control question for AI agents is not whether access exists, but how far a single authorised decision can travel before it is contained. Programs that still treat agent access as a static provisioning problem will miss the point that runtime discretion is now part of the risk surface.

Access reviews assume privilege persists long enough to be observed, certified, and revoked, but autonomous or semi-autonomous agents may convert that privilege into action before any review cycle ever sees it. That is why capability checks, runtime policy, and credential brokering are becoming more important than entitlement spreadsheets.

Systems with least-privileged AI access had a 17% incident rate vs 76% for over-privileged systems, according to the 2026 Infrastructure Identity Survey. The pattern is clear: the more precisely an organisation scopes agent authority, the less room it leaves for accidental damage.


For practitioners

  • Replace static agent credentials Move high-risk AI agent access behind an intermediate control layer so the agent never holds reusable production credentials directly.
  • Model access as capabilities Define task-scoped permissions for each agent, each tool, and each environment rather than relying on broad read or write scopes.
  • Constrain where agents can operate Block agents from directories, repositories, and command paths that contain secrets or privileged administrative material.
  • Route sensitive actions through policy checks Require runtime approval or policy evaluation for destructive, financial, or external side-effect actions before the tool call executes.

Key takeaways

  • AI agents change the access control problem because a valid credential no longer guarantees a predictable outcome.
  • The core governance shift is from broad scopes to capability-based control with runtime enforcement.
  • Keeping real credentials off the agent runtime is the most direct way to reduce the blast radius of a bad agent action.

Related NHI Mgmt Group resources: Agentic AI Identity Guide · Zero Trust for AI Agents · AI Agent Observability, Audit and Incident Response Guide · Replit AI agent database deletion 2025


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 and OWASP Agentic AI Top 10 address the attack and risk surface, while NIST CSF 2.0 sets the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-04 — Insecure AuthenticationStatic API keys for agents expose authentication weakness when runtime behaviour is non-deterministic.
NHI-05 — Overprivileged NHIThe article centres on agents having more authority than their safe task scope requires.
NHI-07 — Long-Lived SecretsReusable API keys are the credential pattern the article argues is unsafe for agents.
Recommendation — Replace direct agent-authenticated access with controlled credential brokering and short-lived issuance. Scope each agent to the minimum task boundary and remove unnecessary write or destructive access. Eliminate long-lived secrets from agent runtimes and replace them with ephemeral, brokered credentials.
OWASP Agentic AI Top 10ASI03 — Identity & Privilege AbuseThe article's core risk is agents using valid identity to perform harmful actions beyond intent.
Recommendation — Constrain agent privilege and enforce policy checks before any sensitive tool invocation.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsThe post is fundamentally about how access permissions should be structured for agents.
Recommendation — Continuously validate agent entitlements against task scope and remove standing permissions where possible.

Key terms

  • Non-Deterministic Agent: An AI-driven actor whose next action, tool choice, or timing cannot be assumed in advance. That makes traditional access review and role scoping weaker because the actor can alter its behaviour during execution, not only at provisioning time.
  • Capability-Based Authorization: Capability-based authorization grants narrowly defined verbs on specific resources instead of broad role membership. For AI agents, that means the token should allow only the exact task steps required, because probabilistic behaviour can turn coarse permission into chained misuse.
  • Identity Blast Radius: The amount of damage a compromised identity can cause across systems, data, and infrastructure. In NHI environments, it is shaped by permissions, network reach, and administrative capability rather than by the credential alone. Reducing blast radius is a containment strategy that limits lateral movement and data exposure.
  • Credential Brokering: Credential brokering is the process of using a trusted identity proof to issue a separate credential for a target system that cannot accept the original identity natively. It is useful for compatibility, but it also becomes a control point for scope, duration, logging, and revocation.

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 building or maturing an IAM programme, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on October 22, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org