What is Least privilege?
Giving every user, service and process only the access it needs to do its job, and nothing more. When an account is compromised or misused, least privilege limits how much damage it can do.
Least privilege applies to people (no standing admin rights for daily work), service accounts and cloud roles (a job that reads one bucket should not have "storage:*" on everything), and applications. Over-permissioned accounts are a recurring root cause in breaches, because attackers inherit whatever the compromised identity could do. Making it real takes role-based access, just-in-time elevation for admin tasks, regular access reviews, and removing access promptly when people move or leave. The common objection is speed ("just give it full access so it stops failing"), which is why good requests describe exactly what a task needs.
Source: NIST CSRC Glossary (CNSSI 4009-2022).
Practice it in a lab
Free, hands-on labs that teach Least privilege. 59 more labs also cover it.
- Least-privilege IAM on your own AWS account (beginner, ~40 min)
- Users and permissions on Linux: least privilege in practice (beginner, ~45 min)
- Right-size permissions with AWS IAM Access Analyzer (least privilege) (intermediate, ~50 min)
- Write a least-privilege sudoers policy that grants one command, not the keys (intermediate, ~45 min)
- Write least-privilege AWS IAM policies with Policy Sentry (intermediate, ~40 min)
- Design least-privilege OAuth scopes for an API -- and enforce them per route with tests (intermediate, ~60 min)
- Audit your Active Directory for excessive privilege (least-privilege hardening) (advanced, ~2-3 hours (most of it is the one-time lab build))
- Mine least-privilege roles and catch toxic combinations (identity governance from scratch) (advanced, ~120 min)
Related terms
Related
- Least-privilege IAM on your own AWS account
- Users and permissions on Linux: least privilege in practice
- Right-size permissions with AWS IAM Access Analyzer (least privilege)
- Write a least-privilege sudoers policy that grants one command, not the keys
- Write least-privilege AWS IAM policies with Policy Sentry
- Design least-privilege OAuth scopes for an API -- and enforce them per route with tests
- Audit your Active Directory for excessive privilege (least-privilege hardening)
- Mine least-privilege roles and catch toxic combinations (identity governance from scratch)
- Firewall
- Role-based access control
- Defense in depth
- SQL injection
- Cybersecurity glossary
- Free cyber labs