Why it matters more every year
It is one of the oldest ideas in computer security, set out by Jerome Saltzer and Michael Schroeder in 1975. Modern systems hold many accounts that are not people: integrations, scripts, deployment pipelines and now AI agents. Each one with broad access is a door that an attacker, a bug or a manipulated model can walk through.
What it looks like in practice
| Who or what | Too much access | Least privilege |
|---|---|---|
| A support agent | Administrator on the help desk | The support role, with refunds above a limit sent for approval |
| A reporting job | The database owner account | A read-only account on the reporting views |
| An integration | One API key with every scope | A scoped token for the two objects it syncs |
| An AI agent | Every tool the CRM offers | Read orders and draft replies, with refunds approved by a person |
For AI agents, broad permissions are a risk with its own name: excessive agency, listed in the OWASP Top 10 for LLM Applications. An agent that can only read cannot be talked into deleting anything, however clever the prompt injection. When we build agents, each one gets scoped permissions, and sensitive actions keep a human approval step.
How to apply it
- List every account, key and role, including service accounts and integrations.
- Start from no access and add only what each task needs.
- Prefer short-lived, scoped credentials to permanent keys, and grant administrator rights just in time, for one task.
- Separate duties, so the person who adds a supplier cannot also approve its payment.
- Review access on a schedule and remove it when people change roles or leave. An access review makes this routine.
Common mistakes
- Temporary administrator access that is never removed.
- Shared accounts, which make every action untraceable.
- Granting broad rights because working out the narrow ones takes time.
Least privilege is a frequent outcome of threat modelling and a core part of AI security.