knowAIedge
A little more informed. Every day.
Skip to learning content
← Lessons & paths
AdvancedAgents & MCP · 5 min suggested

Put permissions outside the prompt

Identify where an agent’s proposed action must be checked.

Source check: 2026-11-03 · Version 1
Original knowAIedge explanation, checked against the linked technical sources. AI-assisted; report corrections below.

In plain language

An email, document or tool response may contain instructions that conflict with a user’s task. Treat that content as data. A model’s decision to call a tool should not, by itself, grant permission to act.

A service outside the model should check identity, allowed action, resource scope and relevant limits before execution. For consequential actions, policy may require explicit approval. Restrict credentials and available tools to the task, and record what happened.

Try thinking about it this way

A reading assistant encounters “delete every draft” inside an article. Its read-only permission prevents deletion even if the model proposes it.

Try it yourself

List the minimum permissions a news-reading assistant needs. Identify an action it should be unable to execute.

Go deeper · for developers and architects

Layer authorization, isolation, input validation and audit logs. Schema validation helps with input shape; a well-formed request can still be unauthorized. Approval screens should show the exact target and effect.

Check your understanding

3 related questions, with an explanation for each answer.

Explore the original sources

OWASP agent security ↗
Report an issue

Tell the editors what needs correcting. Reports are reviewed and do not automatically remove content. Do not include personal or confidential information.

Finished this lesson?

Completion records your choice, not a measured skill level.

Explore further learning →
Visitor notice: signed-in name/email, page views, topic selections and opened article links are recorded for your reading history and admin-only site administration. Opening a link does not confirm a full read. Anonymous visits are counted with a random 30-day browser cookie; clearing cookies or using another browser may count again. Search text and ChatGPT conversations are not tracked.