# Least privilege for agents, defined with a sourced example

GLOSSARY, read 12 Nov 2026

**The short answer.** Least privilege for agents means giving an agent only the files, tools, network access and credentials its task needs, for as long as it needs them. NIST's glossary describes least privilege as restricting access of users, or processes acting for them, to the minimum necessary to accomplish assigned tasks.

## Definition

Least privilege for agents means giving an agent only the files, tools, network access and credentials its task needs, for as long as it needs them. It limits the harm when an agent is misled, since the agent inherits whatever the user holds.

## Example from a real source

**Example.** NIST's glossary describes least privilege as restricting access of users, or processes acting for them, to the minimum necessary to accomplish assigned tasks.

## Related terms

- [Human-in-the-loop approval](/glossary/human-in-the-loop-approval/): Human-in-the-loop approval requires a person to confirm an agent action before it runs.
- [YOLO / auto-approve mode](/glossary/yolo-auto-approve-mode/): Auto-approve mode, often called YOLO mode, lets an agent run actions without asking each time.
- [Rug pull (MCP)](/glossary/rug-pull-mcp/): In MCP, a rug pull is when a server changes a tool's description or behavior after the user approved it.

## Where to read more

- [The Agent Surface Map](/agent-surface-map/)
- [The Action Control Matrix](/action-control-matrix/)
- [All glossary terms](/glossary/)

## Sources

- csrc.nist.gov/glossary/term/least_privilege: https://csrc.nist.gov/glossary/term/least_privilege (read 12 Nov 2026)

Last reviewed 12 Nov 2026. Canonical: https://aiendpointsecurityranked.com/glossary/least-privilege-for-agents/
