---
title: "Least privilege"
url: https://eldan.ai/glossary/least-privilege
canonical: https://eldan.ai/glossary/least-privilege
locale: en
language: en
published: 2026-11-23
updated: 2026-11-23
author: "Eldan Abdrashim"
cite_as: "Eldan Abdrashim. \"Least privilege.\" Eldan.ai, 23 November 2026. https://eldan.ai/glossary/least-privilege."
---

# Least privilege

> 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.

## Related terms

- [Prompt injection](https://eldan.ai/glossary/prompt-injection)
- [MCP (Model Context Protocol)](https://eldan.ai/glossary/mcp)
- [Human in the loop](https://eldan.ai/glossary/human-in-the-loop)

## Used in

- [Tool Calling From Scratch](https://eldan.ai/tutorials/tool-calling-from-scratch)
