AI agent permissions: tools without the keys to the company
How to give an AI agent real tools while limiting what it can reach: separate read from write, a narrow key per tool, and checks the model can't talk past.
Westerwick4 min read

On this page
An AI agent becomes useful the moment it can do things: look up an order, update a customer record, send an email. That's also the moment it becomes risky. The question every business faces is how to set AI agent permissions so the agent gets the tools it needs, without being handed the keys to the whole company.
The answer isn't complicated, but it has to be deliberate. Give each tool the narrowest access that works, and enforce those limits in your systems, not in the agent's instructions.
The risk has a name: excessive agency
OWASP, the non-profit best known for its web security checklists, lists "excessive agency" among the top risks for AI applications. Its definition is useful for any business owner: "The root cause of Excessive Agency is typically one or more of: excessive functionality; excessive permissions; excessive autonomy"1.
In plain terms, the agent has too many tools, those tools can do too much, or it can use them without anyone checking. AWS's guidance puts it bluntly: "An agent with unconstrained tool access has no meaningful privilege boundary"2.
Separate reading from writing
The simplest and most effective decision is to treat read tools and write tools as different risks.
OWASP gives a classic example of getting this wrong: "an extension intended to read data connects to a database server using an identity that not only has SELECT permissions, but also UPDATE, INSERT and DELETE permissions"1. The agent was only meant to look things up, but the account it uses could change or delete anything.
The fix is at the system level. An agent that reads a products table "should not have access to other tables, nor the ability to insert, update or delete records"1, enforced by the database permissions of the account it connects with.
For write actions that remain (refunds, record changes, emails to customers), a person should approve them before they happen. We cover that layer in our article on approval gates for AI actions.
Give each tool its own narrow key
Think of permissions as keys. A single master key is convenient and dangerous. AWS lists the convenient version as a mistake to avoid: "Assigning broad IAM policies (for example, s3:* or *) to agent roles for convenience"3. (IAM is AWS's system for deciding who can do what.)
AWS's recommended approach3:
- Start from nothing. Design agent roles "starting with no permissions and adding only what is required for each specific task".
- Use keys that expire. Temporary credentials with "short session durations (15 to 60 minutes) make expiration automatic".
- Set a ceiling. Permission boundaries "establish a maximum permission ceiling that can't be exceeded even if the agent's policies are modified".
- Act as the user where possible. OWASP recommends that a tool reaching into a person's account should "require the user to authenticate via OAuth and with the minimum scope required"1, so the agent can never do more than that person could.
Watch for drift. AWS warns against "expanding agent permissions in response to access errors without investigating", which leads to permissions accumulating "through reactive grants that are never revoked"3. Every "just give it access so it works" adds to the risk.
Put the check at the gate, not in the prompt
Telling an agent "never delete anything" isn't a control. AWS explains why: "Authorization implemented only through prompt instructions is insufficient because prompts can be manipulated through adversarial phrasing or prompt injection"2. OWASP agrees: "Implement authorization in downstream systems rather than relying on an LLM to decide if an action is allowed or not"1.
In practice, this means a gatekeeper between the agent and your systems, one that checks every tool call against rules the agent can't change. On AWS, that role is played by Amazon Bedrock AgentCore Gateway with policy rules. The principle applies whatever you build on.
An instruction tells the agent what it should do. A permission decides what it can do.
Fewer tools also helps. "Presenting an agent with hundreds of tools increases the chance it selects the wrong one"2. Give each agent only the tools its job requires.
When the danger arrives through the tools themselves
Tools don't only act. They also bring information back, and that information can carry an attack. When an agent reads a web page, an email or a document, "adversarial instructions embedded in that content (indirect prompt injection) influence the agent's behavior as effectively as a direct user injection"4. AWS names a common gap: checking the user's messages "but not validating tool outputs before they enter the agent's context"4.
Security researchers at Unit 42 recently showed how this plays out. In a controlled test, they found that "using default configurations" in an AWS agent service "could allow attackers to steer an agent's actions through prompt injection to exfiltrate plaintext credentials"5. The credential exposed belonged to a service account with "authority the user never had and was never supposed to have"5.
AWS closed the report "as informative under the AgentCore shared responsibility model, citing allowedTools scoping and egress filtering as customer-side controls"5. In other words, limiting the tools and credentials is the customer's job. Unit 42's own summary is the best one-line lesson: "A leaked credential is worth what its scope buys"5.
What to do next
- List every tool your agent can use, and mark each one as read or write.
- Give each tool its own identity with the minimum permissions it needs, and remove any wildcards.
- Enforce the rules outside the model, with a gateway or API checks the agent can't override.
- Treat everything a tool returns as untrusted, and filter web pages, documents and emails before the agent acts on them.
- Review permissions every quarter, and remove anything added "temporarily".
Our Act demo shows these principles in a small support agent: it can look up orders freely, but changing one requires approval, and it stops cleanly when the action isn't allowed.
Sources
- 1.LLM06:2025 Excessive AgencyOWASP GenAI Security Project
- 2.AGENTSEC02-BP01 Implement tool authorizationAWS Well-Architected Framework, Agentic AI Lens
- 3.AGENTSEC03-BP03 Implement least privilege with dynamic boundariesAWS Well-Architected Framework, Agentic AI Lens
- 4.AGENTSEC08-BP01 Multi-layer input validation and prompt injection defenseAWS Well-Architected Framework, Agentic AI Lens
- 5.A Vault with a Heap-View: The Uncomfortable Space Between AgentCore Harness and IdentityUnit 42, Palo Alto Networks · 18 September 2026


