endpoint(opens in a new tab or window)
sequence by process.entity_id with maxspan=1m
[process where host.os.type == "windows" and event.type : "start" and
process.parent.name : "msiexec.exe" and process.parent.args : "/v" and
not process.executable :
("?:\\Windows\\System32\\msiexec.exe",
"?:\\Windows\\sysWOW64\\msiexec.exe",
"?:\\Windows\\system32\\srtasks.exe",
"?:\\Windows\\syswow64\\srtasks.exe",
"?:\\Windows\\sys*\\taskkill.exe",
"?:\\Program Files\\*.exe",
"?:\\Program Files (x86)\\*.exe",
"?:\\Windows\\Installer\\MSI*.tmp",
"?:\\Windows\\Microsoft.NET\\Framework*\\RegSvcs.exe") and
not (process.name : ("rundll32.exe", "regsvr32.exe") and process.args : ("?:\\Program Files\\*", "?:\\Program Files (x86)\\*"))]
[any where host.os.type == "windows" and event.category in ("network", "dns") and process.name != null]
Install detection rules in Elastic Security
Detect MsiExec Service Child Process With Network Connection 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).