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)

Open in Detection LabConvert ruleBuild Package
François HubautCreated 2022-01-16Updated 2026-07-2879a87aa6-e4bd-42fc-a5bb-5e6fbdcd62f5windows
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

Testing & Validation

Regression Tests

by frack113
Positive Detection Test1 matchevtx

Microsoft-Windows-Sysmon

MITRE ATT&CK
Rule Metadata
Rule ID
79a87aa6-e4bd-42fc-a5bb-5e6fbdcd62f5
Status
test
Level
medium
Type
Detection
Created
2022-01-16
Modified
2026-07-28
Path
rules/windows/process_creation/proc_creation_win_msiexec_install_quiet.yml
Raw Tags
attack.stealthattack.t1218.007
View on GitHub