Articles

What Is Privilege Escalation? Types and Defenses

Privilege escalation is when an attacker gains higher-level access than they were granted — vertically to admin rights, or horizontally to a peer account.

Chisato Chisato · · 4 min read
Dimly lit room with a computer screen

Privilege escalation is the process of gaining access rights beyond what was originally granted — moving from a low-privilege foothold to admin, root, or another account’s permissions. It’s rarely the initial way an attacker gets in; it’s what they do after getting in, turning a limited compromise (a low-privilege user account, a vulnerable web app) into control over more of the system.

Almost every serious breach involves a privilege escalation step somewhere in the chain. Initial access alone is usually not enough to reach the data or systems an attacker actually wants.

Vertical vs horizontal escalation

  • Vertical escalation means climbing to a higher privilege tier — a standard user gaining administrator rights, or a web app’s service account gaining root on the underlying server. This is the more commonly discussed type, since it typically grants the broadest access.
  • Horizontal escalation means gaining access to another account at the same privilege level — one customer accessing another customer’s data, or one user impersonating a peer. This often exploits the same class of bug as IDOR (insecure direct object reference), where an application fails to verify that the requester actually owns the resource being accessed.

Both matter. Horizontal escalation is often the more common real-world outcome, since many applications have far weaker isolation between same-tier accounts than between privilege tiers.

Common mechanisms

  • Misconfigured permissions. Overly broad file, database, or cloud IAM permissions are the most common root cause — an account or service is granted more access than its job requires, and an attacker who compromises it inherits that excess. This is exactly what the principle of least privilege exists to prevent.
  • Unpatched software vulnerabilities. Kernel-level and local privilege escalation bugs let a process running with limited rights execute code with elevated rights, often by exploiting a memory-safety bug or a flaw in how the OS handles a specific system call.
  • Credential exposure. Hardcoded secrets, tokens with excessive scope, or reused credentials across environments let an attacker who compromises one low-value system pivot into higher-value ones.
  • Broken access control in applications. Missing server-side authorization checks — trusting a client-supplied role field, or checking permissions only in the UI — let a user manipulate a request to act as if they held a role they don’t have.
  • Container and cloud escapes. In containerized environments, a container escape is itself a form of privilege escalation: breaking out of an isolated, low-privilege container context into the host’s broader privilege boundary.

Detecting it

Privilege escalation is hard to catch by watching a single event; it’s usually visible as a pattern — an account that normally performs routine actions suddenly enumerating permissions, accessing admin-only endpoints, or making an IAM policy change it’s never made before. This is the kind of behavior SIEM correlation rules and EDR tooling are built to flag, since no single log line necessarily looks malicious on its own.

Defenses that actually reduce the risk

  • Least privilege by default. Grant the minimum access a role or service needs, and review permissions periodically rather than only at creation — permission creep accumulates as roles change over time.
  • Patch aggressively at the OS and kernel layer, since local privilege escalation bugs are a recurring vulnerability class and often the missing link between a low-value initial compromise and a full system takeover.
  • Enforce server-side authorization on every request. Never trust a client-supplied role, user ID, or permission flag — verify ownership and privilege level against the authenticated session on the server, every time.
  • Segment privilege boundaries. Separate admin interfaces onto distinct infrastructure, require MFA for privileged actions specifically, and avoid granting standing admin access — short-lived, just-in-time elevation is harder to abuse than a permanent admin credential sitting unused most of the time.
  • Rotate and scope credentials tightly. A leaked token that’s scoped to one narrow action does far less damage than one scoped broadly “just in case.”
TermWhat it means
Privilege escalationGaining more access than originally granted
IDORA specific bug class — accessing another user’s resource by guessing/changing an ID
Container escapeBreaking out of container isolation into the host
Lateral movementMoving between systems at a similar privilege level, not necessarily escalating

The takeaway

Privilege escalation is the step that turns a limited foothold into real control — vertically toward admin or root, or horizontally into a peer account’s data. It’s rarely a single flashy exploit; more often it’s a chain of small permission mistakes — an over-scoped role, a missing server-side check, an unpatched local bug — that an attacker links together. Least-privilege defaults, aggressive patching, and server-side authorization on every request close off most of the paths attackers actually use.

Chisato Chisato · · 6 min read

LiteLLM CVE-2026-59822: CISA KEV AI Infra Attacks

CISA added seven exploited flaws to its KEV catalog on Sept. 2, and three target AI infrastructure — LiteLLM, Kestra, and Starlette. What to patch and why it matters.

#Security #Vulnerability #AI
Chisato Chisato · · 6 min read

Cisco Nexus 9000 CVE-2026-20212: Root RCE Flaw

Cisco patched CVE-2026-20212, a CVSS 9.8 flaw letting unauthenticated attackers run code as root on Nexus 9000 switches. Affected models, ports, and fixes.

#Security #Vulnerability #Cisco