process where host.os.type == "windows" and event.type == "start" and
process.Ext.token.integrity_level_name : "System" and
(
(process.name : "elevation_service.exe" and
not process.pe.original_file_name == "elevation_service.exe") or
(process.name : "elevation_service.exe" and
not process.code_signature.trusted == true) or
(process.parent.name : "elevation_service.exe" and
process.name : ("rundll32.exe", "cmd.exe", "powershell.exe"))
) and
not
(
process.name : "elevation_service.exe" and process.code_signature.trusted == true and
process.pe.original_file_name == null
)
Install detection rules in Elastic Security
Detect Potential Privilege Escalation via InstallerFileTakeOver in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(opens in a new tab or window).