The detection identifies potential adversary use of the elevator.exe file, which may be associated with malicious activity or data exfiltration. SOC teams should proactively hunt for this behavior in Azure Sentinel to identify and mitigate potential compromise from advanced threats.
YARA Rule
rule HackingTeam_Elevator_EXE
{
meta:
description = "Hacking Team Disclosure Sample - file elevator.exe"
author = "Florian Roth"
reference = "Hacking Team Disclosure elevator.c"
date = "2015-07-07"
hash1 = "40a10420b9d49f87527bc0396b19ec29e55e9109e80b52456891243791671c1c"
hash2 = "92aec56a859679917dffa44bd4ffeb5a8b2ee2894c689abbbcbe07842ec56b8d"
hash = "9261693b67b6e379ad0e57598602712b8508998c0cb012ca23139212ae0009a1"
strings:
$x1 = "CRTDLL.DLL" fullword ascii
$x2 = "\\sysnative\\CI.dll" fullword ascii
$x3 = "\\SystemRoot\\system32\\CI.dll" fullword ascii
$x4 = "C:\\\\Windows\\\\Sysnative\\\\ntoskrnl.exe" fullword ascii /* PEStudio Blacklist: strings */
$s1 = "[*] traversing processes" fullword ascii /* PEStudio Blacklist: strings */
$s2 = "_getkprocess" fullword ascii /* PEStudio Blacklist: strings */
$s3 = "[*] LoaderConfig %p" fullword ascii /* PEStudio Blacklist: strings */
$s4 = "loader.obj" fullword ascii /* PEStudio Blacklist: strings */
$s5 = "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3" ascii /* PEStudio Blacklist: strings */
$s6 = "[*] token restore" fullword ascii /* PEStudio Blacklist: strings */
$s7 = "elevator.obj" fullword ascii
$s8 = "_getexport" fullword ascii /* PEStudio Blacklist: strings */
condition:
uint16(0) == 0x5a4d and filesize < 3000KB and all of ($x*) and 3 of ($s*)
}
This YARA rule can be deployed in the following contexts:
This rule contains 12 string patterns in its detection logic.
Scenario: Scheduled System Maintenance Task
Description: A legitimate scheduled task runs elevator.exe as part of a system maintenance or update process.
Filter/Exclusion: Check for process.parent_process_name = "schtasks.exe" or process.command_line contains "schtasks"
Scenario: Microsoft Windows Elevator Tool Usage
Description: The elevator.exe tool is used by Microsoft for internal testing or validation purposes.
Filter/Exclusion: Check for process.parent_process_name = "explorer.exe" or process.command_line contains "Microsoft"
Scenario: Admin Privilege Escalation via PowerShell
Description: An administrator uses elevator.exe as part of a legitimate privilege escalation process during system configuration.
Filter/Exclusion: Check for process.parent_process_name = "powershell.exe" and process.user = "Administrator"
Scenario: Third-Party Software Deployment
Description: A third-party application or deployment tool uses elevator.exe to elevate privileges during installation.
Filter/Exclusion: Check for process.parent_process_name = "msiexec.exe" or process.command_line contains "setup"
Scenario: Legacy Application Compatibility Testing
Description: A legacy application or compatibility tool uses elevator.exe to run in elevated mode during testing.
Filter/Exclusion: Check for process.parent_process_name = "cmd.exe" and process.command_line contains "compatibility"