Abekus — AI learning and job matching platform logo

Least privilege

Lesson 3 of 80 in ISC2 Certified in Cybersecurity (CC) Exam Prep. Free to read, no account needed.

What least privilege means

Least privilege is a security principle: give users only the access they need for their assigned tasks. The US National Institute of Standards and Technology (NIST) defines it as restricting access privileges to the minimum necessary to accomplish assigned tasks. The principle covers people and also processes acting on behalf of users, such as a program that runs a task for a logged-in customer.

Asha Foods has 200 staff, a customer app, a payments service and a cloud-hosted order database of about 2 TB. Each extra permission is one more thing that can go wrong, whether through an honest mistake, misuse or an attacker, so keeping access to the minimum keeps that data and those services safer.

Start from the task

To find the right access, start from the task, then list what that task needs to read or change, and grant nothing beyond it. The question is always what the job requires, not what would be convenient to have.

Who or whatAssigned taskMinimum access
Support desk agentAnswer a customer's order status questionRead the order records of the customer being helped
Payments serviceRecord payment for each completed orderWrite payment records; read the order it is paying
New hire in the app teamFix bugs in the customer appAccess to the app's code and test environment only

Worked example: payments service

The payments service has one assigned task: record payment for each completed order in the order database. Working through it step by step:

  1. The task needs to write a new payment record for each completed order.
  2. To do that, it needs to read the order ID and the amount owed.
  3. Does it need to delete orders? No. Change customer phone numbers? No. Read full customer profiles? No.
  4. Result: write access to payment records, and read access to the order fields it uses. Anything more is over-privilege.

Over-privilege enlarges damage

Over-privilege means having access beyond what assigned tasks require. Suppose a support desk agent is given full edit rights to every order, "just in case". Her task only needs to read order status. If she makes a typing error, or her login is misused or stolen, the extra rights let her change or delete orders she never needed to touch.

The extra access does nothing for her work. It only widens what a single mistake or compromised login can damage.

Tasks, not habit or seniority

Access should follow the task a person or process must perform. Three common reasons for granting access are wrong: convenience, seniority and habit. Each one gives access the task does not need.

Reason givenWhy it failsTask-based question
"Copy what Ravi has"Ravi's access may be wider than his own taskWhat does this new role actually do?
"He's a manager"Seniority does not change what a task needsWhich task needs this access?
"We've always given it"Old access may outlive the task it was forIs it still needed for a current task?

Least privilege and the core goals

Least privilege supports the three core goals and privacy. Confidentiality improves because fewer people and processes can read customer addresses and payment details. Integrity improves because fewer accounts can change an order total or a payment record. Availability improves because a process that only needs to read cannot accidentally delete or lock the order database.

Privacy improves because customer data is seen only by those whose task needs it. The more tightly access matches tasks, the fewer ways any of these goals can break.

Lessons in Cybersecurity Basics

  1. Confidentiality integrity and availability
  2. Privacy and non-repudiation
  3. Least privilege
  4. Defense in depth
  5. Threat vs vulnerability vs risk
  6. Likelihood and impact
  7. Phishing and social engineering
  8. Malware and ransomware basics
  9. Denial of service attacks

80 lessons across 8 topics. See the full course