Alexa Cybersecurity
Back to Field Notes
AI & Adversarial ML/Field Note

Agent Tool Permissions and Least Privilege in Agentic AI Systems

Agent tool permissions are the new privileged access problem. They accumulate through feature additions, are rarely reviewed, and when exploited through prompt injection, give attackers the same capabilities the agent has. Applying least privilege to tool grants requires the same discipline as privileged access management.

Author

Lin Chen

Head of AI Security Research

Published

May 14, 2026

Read

8 min

Share
AI-generated illustration of a banking data center
AI-generated illustration of a banking data center
Key Takeaways
  • 01Agent tool permissions should be scoped to three dimensions. The requesting user, the tenant context, and the specific resource. Any tool that operates with ambient organizational authority is a privilege escalation risk.
  • 02Irreversible tools, those that can send messages, modify persistent state, or initiate external transactions, require separate justification from read only tools and should be reviewed more frequently.
  • 03Tool permission sprawl follows the same pattern as role sprawl in IAM. Permissions are added for features and never removed. Quarterly access reviews for agent tool grants prevent accumulation.
  • 04Scoped capability tokens, short lived credentials generated per user request that authorize only the specific tool calls needed for that request, are the most effective technical control for per user scoping.

When a user interacts with an AI agent, the agent exercises whatever permissions it has been granted. If those permissions are broad, a successful prompt injection or a model reasoning error can cause the agent to take actions far beyond what the user intended or authorized. The principle of least privilege applies to agents exactly as it applies to service accounts.

The operational challenge is that agent tool permissions tend to accumulate. A new feature requires a new tool. The tool is added to the agent's permission set. The feature is later deprecated, but the tool permission remains. Over time the agent's authority envelope grows well beyond what any single user flow requires.

The three dimensions of tool permission scoping

A well scoped tool permission is constrained along three dimensions simultaneously. These dimensions correspond to the three questions that an authorization system must answer before a tool call proceeds.

/CAUTION

Ambient authority is the most common misconfiguration

A tool that calls an external API using a shared service account credential, rather than per user delegated credentials, has ambient organizational authority. Any user who can trigger that tool, including through prompt injection, can act with that service account authority. This is the single most common tool permission misconfiguration we observe.

/Tool Permission Scoping Dimensions

DimensionQuestionImplementation Pattern
User scopeIs this tool call authorized for the requesting user?Per user delegated credentials or JWT claims
Tenant scopeIs this tool call confined to the requesting user tenant?Tenant ID filter enforced at the tool layer, not the model
Resource scopeIs the specific resource being accessed authorized?Resource ID allowlist or ABAC policy

Scoped capability tokens as a technical control

The cleanest technical implementation of per user per request tool scoping is a scoped capability token generated at request time. When a user initiates an agent interaction, the authorization layer generates a short lived token that encodes exactly what tools the agent may call, on behalf of which user, within which tenant context, and for how long. The agent runtime presents this token when making tool calls, and the tool layer validates it.

This pattern decouples the agent's static configuration from its runtime authority. The agent code does not need to change when permission policies change. The scope of every agent action is traceable to the originating user request through the token lineage.

  1. 01Generate the token at the moment the user initiates a request, not at agent startup or deployment time. The token must never be stored in the agent configuration or source code.
  2. 02Include the requesting user identity as a mandatory field. Every tool call the agent makes must be traceable to a specific authenticated user.
  3. 03Include the tenant identifier so that all tool calls are automatically scoped to the correct tenant context without relying on the agent to pass this value explicitly.
  4. 04List the authorized tool names explicitly as an array. The token grants access to only those tools needed for the current request. Any tool not in the list must be rejected by the tool layer.
  5. 05Set an authority level field drawn from a fixed set such as read, write, or admin. This caps the maximum action the agent can take regardless of which specific tools are listed.
  6. 06Set an expiry timestamp that limits the token lifetime to five to fifteen minutes for most interactions. Short lifetimes reduce the window for replay or misuse if a token is captured.
  7. 07Include the originating request identifier so that audit logs can link every tool call back to the user request that authorized it, creating a complete chain of accountability.

Quarterly tool permission access reviews

Tool permission accumulation is best addressed through a periodic review process that mirrors IAM access reviews. Once per quarter, generate a report of every tool grant active in every production agent, grouped by agent identity. For each tool, verify that a current active feature requires it and that the scope is as narrow as possible for that feature.

The review should result in a formal approval or a remediation ticket for each tool grant. Tool grants without a current business justification should be revoked. Tool grants with overly broad scope, such as write access where read access is sufficient, should be narrowed.

  • 01Generate a tool permission manifest for each agent before the review session.
  • 02For each tool, document the feature that requires it and the authority level it exercises.
  • 03Flag any tool operating with ambient organizational authority for immediate narrowing.
  • 04Track the total number of active tool grants per agent as a metric. Increasing counts are a warning sign.

Metrics for least privilege health in agent systems

Measuring least privilege health in agent systems requires metrics that go beyond binary pass or fail. Track the distribution of tool authority levels across your agent fleet. A healthy program shows the majority of tools at read or narrowly scoped write authority, with a small and shrinking tail of high authority tools requiring additional justification.

Two metrics that surface privilege creep quickly are the average number of tools per agent over time and the percentage of tool grants that were validated in the most recent access review. Both should be tracked quarterly and reviewed by the CISO alongside traditional IAM metrics.

/Agent Least Privilege Metrics

MetricHealthy SignalWarning Signal
Tools per agentStable or decreasing over timeIncreasing quarter over quarter
Tool grant validation coverage100% reviewed quarterlyAny unreviewed grants over 90 days
Ambient authority tool countZero or trending to zeroAny new ambient authority tools added
Scoped token adoptionAll production agents using scoped tokensAgents with static broad credentials
#Agentic AI#Least Privilege#AI Security#Access Control#Tool Permissions

/WRITTEN_BY

Lin Chen

Head of AI Security Research · Alexa Cybersecurity