Windows Privilege Escalation via Suspicious Process Elevation
This analytic detects when a process running with low or medium integrity spawns an elevated process with high or system integrity in suspicious locations, potentially indicating successful privilege escalation by a threat actor.
This detection identifies suspicious process elevation activity on Windows systems. It focuses on scenarios where a process running with low or medium integrity spawns a new process with higher privileges (high or system integrity) in locations that are considered unusual, such as user directories, temporary folders, or the ProgramData directory. The goal is to identify potential privilege escalation attempts by threat actors. The analytic uses process execution data from Windows process monitoring. Successful privilege escalation can lead to full system compromise and persistent access for the attacker.
Attack Chain
- An attacker gains initial access to the system with limited privileges, potentially through exploiting a vulnerability or using compromised credentials.
- The attacker executes a program or script (e.g., PowerShell, cmd.exe) from a non-standard location like the user’s Downloads folder.
- The initial process runs with a low or medium integrity level.
- The attacker attempts to elevate privileges by spawning a new process with high or system integrity.
- The elevated process is launched from a suspicious location such as a user profile directory (e.g.,
C:\Users\<username>\AppData\Local\Temp) or theC:\ProgramDatadirectory. - The elevated process executes malicious code, potentially installing malware or modifying system settings.
- The attacker achieves higher privileges, allowing them to perform actions that require administrative rights.
- The attacker gains control over the system and can move laterally to other machines, steal sensitive data, or deploy ransomware.
Impact
Successful privilege escalation allows attackers to gain elevated privileges on the compromised system. This can lead to a full system compromise, enabling attackers to perform unauthorized actions, install malware, steal sensitive data, or move laterally within the network. The detection of this behavior is critical to prevent further damage and maintain system security.
Recommendation
- Enable Sysmon process creation logging (Event ID 1) to capture process execution data and activate the rules below.
- Deploy the Sigma rules in this brief to your SIEM to detect suspicious process elevation attempts and tune for your environment.
- Investigate any alerts generated by the Sigma rules to determine if they are legitimate privilege escalation attempts.
- Review and restrict unnecessary write access to sensitive directories like
C:\ProgramDataand user profile directories to prevent attackers from launching elevated processes from those locations. - Implement application control policies to prevent the execution of unauthorized programs.
Detection coverage 2
Detect Suspicious Process Elevation from User Directory
highDetects process elevation where a process is spawned from a user directory.
Detect Suspicious Process Elevation with System Integrity
mediumDetects process elevation where a process running with user privileges spawns a process with system integrity.
Detection queries are available on the platform. Get full rules →