Defense Evasion (TA0005)(external, opens in a new tab or window)
text code block:sequence with maxspan=1m [registry where host.os.type == "windows" and event.type == "change" and process.name : "msiexec.exe" and ( (registry.value : "InstallSource" and registry.data.strings : ("?:\\Users\\*\\Temp\\Temp?_*.zip\\*", "?:\\Users\\*\\*.7z\\*", "?:\\Users\\*\\*.rar\\*")) or (registry.value : ("DisplayName", "ProductName") and registry.data.strings : "SetupTest") )] [process where host.os.type == "windows" and event.action == "start" and process.parent.name : "msiexec.exe" and not process.name : "msiexec.exe" and not (process.executable : ("?:\\Program Files (x86)\\*.exe", "?:\\Program Files\\*.exe") and process.code_signature.trusted == true)]
Install detection rules in Elastic Security
Detect Windows Installer with Suspicious Properties 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(external, opens in a new tab or window).