✳ The reference desk / In practice

Privilege escalation

Gaining rights that the starting account was not given. Vertical escalation reaches a more powerful account, such as an administrator. Horizontal escalation reaches another account at the same level.

What it means

An attacker's first foothold usually has limited rights, those of whichever user or service was compromised. Privilege escalation is the step from those rights to greater ones. It can come from a stolen administrator password or a software flaw that lets ordinary code run as the system. It can also come from a misconfigured service or a permission that was granted too broadly. Vertical escalation moves up to a more powerful account. Horizontal escalation moves sideways into another user's account. Escalation is separate from moving to another machine, though one often enables the other. Limiting it means giving every account only the rights it needs and keeping administrator credentials hard to find.

See the idea / Access

Escalation changes what an attacker may do, not where.

Follow the attacker in Nyx’s drill from Kael’s rights to administrator rights on one workstation. Then see what a shared password adds, and what a unique one stops.

Nyx’s drill at Meridian. At 16:40 a macro runs a program on Kael’s workstation. Kael is a standard user. At 22:10 the attacker finds the local administrator password. In the drill, every ground-station workstation and server uses that same password. Compare that with a different local administrator password on each machine.

Privilege escalation: Follow the attacker in Nyx’s drill from Kael’s rights to administrator rights on one workstation. Then see what a shared password adds, and what a unique one stops. The chapter text below describes every state.Nyx’s drill · Kael’s workstationCode runs as Kael from 16:40Attacker’s account hereKael · standard userOn Kael’s workstationLocal administrator passwordNot foundOne such account on each machineWhat the account allowsKael’s own files and toolsOn this workstation onlyGround-station file serverNot reachedA separate machineATTACKER HAS KAEL’S RIGHTS

01 / 04

Foothold

At 16:40 a program starts on Kael’s workstation with Kael’s rights. Kael is a standard user, so the program has a standard user’s rights and no more.

More about this step

The program came from the macro in the fake maintenance schedule. It can do what Kael can do on this machine. It cannot change the system or act on other machines.

Keep in mindOne path through one drill, with times from the lesson. The drill does not say how the password was found, so that is not shown. Escalation also happens through software flaws, misconfigured services and permissions that are too broad, with no password involved. Unique local administrator passwords limit movement between machines. They do not prevent the escalation on the first one.

Read the visual, step by step

Same on every machine

  1. Foothold. At 16:40 a program starts on Kael’s workstation with Kael’s rights. Kael is a standard user, so the program has a standard user’s rights and no more. The program came from the macro in the fake maintenance schedule. It can do what Kael can do on this machine. It cannot change the system or act on other machines.
  2. Find. At 22:10 the attacker finds the local administrator password. Nothing has been done with it yet. Finding a credential is its own stage, which ATT&CK calls credential access. The attacker’s rights have not changed at this point. Only what the attacker knows has changed. Each machine has its own local administrator account.
  3. Escalate. The attacker signs in as local administrator on the same workstation. The machine has not changed. The rights have. This is privilege escalation, and here it is vertical: from a standard user to an administrator. The attacker can now change the system, read every local account’s data and turn off local protections on this one machine.
  4. Reuse. At 01:30 the same password signs in to the file server. Moving to another machine is called lateral movement, and the shared password allows it. Escalation raised the attacker’s rights on one machine. Moving to another machine is a different stage. In the drill both were possible because every ground-station machine had the same local administrator password.

Unique per machine

  1. Foothold. At 16:40 a program starts on Kael’s workstation with Kael’s rights. Kael is a standard user, so the program has a standard user’s rights and no more. The program came from the macro in the fake maintenance schedule. It can do what Kael can do on this machine. It cannot change the system or act on other machines.
  2. Find. At 22:10 the attacker finds the local administrator password. Nothing has been done with it yet. Finding a credential is its own stage, which ATT&CK calls credential access. The attacker’s rights have not changed at this point. Only what the attacker knows has changed. Each machine has its own local administrator account.
  3. Escalate. The attacker signs in as local administrator on the same workstation. The machine has not changed. The rights have. This is privilege escalation, and here it is vertical: from a standard user to an administrator. The attacker can now change the system, read every local account’s data and turn off local protections on this one machine.
  4. Refuse. The attacker tries the workstation’s password on the file server. The server has its own password and refuses the sign-in. The escalation stays on one machine. The workstation is still fully controlled by the attacker, and it still has to be isolated and rebuilt. What changed is the reach. One stolen password now opens one machine.

One path through one drill, with times from the lesson. The drill does not say how the password was found, so that is not shown. Escalation also happens through software flaws, misconfigured services and permissions that are too broad, with no password involved. Unique local administrator passwords limit movement between machines. They do not prevent the escalation on the first one.

Flow references: MITRE ATT&CK: Privilege Escalation, TA0004

AN ILLUSTRATIVE SCENARIO

From standard user to administrator

In a drill at Meridian, a macro runs a program on Kael's workstation at 16:40 with his standard user rights. At 22:10 the attacker finds the local administrator password and signs in with it on the same workstation. That is the escalation. Every ground-station machine shares that password, so at 01:30 it also opens the file server, which is a further step.

Put it to work

  1. Remove administrator rights from the accounts people use for daily work, and use separate accounts for administration.
  2. Give each machine its own local administrator password, managed and rotated by a tool, so one stolen password opens one machine.
  3. Patch known local escalation flaws promptly, and alert when an account gains administrator rights or signs in as an administrator for the first time.

How to check your work

From a standard test account, try to read another user's files, install software and sign in to a second machine as an administrator. Each attempt should fail and appear in the logs. Confirm two machines do not share an administrator password.

Connect the ideas

  • Least privilege

    Granting each identity only the actions, objects, and time window required for the current job.

  • PAM

    Controls that broker, record, and constrain powerful administrative identities and sessions.

  • Blast radius

    How much additional loss a failure or a response action can cause beyond the original asset.

  • MITRE ATT&CK

    A public knowledge base of attacker behavior seen in real intrusions. Tactics name the attacker's goal at each stage. Techniques and sub-techniques name how that goal is reached.

Explore a field lesson

Find your next idea.

Tip: press / to open search. Escape closes this window.