Detectionmediumtest
Suspicious Msiexec Execute Arbitrary DLL
Adversaries may abuse msiexec.exe to proxy execution of malicious payloads. Msiexec.exe is the command-line utility for the Windows Installer and is thus commonly associated with executing installation packages (.msi)
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation
Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.
Detection Logic
Detection Logic2 selectors
detection:
selection:
Image|endswith: '\msiexec.exe'
CommandLine|contains|windash: ' /Y'
filter_main_legit_path:
CommandLine|contains:
- '\MsiExec.exe" /Y "C:\Program Files\'
- '\MsiExec.exe" /Y "C:\Program Files (x86)\'
- '\MsiExec.exe" /Y "C:\Windows\System32\'
- '\MsiExec.exe" /Y "C:\Windows\SysWOW64\'
condition: selection and not 1 of filter_main_*False Positives
Legitimate script
References
MITRE ATT&CK
Tactics
Sub-techniques
Rule Metadata
Rule ID
6f4191bb-912b-48a8-9ce7-682769541e6d
Status
test
Level
medium
Type
Detection
Created
2022-01-16
Modified
2026-01-09
Author
Path
rules/windows/process_creation/proc_creation_win_msiexec_execute_dll.yml
Raw Tags
attack.stealthattack.t1218.007