What Is Privilege Escalation?

Penetration Testing • Last updated: 30 Nov 2026

Written By

Sarwat Iftikhar

Dark blue cybersecurity infographic explaining Privilege Escalation, illustrating how an attacker exploits security weaknesses to gain higher access privileges, progressing from a regular user account to admin access. Highlights risks such as unauthorized administrative access, configuration changes, sensitive data exposure, bypassing security controls, and taking full system control.

Privilege escalation is the process by which an attacker who has gained an initial foothold in an environment uses misconfigurations, software vulnerabilities, or design flaws to obtain a higher level of access than the account or position they started with grants them. The initial position may be a low-privileged user account obtained through phishing, a service account exposed by a compromised application, or an unauthenticated entry point reached through a network vulnerability. The escalation is the step that converts that limited access into something operationally useful: local administrator on a workstation, domain administrator in an Active Directory environment, root on a Linux server, or an IAM role in a cloud environment that reaches sensitive data or systems.

Privilege escalation is not a single technique but a phase in an attack chain. It occurs after initial access has been established and before the attacker reaches their primary objective, which may be data exfiltration, ransomware deployment, persistent access installation, or lateral movement to a higher-value target. The techniques used differ significantly by environment; Windows, Linux, Active Directory, and cloud each present distinct escalation paths, but the underlying principle is consistent: every environment grants access through a permission model, and that model can be misconfigured, abused, or exploited to deliver permissions the model’s designers did not intend to grant.

Key Takeaways

  • Privilege escalation converts limited initial access into higher-level permissions, and it is the step in an attack chain that determines how far an attacker can go once they are inside an environment
  • Vertical privilege escalation moves an attacker to a higher privilege level (user to administrator, standard to root); horizontal privilege escalation moves them to a different account at the same level to reach resources or systems the original account could not access
  • Active Directory environments are the highest-density target for privilege escalation because domain-level escalation affects every system in the domain, and AD misconfigurations are common and persistent
  • Privilege escalation paths are frequently invisible to defenders until they are enumerated by an attacker or a tester, because misconfigurations that enable escalation often look like normal configuration from monitoring tools
  • Testing for privilege escalation requires a tester who starts from the same position an attacker would and enumerates escalation paths methodically, covering both known technique categories and environment-specific configuration flaws

Vertical vs. Horizontal Privilege Escalation: What the Distinction Means in Practice

Privilege escalation splits into two distinct categories with different technical mechanisms and different business impact profiles. Understanding both is necessary for understanding what privilege escalation testing covers and what a successful escalation enables.

Vertical privilege escalation moves an attacker from a lower privilege level to a higher one on the same system or within the same environment. A standard user account that gains local administrator access on a Windows workstation has escalated vertically. A local administrator account that reaches domain administrator in an Active Directory environment has escalated vertically again. A service account in a cloud environment that gains the ability to attach administrator-equivalent IAM policies has escalated vertically in the cloud context. The defining characteristic is that the attacker now holds permissions that grant qualitatively different capabilities than their starting position, not just access to different data at the same level.

Horizontal privilege escalation moves an attacker to a different identity at the same privilege level to access resources or systems the original account could not reach. A user who accesses another user’s account data, files, or sessions without elevating their overall privilege level has escalated horizontally. In network environments, horizontal escalation often involves credential theft from one account to access systems where that account has administrative rights, even when the original account does not. The impact of horizontal escalation depends on what the target identity can access; in environments where high-privilege accounts are shared or where service accounts hold access to multiple systems, horizontal escalation can be as impactful as vertical escalation.

Identity and access management defines the permission model that privilege escalation bypasses. When IAM is correctly implemented, with accounts holding only the permissions required for their specific function, permissions reviewed regularly, and privileged accounts segregated from daily-use accounts, the attack surface for privilege escalation shrinks to software vulnerabilities and misconfigurations rather than permission design. When IAM accumulates permissions over time without review, privilege escalation paths multiply silently.

Attack path analysis maps how individual privilege escalation steps chain together into routes from an initial entry point to a high-value target. A single escalation step rarely reaches the target directly; the value of attack path analysis in the context of privilege escalation is identifying which configuration or permission change eliminates the most chained paths rather than which individual finding scores highest in isolation.

What Does Privilege Escalation Testing Cover?

Privilege escalation testing examines five distinct environments, each with its own set of techniques, misconfiguration patterns, and testing methodology. A complete privilege escalation assessment covers each environment present in the target organization’s infrastructure.

