Skip to content
BENIBIX Learn

Principle of Least Privilege

Development🔐 SecuritySecurity Basics

Also known as Least Privilege, PoLP, Minimal Privilege

Give each user or app just the access it needs, and no more.

Think of it like

Think of it like the dog walker's key. It opens the gate, not the whole house.

Example

Jack's report app uses a read-only account on the database. The app gets hacked, but the attacker can only read. Not one row can be deleted.

Why it matters

Break-ins will happen. Least privilege decides whether one leads to a small leak or a total loss.

Definition

Least privilege means each person or app gets only the access it needs. A report tool that only reads data should not be able to delete it. A new team member gets the rooms they work in, not every room. If an account is stolen, the thief can only reach what that account could. It limits the harm of every mistake and every break-in.

Common mistake

Giving an app full admin rights because it is quicker. That one shortcut makes every future break-in worse.

Key takeaways

  1. 1
    Only what is needed. Nothing extra.
  2. 2
    For people and apps. Every account.
  3. 3
    Shrinks the damage. Of any break-in.