Detectionmediumtest
Msiexec Quiet Installation
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 Logic7 selectors
detection:
selection_img:
- Image|endswith: '\msiexec.exe'
- OriginalFileName: 'msiexec.exe'
selection_cli:
# Note that there is no space before and after the arguments because it's possible to write a commandline as such
# Example: msiexec -q/i [MSI Package]
CommandLine|contains|windash:
- '-i'
- '-package'
- '-a'
- '-j'
selection_quiet:
CommandLine|contains|windash: '-q'
filter_main_system_temp:
ParentImage|startswith: 'C:\Windows\Temp\'
filter_main_ccm:
ParentImage: 'C:\Windows\CCM\Ccm32BitLauncher.exe'
IntegrityLevel:
- 'System'
- 'S-1-16-16384'
filter_optional_user_temp:
# The %temp% is a very common location for installers
ParentImage|startswith: 'C:\Users\'
ParentImage|contains: '\AppData\Local\Temp\'
filter_optional_wsl:
# C:\WINDOWS\system32\msiexec.exe /quiet /i "C:\Users\xodih\AppData\Local\Temp\wsl.2.6.3.0.arm64 (2).msi" SKIPVALIDATION=1 /L*V C:\Users\xodih\AppData\Local\Temp\wsl-install-logs.txt
ParentImage|endswith: 'C:\Windows\System32\wsl.exe'
Image|endswith: 'C:\Windows\System32\msiexec.exe'
condition: all of selection_* and not 1 of filter_main_* and not 1 of filter_optional_*False Positives
WindowsApps installing updates via the quiet flag
References
MITRE ATT&CK
Tactics
Sub-techniques
Rule Metadata
Rule ID
79a87aa6-e4bd-42fc-a5bb-5e6fbdcd62f5
Status
test
Level
medium
Type
Detection
Created
2022-01-16
Modified
2026-07-28
Author
Path
rules/windows/process_creation/proc_creation_win_msiexec_install_quiet.yml
Raw Tags
attack.stealthattack.t1218.007