Beginner Topic 9 of 51 Security & Cryptography
Principle of Least Privilege
Granting only the access needed to do a task.
How it works
The principle of least privilege says every user, program and process should have only the minimum access needed to perform its function, and for only as long as necessary. It limits the damage from mistakes, compromised accounts and malware, since an attacker inherits the permissions of what they compromise. Implementation uses role-based access, separate admin and regular accounts, narrowly scoped API tokens, read-only database users, containers without root and just-in-time access.
Step-by-step walkthrough
- Every user and program gets only the access it needs.
- An admin account is used rarely.
- Developers get access to their own systems.
- Reporting jobs get read-only access.
- If one account is compromised the damage is limited.
Where it is used
Cloud IAM policies, operating-system permissions, database grants, service accounts and mobile app permissions apply it.
Common pitfall
Privileges tend to accumulate over time, called privilege creep, as people change roles. Overly broad wildcard policies and shared admin accounts are common. Too strict controls without a process for requests push people to workarounds. Review access regularly, automate expiry and log privileged actions.
Where it fits in the course
Principle of Least Privilege is topic 9 of 51 in Security & Cryptography, rated Beginner. It follows Social Engineering. The next topic is Authentication vs Authorization.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the Security & Cryptography quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the Security & Cryptography quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is Principle of Least Privilege?
Where do people use Principle of Least Privilege?
What is the most common mistake with Principle of Least Privilege?
What should I learn before this topic?
How can I practice it?
Is Principle of Least Privilege hard to learn?
How long does it take to learn Principle of Least Privilege?
Which topics are related to Principle of Least Privilege?
What should I study after Principle of Least Privilege?
Related topics
- Social Engineering (Security & Cryptography)
- Authentication vs Authorization (Security & Cryptography)
- Phishing (Security & Cryptography)
- Access Control Models (Security & Cryptography)
- Pigeonhole Principle (Theory & Discrete Math)