Least privilege means giving a system only the permissions it needs for its task and nothing more.
For agents it applies to each tool and credential: narrow scopes, separate read and write access, short-lived tokens. If a model is manipulated, the damage is limited to what its tools are allowed to do.
Think of the agent as an untrusted user who is very fast. It should not see data it does not need, and it should not hold credentials that outlive the task. Scope tools to the current user’s identity, not to a shared service account.
Common mistake. Giving the agent one admin token because it is simpler to configure.
In practice. List every tool with the exact permission it holds, split read from write, use per-user credentials with short lifetimes, and review the list whenever a tool is added.
Prompt injection is an attack in which text the model reads, typed by a user or hidden in an email, web page or document, contains instructions that override the developer's intent. Indirect injection arrives through retrieved or tool-supplied content. It cannot be fully filtered out, so defences have to limit what a persuaded model can do.
The Model Context Protocol is an open protocol for connecting AI applications to tools and data. A server exposes tools, resources and prompts. A client inside the application discovers them and calls them. It lets one integration work with many applications instead of one custom connector per pair.
Human in the loop means a person reviews or approves the system's action at defined points before it takes effect. It is the main control for risky or irreversible actions. It only works when the review shows exactly what will happen and the person has the time and context to say no.
Cite this page
Eldan Abdrashim. "Least privilege." Eldan.ai, 23 November 2026. https://eldan.ai/glossary/least-privilege.
The date you read it is added when you copy.
BibTeX
@online{abdrashim2026least,
author = {Eldan Abdrashim},
title = {Least privilege},
organization = {Eldan.ai},
date = {2026-11-23},
year = {2026},
month = nov,
url = {https://eldan.ai/glossary/least-privilege},
langid = {english}
}