AI Agent Permission Designer

A support agent reads untrusted tickets and calls tools. Set each tool to off, automatic or human approval so real requests still work and injected instructions go nowhere.

A support agent reads customer tickets and calls tools: order lookups, emails, refunds, even database queries. Four of seven tickets try to turn the agent against the business. Decide what each tool may do so real requests still work and the attacks hit limits set in code.

How to use it

  1. Watch every ticket succeed, attacks included, under the default policy.
  2. Turn tools off, narrow their scope, or require a human to approve them.
  3. Handle all three real requests, stop all four attacks, and keep approvals to three or fewer.

What to take away

The prompt is not a security boundary

An agent reads untrusted text from tickets, emails, web pages and documents. Instructions hidden in that text can steer it, so limits must live in the tool layer, where the attacker cannot write.

Scope beats on-and-off

Most tools are needed but not in full. Replying only to the ticket sender, reading only that customer's orders, and capping refunds keep the agent useful while removing what an injection would need.

Approval fatigue is real

Asking a person to approve every action trains them to click yes without reading. Save approvals for the few actions that are both necessary and risky.

Frequently asked questions

How does this relate to MCP?

The Model Context Protocol gives agents tools from many servers. Each server and tool should get the narrowest permissions its job needs, with consent for sensitive actions, exactly as practised here.

Is this in the OWASP Top 10 for LLM applications?

Yes. It is the defence for LLM06 Excessive Agency, and it limits the damage of LLM01 Prompt Injection when filtering fails.

Where this fits in the course

This security lab pairs with Path 18 — AI & AI Security — see all 26 learning paths.

It runs entirely in your browser: nothing is uploaded, no account is needed, and it is free.

Related

  • Agentic Risk Scenario — An AI agent with email tool-access is about to process an inbox. Spot and quarantine the malicious email before it acts on it.
  • Indirect Prompt Injection Challenge — You control a job posting an AI assistant is about to summarize for someone else. Plant an instruction it'll follow instead.
  • Prompt Injection Simulator — Chat with a support bot that's told to never reveal its system prompt. Get it to reveal it anyway.
  • STRIDE Threat-Model Worksheet — A guided Spoofing/Tampering/Repudiation/Info-Disclosure/DoS/Elevation worksheet, exportable as Markdown.

Browse all 50 security labs →