Applied AI

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.

Sources

  • Agent-framework advisories on tool authorization. Security advisories. October 2026.

Was this useful?

Get in touch

Seeing one of these in your system?

Describe what exists today and where it breaks. We will come back with a technical point of view and a scoped first step.