Why can't an AI agent's tool list be its permission system?
The tool list is a hint, not a control. Enforce authorization where the tool runs, and key each approval to the arguments.
2 min readDEV GroupApplied AI · Security
The tool list is a hint
Because the tool list is a hint, not a control. What you show the model shapes what it tries. It does not limit what can run. Enforce authorization where the tool executes, against the calling user's permissions and the allowlist for that request. Safety switches, such as consent prompts, secret masking, non-interactive flags, and which tool name runs, must never be parameters the model can set. An approval covers one action with its arguments, not the tool for the rest of the session.
What the advisories had in common
Several agent-framework advisories published in October 2026 show the same pattern. One executor accepted tool calls outside the set advertised to that caller, so a public user could reach owner-only actions through prompt injection or replayed thread history. A shell tool's consent gate could be skipped by a flag the model could set. An environment tool masked secrets only when a model-settable parameter said to. An approval cache was keyed on the tool name alone, so one approved harmless command approved every later one. A call-time tool-name argument let the model run a different tool than the one allow-listed and logged. None of these needed a clever model. Each let the model make a decision the system should have made.
Decide in the executor
Check caller identity and the allowlist in the executor, on every call. A filtered prompt or a middleware check is bypassed by any path that reaches the executor without it. Treat the model-visible schema as untrusted input. The host sets consent, masking, and interactivity from policy, never from tool arguments. Resolve the tool that runs from the allowlist, not from a name passed at call time. Key each approval on the tool plus a hash of its arguments, and expire it. A changed argument is a new action and needs a new approval. Log what actually executed: the resolved tool, the final arguments, the caller, and the approval it ran under, not what the model asked for. Keep long-lived secrets out of the agent process environment. Give the tool that needs one a short-lived, scoped credential at call time, so an environment dump has nothing worth stealing. Treat replayed or stored conversation state as untrusted input. A thread history can carry injected instructions and forged tool calls as easily as a new message. Re-check authorization on resume; never inherit it from the transcript. Executor-side authorization, approval scoping, and the audit trail around them are software work, and that is where we fit.
- Related: deciding whether an AI agent's action actually runs
- Related: keeping integration and automation tokens from becoming a breach
- Applied AI
- Giving an AI agent real tools? Start a conversation
Sources
- Agent-framework advisories on tool authorization. Security advisories. October 2026.
Was this useful?
Related notes
Operations2 min read
How do you attribute a change when an AI tool signed in as a person?
When an AI tool signs in as a person, the audit log has to name both the human and the client, or you cannot say who decided.
- Agents
- Audit
- Internal tools
Security2 min read
How do you keep the builder role in an internal tool platform from becoming an admin?
The role that builds tables and automations is privileged. Enforce each route's declared role on the server, and refuse by default.
- Internal tools
- Authorization
- Audit
Applied AI2 min read
How do you keep an AI coding agent's saved approvals from committing secrets?
An agent that remembers an approval can save a secret into a file inside the repo. Keep that file out of git, and do not approve the literal command.
- Agents
- Secrets
- CI