Least-Privilege Tools
In this article
- Split a broad agent tool into narrow tools, each limited to the actions and resources its task needs.
- Predict what a hijacked model can still reach after a tool change, and what it can no longer reach.
- Read allow, ask and deny permission rules and say which one wins for a given tool call.
- Explain why least privilege bounds the damage of an attack but does not stop misuse inside the granted scope.
- Terms defined here: least privilege, scoped capability, blast radius.
Overview
Assume the attack works. A page linked from a vendor email hides a line telling your assistant to forward the last 20 emails to archive@attacker.example, and suppose your prompt rules miss it and the model goes along. So ask a different question: if the model obeys, what can it actually do?
The answer sits in the tool list, not in the prompt. By the end you can cut a broad tool into narrow ones that do only what the task needs, list what an attacker who controls the model can still reach, and read a real set of permission rules.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- Excessive agency
- One tool that can do everything
- Splitting by verb and resource
- Replaying the attack
- Where the limit lives
- How narrow is too narrow
- The rule at work
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions