Potential Privilege Escalation via InstallerFileTakeOver (CVE-2021-41379)
This rule detects potential exploitation of the InstallerTakeOver vulnerability (CVE-2021-41379), where successful exploitation allows an unprivileged user to escalate privileges to SYSTEM.
The rule identifies a potential privilege escalation attempt by exploiting the InstallerTakeOver vulnerability (CVE-2021-41379). This vulnerability, when successfully exploited, allows an unprivileged user to gain SYSTEM-level privileges on a Windows system. The detection focuses on identifying suspicious processes running with SYSTEM privileges that deviate from the expected behavior of the elevation_service.exe, particularly those not signed by Microsoft or spawning command interpreters. The rule aims to detect exploitation attempts rather than the vulnerability itself. This is important for defenders because successful exploitation leads to full system compromise.
Attack Chain
- An unprivileged user gains initial access to the system.
- The user leverages the InstallerTakeOver vulnerability to manipulate the Windows Installer service.
- A malicious binary overwrites or replaces the legitimate
elevation_service.exe. - The compromised
elevation_service.exeis executed with SYSTEM privileges. - The modified
elevation_service.exespawns a command interpreter (cmd.exe, powershell.exe) or other malicious process. - The spawned process inherits SYSTEM privileges.
- The attacker performs malicious actions using the elevated privileges.
- The attacker achieves persistence or performs lateral movement within the network.
Impact
Successful exploitation of CVE-2021-41379 allows an unprivileged user to escalate privileges to SYSTEM, leading to a complete compromise of the affected system. This can enable attackers to install malware, steal sensitive data, create new user accounts with administrative rights, or use the compromised system as a pivot point for further attacks within the network. The scope of impact depends on the attacker’s objectives and the compromised system’s role within the organization.
Recommendation
- Deploy the Sigma rule “Detect Potential InstallerFileTakeOver via Suspicious Service Execution” to your SIEM to detect suspicious execution of
elevation_service.exewith unexpected original file name or code signature. - Deploy the Sigma rule “Detect Potential InstallerFileTakeOver via Suspicious Child Process” to your SIEM to detect suspicious processes spawned by
elevation_service.exe. - Review and harden Windows Installer permissions to prevent unauthorized modifications as referenced in CVE-2021-41379.
- Monitor file events for modifications to
elevation_service.exeto identify potential service overwrite attempts.
Detection coverage 2
Detect Potential InstallerFileTakeOver via Suspicious Service Execution
highDetects CVE-2021-41379 exploitation — detects suspicious execution of elevation_service.exe with unexpected original file name or code signature.
Detect Potential InstallerFileTakeOver via Suspicious Child Process
highDetects CVE-2021-41379 exploitation — detects suspicious processes spawned by elevation_service.exe.
Detection queries are available on the platform. Get full rules →