Subscribe to the Non-Human & AI Identity Journal

How should security teams set access boundaries for AI agents?

Security teams should define agent boundaries around data sources, tools, and allowed actions before any production rollout. The boundary must be explicit enough to block unintended combinations of access, because agent value often comes from chaining capabilities across systems. Treat the boundary as a runtime control, not just a policy document.

Why This Matters for Security Teams

Access boundaries for AI agents are not just another IAM setting. Agents can chain tools, traverse APIs, and adapt their next move based on intermediate results, which means a boundary that looks safe on paper can still allow unsafe combinations in production. Static roles work well for predictable service accounts, but they fail when the workload is autonomous and goal-driven. Current guidance from the OWASP Agentic AI Top 10 and the NIST AI Risk Management Framework both point toward runtime controls, not just pre-approved entitlements.

For NHI governance, the boundary should define what the agent may read, what it may invoke, and what side effects it may create. That is especially important when secrets, API keys, or OAuth grants are in scope, because exposure tends to cascade once an agent can combine otherwise harmless permissions. NHIMG’s research on the LLMjacking threat vector shows how quickly compromised NHIs can become an AI access path. In practice, many security teams encounter boundary failures only after the agent has already chained tools in ways no reviewer anticipated, rather than through intentional testing.

How It Works in Practice

Security teams should set boundaries around three layers: identity, action, and context. Identity answers what the agent is. For autonomous workloads, that usually means workload identity and short-lived credentials rather than a long-lived shared secret. Action answers what the agent may do, such as read a ticket, query a database, create a draft, or call a specific tool. Context answers when and under what conditions the action is allowed, which is where runtime policy becomes essential.

A practical boundary model often includes:

  • Per-agent workload identity backed by cryptographic proof, such as SPIFFE or OIDC-based workload tokens.
  • JIT, ephemeral credentials that expire after the task, not after a human review cycle.
  • Allowlists for tools and API methods, with explicit denial of chained or nested privilege paths.
  • Policy-as-code evaluated at request time, using signals such as dataset sensitivity, user intent, destination system, and execution risk.
  • Separate boundaries for read, write, and actuation, so an agent can inspect data without being able to modify records or trigger downstream workflows.

This is where static RBAC breaks down: an agent’s path is not fixed in advance, so precomputed roles cannot reliably capture every safe and unsafe sequence. The Ultimate Guide to NHIs and the OWASP NHI Top 10 both reinforce that over-privilege and missing rotation remain common failure modes. These controls tend to break down when an agent has broad tool access across SaaS, internal APIs, and data stores because the real risk emerges from cross-system chaining, not from any single permission alone.

Common Variations and Edge Cases

Tighter access boundaries often increase operational overhead, requiring organisations to balance safety against workflow friction. That tradeoff becomes visible when an agent must complete multi-step work across teams, because overly narrow policies can cause false denials and manual exceptions that undermine the value of automation. Best practice is evolving here, and there is no universal standard for how granular an agent boundary must be.

Some environments need special handling. A customer-facing agent may need separate boundaries for retrieval, summarisation, and action execution. A code-writing agent may be allowed to read repositories but blocked from merge, deploy, or secret retrieval operations. A multi-agent pipeline may need each agent isolated from the next, with explicit handoff tokens rather than shared credentials. In high-risk cases, current guidance suggests pairing boundaries with continuous monitoring and step-up approval for sensitive actions, especially where OAuth-connected third-party tools are involved. NHIMG’s State of Non-Human Identity Security highlights how often visibility gaps and over-privilege appear together, which makes boundary design a control problem as much as a policy problem.

Where the environment is highly dynamic, such as agents operating over unpredictable prompts, open-ended web tools, or untrusted external content, boundaries must assume that the agent will try an unexpected path. That is why the safest design is narrow by default, time-bound, and continuously re-evaluated at runtime, not just reviewed at onboarding.

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 A1 Agent boundary design maps to preventing unsafe tool and action chaining.
CSA MAESTRO T1 MAESTRO focuses on agentic threat modeling and control boundaries.
NIST AI RMF AI RMF supports governance of autonomous system risk and accountability.

Use AI RMF to govern agent intent, monitoring, and escalation paths across the lifecycle.