Least Privilege Principle
Table of Contents
Grant users and processes only the minimum permissions necessary to perform their tasks — no more.
Core Idea
Every user, process, or system component should operate with the least set of privileges required to complete its function. In the context of Cyber Security, this is one of the most consistently violated principles in real environments.
Closely related to the Zero Trust Model — PoLP is one of its foundational controls.
Key Controls
- Role-based access control (RBAC): Permissions follow job function, not individuals, making reviews and revocations manageable.
- Privilege separation: Administrative and standard accounts are kept distinct. Elevation happens explicitly and temporarily.
- Regular permission reviews: Access rights drift over time; periodic audits catch stale or excessive permissions.
- Just-in-time access: Elevated privileges are granted on demand and revoked after use rather than held permanently.
Relevance to Pentesting
PoLP failures are a primary escalation path. Common misconfigurations to look for:
- Overprivileged service accounts (running as SYSTEM or root unnecessarily)
- Excessive sudo rights (
sudo -lreveals what a user can run) - Writable files or directories owned by privileged processes
- SUID/SGID binaries that can be abused for escalation
- Users in groups they have no business being in (
id,groups)
Challenges
Implementing PoLP consistently is harder than it sounds. Determining minimum privilege requires deep understanding of workflows, and users often resist restrictions that slow them down. In complex environments, access control policies become difficult to maintain without dedicated tooling.
The practical failure mode is privilege creep — permissions accumulate over time as roles change and nobody removes old access.