Attack Category Environment Primary Impact Windows Local Privilege Escalation Service, token, and registry abuse Local Local administrator access enabling credential harvesting Active Directory Escalation Kerberos, ACL, and trust abuse AD Domain administrator access affecting every domain-joined system Linux Privilege Escalation SUID, sudo, and cron job abuse Linux Root access on servers and infrastructure running Linux workloads Cloud IAM Escalation Over-permissioned roles and policy abuse Cloud Administrator-equivalent cloud access via IAM write or policy attachment Web Application Escalation Role bypass and authorization logic abuse Web Administrative or cross-tenant access within an authenticated application Bugstrix Security Research
The five primary privilege escalation categories by environment, with primary impact. Each environment requires distinct testing methodology and presents distinct misconfiguration patterns that do not transfer across environments.

Windows local privilege escalation testing examines whether a standard user account on a Windows system can reach local administrator through service misconfiguration, token abuse, or permission weaknesses. Unquoted service paths with spaces in directories writable by standard users allow a crafted binary to execute as the service’s account when the service starts. Weak service binary permissions allow a standard user to replace the service executable directly. Token impersonation through Windows token privilege abuse allows a service account with SeImpersonatePrivilege to impersonate higher-privileged tokens. UAC bypass techniques allow a medium-integrity process to reach high integrity without a prompt. Scheduled task misconfigurations and writable directories on the system PATH round out the primary Windows local escalation surface. Internal penetration testing that simulates an attacker who has obtained initial access to a standard user account on a domain workstation covers this category as a core component of the engagement.

Active Directory escalation testing examines whether a low-privileged domain user can reach domain administrator or equivalent through Kerberos attacks, ACL abuse, or trust relationship exploitation. Kerberoasting requests service tickets for accounts with Service Principal Names and cracks the ticket offline to recover the service account’s password. AS-REP roasting targets accounts with Kerberos pre-authentication disabled. ACL abuse exploits over-permissive access control entries that grant non-privileged accounts the ability to modify high-privilege objects, resetting a privileged account’s password, adding a member to a privileged group, or writing to an account’s msDS-KeyCredentialLink attribute to perform Shadow Credentials attacks. DCSync exploits the domain replication rights granted to certain accounts to extract password hashes for every domain account without touching a domain controller’s disk. Network penetration testing of an Active Directory environment surfaces the network-layer exposure that provides attacker positioning for these techniques.

Linux privilege escalation testing examines whether a low-privilege shell on a Linux system can reach root through SUID binary abuse, sudo misconfiguration, writable cron jobs, or exploitable running services. SUID binaries that execute with the owner’s permissions regardless of who runs them can be abused when they accept user-controlled input that reaches a privileged operation. Sudo rules that grant standard users the ability to run specific commands as root frequently have bypass conditions, file path manipulation, shell escape sequences, or arguments that the sudo rule does not constrain. World-writable cron job scripts that execute as root allow a low-privilege user to inject commands that run in the privileged context.

Cloud IAM escalation testing examines whether a cloud principal with limited initial permissions can acquire administrator-equivalent access by exploiting IAM write permissions, policy attachment rights, or role assumption trust relationships. A principal with the ability to attach policies to itself or to roles it can assume, to create new IAM users and attach policies to them, or to pass roles to new resources can reach permissions far beyond its initial scope without exploiting any software vulnerability. Cloud IAM escalation is entirely misconfiguration-driven, which makes it invisible to network-layer monitoring and undetectable by signature-based defenses.

Web application escalation testing examines whether an authenticated user can access administrative functions, modify their own role or privilege attributes, or access data belonging to other users or tenants. This category covers forced browsing to administrative endpoints that check authentication but not authorization, parameter manipulation to substitute a higher-privileged role identifier, and authorization enforcement gaps in APIs that expose role and permission management endpoints.

Which Privilege Escalation Techniques Are Most Commonly Exploited?

Privilege escalation testing consistently surfaces the same technique categories across different engagements, with Active Directory environments showing the highest density of exploitable paths.

Misconfigured service permissions on Windows remain among the most commonly exploited local privilege escalation findings. Organizations that build Windows environments incrementally accumulate services whose binary paths, executable permissions, or registry keys were not configured to restrict write access from standard users. The findings are often legacy configurations from application installations that set permissive defaults and were never reviewed. A service binary that standard users can overwrite executes with the service account’s privileges when the service restarts, which, in environments where services run as SYSTEM or as a privileged service account, provides immediate local escalation without exploiting any software vulnerability.

