Designing Permissions for AI Agents: Start With What Can Go Wrong

An AI agent that can read your mail, query a database or run a script is only as safe as the permissions behind it. A model can be talked into things by text it reads, which I covered in my post on prompt injection. So the useful design question is what happens when the agent does the wrong thing, and how far the damage can spread.

Three ways agents get too much power

OWASP calls this problem Excessive Agency (LLM06:2025) and names three root causes: excessive functionality, excessive permissions and excessive autonomy. They are worth checking separately.

Functionality is about which tools the agent can call at all. An agent that summarises email does not need a tool that can send it. Permissions are about what each tool may do in the system behind it. A reporting agent that connects to a database with an account that can also delete rows has far more access than its job needs. Autonomy is about whether a person sees an action before it happens. OWASP’s own example is a mail assistant that drafts messages and leaves the user to review them and press send.

A design routine that works for small teams

I start with a plain table before anyone writes code. List every action the agent could take, then mark each one as read, write, send, spend or delete. Reading is usually the lowest risk, although reading sensitive data and then sending it somewhere is a serious combination. Anything that sends, spends or deletes should need a person’s approval until you have a long record showing it behaves.

Next, give the agent its own identity. If it borrows your account or an administrator’s token, you cannot tell its actions from yours in the logs, and you cannot revoke its access without breaking your own. A separate service account with narrow scopes solves both. Where the platform supports it, have the agent act with the signed-in user’s permissions, which OWASP also recommends, so it cannot see anything the user could not.

Prefer narrow tools over open ones. “Look up an order by number” is much safer than “run any SQL query”, and “create a draft” is safer than “send mail”. Avoid giving an agent a general shell or unrestricted web requests unless it runs in a sandbox with nothing valuable in reach.

Enforce the rules outside the model. OWASP’s term is complete mediation: the downstream system checks authorisation itself, and the model’s judgement is never the thing that decides whether a request is allowed. A system prompt that says “never delete records” is a request. A database role without delete rights is a control.

What CISA and partners advise

In May 2026, CISA, Australia’s Cyber Security Centre and other partners released guidance on adopting agentic AI. CISA’s summary asks organisations to avoid broad or unrestricted access, especially to sensitive data or critical systems, to begin with low-risk and non-sensitive use cases, and to include agentic AI in their security model and risk posture. That is a sensible order for a first project. Pick a task where a wrong answer costs an hour of cleanup, run it with a person approving actions, and widen access only after you have reviewed how it behaved.

Plan for the bad day

Log every tool call with the identity used, the input, the result and who approved it. Set rate limits and spending caps so a loop or a hijacked agent cannot run all night. OWASP notes that logging and rate limiting will not prevent excessive agency, but they can limit the damage. Also decide who can switch the agent off, and check that disabling its account actually stops it.

What to do

  1. List each agent you run, including ones built into products you already pay for, and who owns it.
  2. For each one, write down its tools, the account it uses and what that account can reach.
  3. Remove tools and scopes the task does not need.
  4. Require approval for sending, spending, deleting and permission changes.
  5. Review the logs after the first two weeks and again each quarter.

Sources