Execution via Windows Installer Transforms
Description
Identifies the execution of a Windows Installer via transforms from unusual parent process. Adversaries may abuse Windows installer transforms to hijack the normal execution of a legit installer for initial access and execution.
Query · eql
sequence with maxspan=1m
[process where event.action == "start" and user.id != "S-1-5-18" and
(process.pe.original_file_name == "msiexec.exe" or process.name : "msiexec.exe") and
process.args : ("/i*", "-i*") and process.args : ("/q*", "-q*") and
process.command_line : "*transforms*=*" and
(process.parent.code_signature.subject_name in ("Microsoft Corporation", "Microsoft Windows") or process.parent.name : "python*.exe") and
not process.args : ("TRANSFORMS=C:\\Windows\\*.MST", "\\\\*.msi") and
not process.working_directory : "?:\\Windows\\AdminArsenal\\PDQDeployRunner\\*"]
[process where event.action in ("start", "already_running") and
(
(process.name : "msiexec.exe" and process.args == "/V") or
(process.parent.name : "msiexec.exe" and process.parent.args == "/V")
)]