Active Directory ACL misconfigurations are the most impactful escalation findings in Windows domain environments. GenericAll, GenericWrite, WriteDACL, and WriteOwner rights granted to standard user accounts or groups over privileged AD objects create escalation paths that are silent to event-log monitoring tuned for administrative actions, because the abuse looks like a user legitimately modifying an object they appear to have permission to modify. Active Directory penetration testing specifically enumerates these ACL paths across the entire domain, mapping which non-privileged accounts hold rights over which privileged objects and modeling the escalation chain from each.

Kerberoastable service accounts with weak passwords are exploited in nearly every Active Directory environment with service accounts that have not had their passwords managed as privileged credentials. Any authenticated domain user can request a service ticket for any account with a Service Principal Name registered. The ticket is encrypted with the service account’s password hash and can be cracked offline without generating authentication failures or account lockouts. Service accounts configured with simple, predictable, or reused passwords yield cracked credentials in seconds with current hardware, and the cracked password provides direct authentication as a potentially high-privileged account.

Sudo misconfigurations on Linux are a persistent finding in environments where server access is managed by multiple teams without a centralized sudo policy. Rules that grant broad command access, allowing execution of scripting interpreters, file editors, or commands that accept file path arguments, frequently have bypass conditions that allow a standard user to reach a root shell. The GTFOBins project catalogs these bypass conditions for hundreds of common commands, and testing against each sudo rule in an environment’s configuration is a standard component of Linux privilege escalation assessment.

Credential exposure in environment variables and configuration files provides escalation paths that do not require exploiting any permission misconfiguration. Applications that store database credentials, API keys, or service account passwords in environment variables, configuration files, or application code comments accessible to low-privilege users provide those users with credentials that may hold higher privileges than the account that found them. This finding category overlaps with credential hygiene but represents a privilege escalation path when the exposed credential authenticates to a system or service with higher access than the account that holds the secret.

Identity Threat Detection and Response (ITDR) capabilities that monitor for behavioral indicators of privilege escalation, unusual role assumption, ACL modification on privileged objects, service ticket requests for high-value service accounts, and credential access patterns that deviate from established baselines, provide detection coverage for escalation attempts that traverse these paths in production environments.

How Is Privilege Escalation Tested in a Penetration Test?

Privilege escalation testing is conducted within a broader penetration test engagement, starting from an initial access position that reflects the scenario the engagement is designed to simulate.

Assumed breach and internal access scenarios start the tester with a standard domain user account and a session on a domain-joined workstation, simulating an attacker who has phished credentials or compromised a user endpoint. From this starting position, the tester enumerates local privilege escalation paths on the workstation, then enumerates the Active Directory environment for escalation paths toward domain administrator. This scenario provides the most realistic model of post-compromise attacker behavior because it reflects the actual starting position of most real-world breaches that progress beyond initial access.

Local privilege escalation enumeration on each in-scope system covers service binary and registry key permissions, token privileges, scheduled task configurations, unquoted service paths, and installed software for known local privilege escalation vulnerabilities. Tools that enumerate these paths systematically reduce the time required for each system while ensuring coverage, but tester judgment is required to interpret findings in the context of the specific system’s role and configuration.

Active Directory privilege escalation enumeration maps the full domain object graph, ACL assignments, Kerberoastable accounts, AS-REP-roastable accounts, delegation configurations, and trust relationships. The enumeration models the escalation paths available from the starting account toward domain administrator, identifies the shortest path to domain compromise, and assesses which configuration changes would eliminate the most escalation options. This phase is the highest-value component of a Windows domain privilege escalation assessment because domain-level escalation affects every system in the environment.

Post-escalation validation confirms that each identified escalation path executes in the target environment and documents the impact of successful escalation. A finding that escalation is theoretically possible based on a misconfiguration is significantly more actionable when the engagement includes confirmation that the path executes and produces the documented level of access. Post-escalation activities within the engagement scope demonstrate what an attacker who completes the escalation chain can reach, which is the evidence that remediation decisions require.

Red team engagements validate privilege escalation paths in a full adversary simulation context, where the escalation chain is executed as part of a complete attack scenario with an objective rather than as an isolated technical test. Red team engagements assess not only whether escalation paths exist but whether detection and response capabilities identify escalation behavior before the attacker reaches their objective. Bugstrix penetration testing services cover privilege escalation assessment across Windows, Linux, and Active Directory environments as part of internal and network penetration testing engagements. Bugstrix security assessment services cover the configuration review layer, identifying misconfiguration findings that create escalation paths before an adversarial test validates them.

