Glossary

Least privilege

The principle of least privilege means giving every user, service, key and AI agent only the access it needs to do its job, for only as long as it needs it. If an account is misused or taken over, the damage is limited to what that narrow access allows.

Request a questionnaire review

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 whatToo much accessLeast privilege
A support agentAdministrator on the help deskThe support role, with refunds above a limit sent for approval
A reporting jobThe database owner accountA read-only account on the reporting views
An integrationOne API key with every scopeA scoped token for the two objects it syncs
An AI agentEvery tool the CRM offersRead 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

  1. List every account, key and role, including service accounts and integrations.
  2. Start from no access and add only what each task needs.
  3. Prefer short-lived, scoped credentials to permanent keys, and grant administrator rights just in time, for one task.
  4. Separate duties, so the person who adds a supplier cannot also approve its payment.
  5. 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.

A small first step

Send us your next security questionnaire

Share the questionnaire or security review a buyer sent you. On a short call we show which answers you already have evidence for, which gaps to fix first, and what can be automated next time.

Message us on WhatsApp

Keep exploring

Ready to build something secure?

Tell us about your product. We will reply with a clear plan.

Start a project

We would like to use Microsoft Clarity to see how visitors use the site, so we can improve it. It sets cookies and is off unless you accept. Cookie policy