Understanding Privilege Escalation
Distinguish horizontal escalation, vertical escalation and privilege misuse, and select preventive controls that stop an account from gaining more access than it was given.
When a little access quietly becomes a lot
During a security check, Neha finds something odd in the shared drive's records. Last month, a store cashier account at the Nashik Road branch opened the "Staff salaries" folder, a folder only the Accounts team should ever see. The cashier role was never given that permission. Somewhere along the way, an account with small powers gained bigger ones. This is privilege escalation: getting more access than you were legitimately given. A privilege is simply a level of access, such as "can view" or "can change settings". Escalation matters because attackers almost never break in with powerful access. They get in through a small account and then climb, so stopping the climb limits the damage of almost every break-in.
Two directions: sideways and upwards
Picture a college building. On the ground floor are rows of student lockers; upstairs is the principal's office with the exam papers and fee records. A student who opens someone else's locker has not gained any extra rank, but she is into things that are not hers. A peon who quietly gets hold of the principal's keys has jumped to a far more powerful level. These are the two directions of privilege escalation.
Horizontal escalation reaches a peer's things at the same level. Vertical escalation climbs to a level with more power.
Horizontal privilege escalation means reaching the data or actions of another user at the same level. In the Tulsi Health app, every customer should see only their own orders. If a flaw in the app let Mrs. Gokhale's account open another customer's order history, that would be horizontal escalation: no extra powers, but someone else's private prescriptions. It usually happens because the app checks "is this person logged in?" but forgets to check "does this order belong to this person?"
Vertical privilege escalation means gaining a higher level of power than your role allows, typically moving from an ordinary user to an administrator (admin), an account that can change settings, create users and see everything. If a cashier account could reach MedLedger's admin screen and change prices or create new staff accounts, that would be vertical escalation. Vertical escalation is usually the more dangerous, because an admin account can switch off logging, disable backups and hand out access to others, as many ransomware attacks show.
Both are a failure of authorization: the system let an action through without checking whether this account is allowed to do it.
Excessive permissions: escalation that nobody has to break
Many escalations need no trick at all, because the access was already sitting there. Excessive permissions are rights an account holds beyond what its job needs. They pile up in ordinary ways. A new employee is given "admin" because it is the quickest way to make an error go away. Someone moves from one job to another and gains new rights without losing the old ones, which is called privilege creep. A single shared admin password is known to five people. Software like MedLedger is set to run with full admin rights on every laptop, so any malware that gets onto the laptop inherits those rights too.
This is how the Nashik Road cashier account reached the salaries folder. Two years ago, the person using it had helped Accounts during the year-end closing and was added to the Accounts group "just for March". Nobody removed it. When an attacker phished that cashier's password, they did not need to escalate anything; the path upwards was already open. Excessive permissions turn a small break-in into a big one, which is why the principle of least privilege (each account gets only the access its current job needs) is the first defence against escalation.
Privilege misuse: the insider with real access
Not every abuse of access is escalation. Privilege misuse is when someone uses access they genuinely hold for a purpose it was never meant for. A pharmacist who can legitimately view prescriptions looks up a famous customer's medicines out of curiosity. An accountant with real access to supplier payments changes a bank account number to his cousin's. No rule was broken by the system; the system did exactly what it was told. The harm comes from the person.
Misuse is hard to block in advance, because the access is needed for the job. It is caught instead by accountability: every action is logged against a named account, the logs are reviewed, and staff know they are reviewed. Separation of duties also helps. If one person can enter a supplier's bank details but a second person must approve the change, a single dishonest employee cannot complete the fraud alone.
Sort each situation below. Decide whether someone reached a peer's things at the same level (horizontal), climbed to more power (vertical), or used access they genuinely had for the wrong purpose (misuse).
Preventive controls that stop the climb
Because escalation is about reaching more than you should, the defences are about keeping access small and checking it at every step. The stack below lists the main ones, from the design of the system down to watching it in use.
No single layer is enough. Together they make the climb harder, shorter, and much more likely to be noticed.
The most important control belongs to the developers. Every request must be checked on the server (the computer that runs the app, which users cannot tamper with) against the question "is this account allowed to do this, to this item?" A hidden button is not protection. Admins such as Neha should use a normal account for email and browsing, and a separate admin account only when doing admin work, so that a phishing email opened in the morning does not land on an all-powerful account. Software updates close known flaws that attackers use as ladders. Finally, any change to privileges, such as a user added to an admin group, should create an alert that a person reviews.
Neha has a limited budget to protect Tulsi Health against escalation. Switch on the controls you think matter most, then run the attacks and see which ones are blocked, caught or missed.