Windows Installer with Suspicious Properties

Last updated 2 years ago on 2024-08-05
Created 3 years ago on 2023-09-26

About

Identifies the execution of an installer from an archive or with suspicious properties. Adversaries may abuse msiexec.exe to launch local or network accessible MSI files in an attempt to bypass application whitelisting.
Tags
Domain: EndpointOS: WindowsUse Case: Threat DetectionTactic: Defense EvasionRule Type: BBRData Source: Elastic DefendLanguage: eql
Severity
low
Risk Score
21
MITRE ATT&CK™

Defense Evasion (TA0005)(external, opens in a new tab or window)

License
Elastic License v2(external, opens in a new tab or window)

Definition

Rule Type
Event Correlation Rule
Integration Pack
Prebuilt Security Detection Rules
Index Patterns
logs-endpoint.events.*
Related Integrations

endpoint(external, opens in a new tab or window)

Query
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).