# Least privilege

Canonical page: https://www.theglitch.ai/ai-glossary/least-privilege

Giving an agent only the access it needs for the task, nothing more.

[Least privilege, common card \#125 in The Glitch AI glossary: Giving an agent only the access it needs for the task, nothing more.](https://www.theglitch.ai/images/cards/glossary/least-privilege.png?v=8b91936fdcfc32a9)

GLS 125 · common

Also called: Principle of least privilege.

For: Builders · Leaders

## Why it matters

Agents fail in strange ways; tight permissions turn a disaster into an inconvenience.

## In practice

A reporting agent can read the sales database but cannot write to it.

## Watch for

Broad ‘just in case’ access is the most common agent security mistake.

## Related terms

[Sandbox](https://www.theglitch.ai/ai-glossary/sandbox) · [Guardrails](https://www.theglitch.ai/ai-glossary/guardrails) · [Prompt injection](https://www.theglitch.ai/ai-glossary/prompt-injection)

## Guides that use it

[How AI agents fail in production.](https://www.theglitch.ai/learn/agent-failure-modes) · [Lock down your agents before they act.](https://www.theglitch.ai/learn/agent-security) · [Open-source AI agents worth trying in 2027.](https://www.theglitch.ai/learn/open-source-ai-agents) · [MCP servers and skills, explained.](https://www.theglitch.ai/learn/mcp-and-skills) · [MCP servers worth installing in 2027.](https://www.theglitch.ai/learn/mcp-servers-2027) · [Prompt injection, explained for normal people.](https://www.theglitch.ai/learn/prompt-injection) · [AI browsers worth using in 2027.](https://www.theglitch.ai/learn/ai-browsers-2027)

## Sources

- [OWASP: LLM06 Excessive agency](https://genai.owasp.org/llmrisk/llm062025-excessive-agency/)

- [Wikipedia: Principle of least privilege](https://en.wikipedia.org/wiki/Principle_of_least_privilege)

Definition updated 2026-10-29.

[The Ultimate AI Glossary (2027): every term](https://www.theglitch.ai/ai-glossary)

---

Site: [The Glitch](https://www.theglitch.ai) · [About Rabin](https://www.theglitch.ai/about) · [Agent guide](https://www.theglitch.ai/agent.md)