Get a free quote for a privilege escalation assessment or internal penetration testing engagement

Frequently Asked Questions

What is the difference between privilege escalation and lateral movement?

Privilege escalation and lateral movement are both post-compromise phases, but they describe different kinds of attacker progress. Privilege escalation is about increasing the level of access on a system or within an environment, moving from user to administrator, from administrator to domain administrator. Lateral movement is about moving from one system to another within the same environment, using credentials or access obtained on one machine to reach another. In practice, the two are frequently combined: an attacker escalates privileges on one system to obtain credentials that enable lateral movement to a system they could not previously reach, then escalates again on the new system. Both phases are tested in internal penetration testing engagements.

Can privilege escalation occur without exploiting a software vulnerability?

Yes, and this is the dominant pattern in most environments. The majority of privilege escalation findings in internal and Active Directory penetration testing are based on misconfigurations, service permissions, ACL entries, sudo rules, IAM policies, rather than software vulnerabilities that require patching. Configuration-based escalation paths often persist for years because they do not trigger patch management processes, they look like normal configuration to monitoring tools, and they are not visible in vulnerability scanner output. Testing is required to enumerate them because they cannot be identified by passive configuration review alone without modeling the escalation paths the configuration enables.

What is the impact of domain administrator compromise in an Active Directory environment?

Domain administrator access in an Active Directory environment grants full control over every system joined to the domain, every user account in the domain, and every resource the domain manages. A domain administrator can read all credentials stored in Active Directory, modify group policy objects that apply to every domain-joined system, add or remove accounts from any group, and authenticate to any domain-joined system as any user. In organizations where Active Directory manages access to core infrastructure, file servers, database servers, application servers, domain administrator compromise is equivalent to full environment compromise. This is why Active Directory privilege escalation paths from low-privileged domain user accounts to domain administrator are the highest-priority findings in internal penetration testing.

How does cloud privilege escalation differ from on-premises privilege escalation?

On-premises privilege escalation requires exploiting software vulnerabilities or configuration weaknesses on specific systems. Cloud IAM privilege escalation is entirely permission-based: an attacker who starts with a cloud principal that holds IAM write permissions, policy attachment rights, or the ability to pass roles to resources they control can reach administrator-equivalent access through API calls that look indistinguishable from legitimate administrative operations. Cloud IAM escalation does not require any exploit code, leaves API call logs that may appear normal, and may not trigger alerts tuned for traditional privilege escalation indicators. It also scales differently: a single cloud IAM escalation path can reach every resource in an account or organization, whereas on-premises escalation must be performed independently on each in-scope system.

How often should privilege escalation testing be conducted?

Whenever significant changes are made to the internal environment: new systems deployed, Active Directory restructured, service accounts added, cloud IAM configurations modified, or new applications installed with service accounts. Beyond change-driven testing, an annual internal penetration testing engagement that includes privilege escalation testing is a minimum for organizations with Windows domain environments. Environments that handle sensitive data, are subject to regulatory requirements, or have made significant infrastructure changes in the past year should conduct testing more frequently. The escalation surface grows silently with each configuration change that is not reviewed for the access it grants.

Privilege Escalation Finds What Defenders Cannot See Without Looking

The consistent finding from privilege escalation testing is that the most impactful paths are the ones that no monitoring system flagged, no patch cycle addressed, and no administrator identified during routine maintenance. Service permissions set during an application installation three years ago. An ACL entry that granted a junior IT account GenericAll over a privileged group and was never reviewed. A service account with Kerberoastable credentials and a password that has not changed since the account was created. None of these findings generates an alert. All of them provide an attacker who enumerates methodically with a clear path to the highest privileges in the environment.

Bugstrix privilege escalation testing is built around methodical enumeration from the attacker’s starting position, covering each escalation category present in the target environment and validating each identified path against the actual configuration. The goal is not a list of misconfigurations but a demonstrated escalation chain, from the initial access position to the highest privilege level reached, with the specific steps that traverse it. Remediation decisions built on that demonstration are targeted at the specific configurations that make the chain possible, which is a more efficient outcome than a ranked list of findings that may or may not combine into a path an attacker would actually follow.

Contact us to discuss a privilege escalation assessment or internal penetration testing engagement

Related Articles

Copied.