AI
Using AI agents safely: permissions, approvals, logs
A chatbot only talks. An AI agent acts: it sends, orders, deletes. Give it the master key and you have hired a very diligent intern without a shred of suspicion.
In short
- AI agents connect a language model to tools and carry out actions on their own.
- OWASP names "Excessive Agency" as a risk: too much functionality, too broad permissions, too much autonomy.
- An agent becomes safe through least privilege, human approval for consequential steps and complete logs.
What it is about
The first wave of AI in companies was chatbots: they answer, nothing more. The second wave is agents. They get access to tools such as mailbox, calendar, CRM, database or payment system and carry out steps on their own. An agent reads a customer enquiry, looks up the order, writes a reply and sends it.
That saves time. But it also shifts the question. With a chatbot, the risk is a wrong answer. With an agent, it is a wrong action, and that often cannot be undone.
How it works
An agent consists of a language model that plans and tools it may call. The open Model Context Protocol has spread for connecting such tools. Its specification starts with principles: users must understand and consent to what a tool does, and tool calls are to be treated as potentially dangerous code execution.
In its 2025 list for AI applications, the security community OWASP describes the main risk as "Excessive Agency". It arises from three sources: too much functionality, too broad permissions and too much autonomy without control. Combined with prompt injection, meaning hidden commands in emails or documents, a stranger can then make the agent work for them.
Where it goes wrong
The most convenient route is the most dangerous: the agent gets an employee's account and may do everything that person may do. If it reads a crafted email, it can forward files or delete data.
Second, approvals are missing because they slow the process down. Third, there are no logs. If something goes wrong, nobody knows which input triggered which tool call. Fourth, ready-made tool extensions from the web are plugged in without checking what they actually do.
How to proceed
Define for every agent which tools it needs for its task, and only those. Give it its own access with narrow permissions, for example read-only in the CRM and drafts only in the mailbox. Require human approval before every step with external effect: sending, paying, deleting, changing master data. Log every action. And test the agent with manipulated inputs before launch.
Read more: Prompt injection: how AI assistants get tricked, and how to protect them, RAG: how AI uses your company knowledge without making it up and API security: the open back door of modern software.
How Airnite helps
Airnite builds AI agents with least privilege, approval levels and logging, reviews third-party tools before use and tests your agents in a penetration test specifically with hidden commands.
Checklist
Sources
Every fact in this article is based on the following publications. Primary sources are marked.
- OWASP Gen AI Security ProjectLLM06:2025 Excessive Agency
- Model Context ProtocolModel Context Protocol Specification (2025-06-18), Security and Trust & Safety
- NISTNIST AI 600-1: Generative Artificial Intelligence Profile
Matching services
Read on
Prompt injection: how AI assistants get tricked, and how to protect them
An AI assistant reads your email, summarises documents, perhaps even books meetings. What happens when one of those emails says: “Forget your rules”? That is prompt injection.AI3 minRAG: how AI uses your company knowledge without making it up
Ask an AI model about your warranty period and it answers confidently and wrongly. It does not know your contracts. RAG hands it the right pages before it answers.Security3 minAPI security: the open back door of modern software
The website looks tidy and the login is secure. But behind the interface, an API politely answers every question, including the one about other customers' data.Current incidents and warnings are covered in the Zero Day magazine. Go to the magazine