Principle of least privilege
Every person, service and AI agent gets only the access needed for its task, for only as long as needed, so a stolen account can do little harm.
NIST’s glossary defines it as giving each entity the minimum resources and authorizations it needs to perform its function. In practice: a support agent can read tickets but not export the customer list, a reporting job has a read-only database user, an API key is scoped to one service. It applies equally to non-human identities and AI agents, which tend to receive broad tokens because it is quicker.
Auditors look for evidence: roles defined in RBAC, admin rights held by few people and granted through PAM, and periodic access reviews that remove what is no longer needed. The usual finding is drift: permissions granted for a one-off task years ago and never taken back.
Sources
- NIST CSRC Glossary: least privilege csrc.nist.gov
Related terms
- RBAC and ABAC (role-based access control): Two ways to decide who may do what: RBAC grants permissions through roles such as admin or viewer, ABAC through attributes of user, resource and context.
- User access review (access recertification): A periodic check, often quarterly, where owners confirm who still needs access to each system and remove the rest, keeping evidence for auditors.
- PAM (privileged access management): Controls for admin and root accounts: few holders, separate accounts, strong MFA, access granted just in time, and every session logged.
- Non-human identity (agent identity): Accounts, keys and tokens used by software rather than people: service accounts, API keys, CI tokens and, more and more, AI agents.
- Secrets management (leaked API keys): Keeping API keys, passwords and tokens out of code and chats, in a store with access control, rotation and audit.
- Zero trust (zero trust architecture): A security model that trusts no request because of where it comes from, such as the office network or VPN; each one is checked for user, device and context.
