Skip to content
LiveNext 10:04:39

Definition

What is Privilege escalation?

Privilege escalation is Privilege escalation is when an attacker, or a misbehaving program or AI agent, gains more access than it was granted, such as moving from a limited account to administrator rights.

Privilege escalation is what happens when someone or something ends up with more power than it was supposed to have. An attacker starts with a small foothold, such as a basic account, and works up to broad control.

How it works

Systems give different accounts different levels of access. A normal user can read their own files. An administrator can change settings for everyone. Privilege escalation is the climb between those levels.

There are two main kinds:

  • Vertical: moving up, for example from an ordinary user to an administrator or root.
  • Horizontal: moving sideways, for example from your account to another person's, to read what they can read.

Attackers get there by using a software flaw (an exploit), by finding a stolen or over-powered credential, or by abusing a setting that was configured too loosely.

The analogy: a visitor badge gets you into the lobby. Escalation is finding that the badge also opens the server room because nobody changed a door setting.

Why it matters

Most serious attacks are chains. The first step, such as running a malicious file or logging in with a stolen password, usually gives limited access. Escalation turns a small incident into a large one. Combined with remote code execution, it can hand an attacker an entire system.

Why it matters for AI agents

An AI agent with tools holds privileges: it can read files, send messages, call APIs or run commands. If someone tricks it through prompt injection, or it simply acts outside its task, the agent can use those privileges for the wrong job. A single agent running with a broad admin key is a ready-made escalation path.

Practical steps for agents:

  • Follow least privilege: grant only the access the task needs.
  • Give each agent its own agent identity so its permissions can be set and revoked separately from a person's.
  • Run it inside an agent sandbox so a mistake stays contained.
  • Require approval before actions that change permissions or send data out.

How to reduce the risk generally

  • Apply security patches quickly, since many escalation attacks use known flaws.
  • Remove unused accounts and old keys, and rotate access tokens.
  • Watch for unexpected administrator logins or permission changes.
  • Separate environments so a foothold in one does not reach the rest.

How it relates to neighboring terms

Least privilege is the main defense, because it limits how much there is to escalate to. An exploit or stolen credential is often the way in, and escalation is what makes the access valuable.

Questions people ask

What is the difference between vertical and horizontal privilege escalation?

Vertical escalation moves up to a higher level of power, such as from a normal user to an administrator. Horizontal escalation moves sideways to another account at the same level, to reach that account's data.

How do you prevent privilege escalation?

Give every account, key and agent the least access it needs, patch known flaws promptly, separate environments with sandboxes, and monitor for unusual admin activity.