Insights · 2x10

Securing AI agents: which permissions an agent gets

AI in Business · Last checked: 12/05/2026 · 6 min read · Moritz Miedler

An AI agent is supposed to do something in your systems, not just answer. What permissions it gets for that, when a person confirms and why rules in the prompt aren’t enough as guardrails.

An AI agent is supposed to do something in your systems, not just answer: look up data, write drafts, change records. That raises the question of what it is allowed to do and who controls that. For the security of AI agents, this is the most important decision.

The short answer: you grant permissions in levels, from read-only to acting autonomously, and for each level you define when a person confirms (human in the loop, in industry jargon). These guardrails are enforced not only in the prompt, the written instruction to the language model (LLM), but above all in the harness and in the connected systems. The harness is everything you organize around the model: it checks whether the model is allowed to do what it wants to do, carries it out and brings it the result.

What permissions do you give an AI agent?

For planning, we use five levels, from read-only to acting autonomously. This is our working model. For each tool, you also define which data and actions are specifically allowed:

  • Level 1, read only: may query, summarize and explain data. Useful for information requests, research and reports. Clarify beforehand: which data it may see, and with whose permissions.
  • Level 2, propose: may create drafts that a person approves. Useful for quotes, draft replies and booking suggestions. Clarify beforehand: who approves and how you can tell where each piece of information comes from.
  • Level 3, write after confirmation: may create or change a record in the system after a person has confirmed. Useful for changes to customer data or orders. Clarify beforehand: Which values does the person see before confirming, and what happens if the same change is accidentally submitted twice?
  • Level 4, save immediately with undo: may save without asking, visibly, with “Edit” and “Undo”. Useful for non-critical records such as notes or preferences. That’s how our AI coach for end customers saves goals, preferences and intolerances itself; the customer sees everything saved and can change or delete it. Clarify beforehand: what counts as non-critical and how long changes can be undone.
  • Level 5, act autonomously: may carry out actions with no person in the loop. Useful for clearly bounded tasks that can be undone and have stable tests. Clarify beforehand: a log of every action, guardrails in the harness and in the connected systems, and who steps in.

Whose permissions does the agent act with?

The most important question at every level is: Whose permissions does the agent act with? A general system account can affect a great deal of data with a single error. If the agent works for a specific user, it may never do more than that user, and of that, only the part its task needs. For background tasks, a separate technical account with suitably limited permissions can make sense.

If the agent is supposed to change existing records, it has to be able to read them first, and the person has to see the old and the new value side by side. If it only creates new records, such as a note, access that can write but not read anything is enough.

OWASP, a non-profit foundation for application security, also recommends as few permissions and tools as possible. In its list of the biggest risks of language model applications, it includes “Excessive Agency” (LLM06:2025): too many or too powerful tools, too many permissions, too much autonomy. Actions should run on behalf of the respective user with the smallest necessary permissions (least privilege), a person should approve consequential actions, and the target system, not the model, should check authorization.

In our experience, confirmations only help if the person sees what changes and isn’t asked about every little thing. So show before and after side by side, ask for consequential changes and offer “Undo” for suitable records that can actually be reversed. Even an “Undo” can’t bring back an email that has been sent or an order that has already been placed.

Why aren’t guardrails in the prompt enough?

The guardrails for each level belong in the harness and in the connected systems (more on this in Agent harness: the concept that turns an LLM into an agentic system), because a model doesn’t reliably follow an instruction in the prompt. Two publicly reported incidents show why we insist on this.

In July 2025, according to Fortune, the coding agent of the Replit platform deleted a production database even though a code freeze had been declared.

In May 2026, TechRadar reported on PocketOS. According to the founder, a coding agent found an access key in a file unrelated to its task. The key, created for domain management, wasn’t restricted to that. With it, the agent deleted a database and its backups within nine seconds.

Our takeaway for planning: an agent without effective delete permissions can’t execute that delete command. That’s why we check permissions in the target system and keep access keys out of everything the model gets to read.

In a system with agents, the following has to be technically enforced, no matter what the prompt says:

  • Authorization on the server: The target system checks every action with the matching user or service identity, not the model.
  • A separate account per agent, with only the necessary permissions: no shared system account and no permissions the task doesn’t need.
  • Access keys outside what the model reads: Credentials belong neither in the prompt nor in files or tool responses the model gets to see.
  • Locks at the interface: Describing a tool as “read-only” protects nothing. The interface itself checks which actions, records and inputs are allowed.
  • A log of every write action: who, when, what, with what result.
  • Limits per task: Limits on model rounds, costs and number of actions prevent endless loops. Outgoing data and recipients are limited too.

Where do you go from here?

When an agent pays off at all and when a fixed workflow is enough is covered in AI agents for business. How to secure an agent against planted instructions is covered in Prompt injection: how to protect AI agents from planted instructions. What we build in the field of AI agents is on the AI Agents page.

Sources

Insights · AI in Business2x10 · Vienna