Securitycore
Tool permissions & least privilege
Give the agent the narrowest tools and credentials that do the job — and check every call.
What it is and why it exists
Excessive agency (OWASP LLM06) is the root of most agent damage: too many tools, too-powerful tools, too-broad permissions. A permission layer between model and tools checks each call against policy (who is the user, is this tool allowed, are these arguments within limits) before running it.
Quick prototype
The agent has the admin API key.
In production, at scale
Per-tool allow-lists per route, read-only by default, scoped user-delegated credentials, argument constraints (amount ≤ limit, recipient in allow-list), approvals for irreversible actions, and audit logs.
Vendors and tools
| Open Policy Agent / Cedar | Policy engines for authorisation decisions |
|---|---|
| Agent framework guardrails | Tool-call hooks and approvals |
On AWS: IAM least-privilege roles per tool Lambda; Amazon Verified Permissions (Cedar); AgentCore Identity and Gateway authorization.
How it fails
- One tool that can “run any SQL”
- Checking permissions in the prompt
- A read tool that can also write
What the interviewer asks next
Where do you put the permission check?
In the tool execution layer, using the authenticated user’s identity from the session — never information the model provides about who the user is.