Excessive agency: least privilege for AI agents
Agents call tools: send email, move money, edit files, run code. The damage a prompt injection or a plain model mistake can do is exactly the set of tools and scopes you granted. How to size an agent's permissions and where to put a human in the loop.
In one sentence
An agent's blast radius is its tools × their scopes × whether anyone approves. Grant the minimum for the task, scope tokens to the user, and confirm anything irreversible.
The idea
You ask an agent to book a meeting. A calendar invite it reads contains an injected instruction to pay an invoice, email a confidential deck and delete an audit folder. Whether any of that happens has nothing to do with how smart the model is, and everything to do with which tools it was given.
Your request: "Find a slot next week and book a meeting with Ana."
Sizing an agent's permissions
- Excessive functionality: don't hand over a generic "run shell" or "call any API" tool when a narrow one (
create_calendar_event) does the job. - Excessive permissions: the tool's credentials should be scoped to the current user and the minimum resources (read-only where possible), not a service account that sees everyone.
- Excessive autonomy: irreversible or external actions (payments, sending, deleting, sharing, merging code) need explicit approval that shows the concrete action.
- Rate and budget limits: cap how many actions, how much money and how many recipients per task.
- Audit trail: log every tool call with its arguments and who approved it.
Key takeaways
- 01An agent can do whatever its tools allow, including when it's tricked.
- 02Prefer narrow tools and user-scoped, least-privilege credentials.
- 03Require human approval for irreversible or external actions.
- 04Limit, log and review tool usage like any privileged access.
Check your understanding
1 of 3
What determines an agent's blast radius?
Related concepts
Prompt injection
To a language model, everything is instructions. Assume any text it reads can hijack it, and limit what a hijacked model is able to do.
8 min read →Least privilege
Assume something will get hacked. Least privilege makes sure that when it does, the attacker gets the keys to one room, not the whole building.
6 min read →LLM data exfiltration
If your chat UI auto-loads images from any domain, an injected prompt can put private data in an image URL and the browser will deliver it to the attacker. Control the output channels and limit what data the model sees.
6 min read →