PowerShell WMI Win32_Product MSI Installation via Invoke-CimMethod
Flags PowerShell using WMI Win32_Product via Invoke-CimMethod to invoke an MSI install.
- Product
- windows
- Category
- ps_script
- Author
- frack113 (SigmaHQ), DRL 1.1
- Published
- 2022-04-24
- Updated
- 2026-07-31
ATT&CK techniques
Defense EvasionRecon
Resource Dev
Initial Access
Execution
Persistence
Priv Esc
Defense Evasion
Cred Access
Discovery
Lateral Movement
Collection
C2
Exfiltration
Impact
What it detects
This rule flags PowerShell script block content that invokes the WMI Win32_Product class and calls a method that includes an .msi installation reference. Attackers can use WMI with Win32_Product to install software or trigger installation behavior using scripted execution. The detection relies on PowerShell script block logging telemetry and matches specific script text fragments indicating Invoke-CimMethod targeting Win32_Product and an MSI file string.
Reporting behind it
Changelog
v2- v2Candidate ingested via manual entry.2026-07-31
- v1No changelog recorded for this version.2026-07-30
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.
title: PowerShell WMI Win32_Product MSI Installation via Invoke-CimMethod
id: 6f024e79-bbd9-4185-b7cc-f2ea9566693e
status: test
description: This rule flags PowerShell script block content that invokes the WMI Win32_Product class and calls a method that includes an .msi installation reference. Attackers can use WMI with Win32_Product to install software or trigger installation behavior using scripted execution. The detection relies on PowerShell script block logging telemetry and matches specific script text fragments indicating Invoke-CimMethod targeting Win32_Product and an MSI file string.
references:
- https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1218.007/T1218.007.md
- https://github.com/SigmaHQ/sigma/blob/master/rules/windows/powershell/powershell_script/posh_ps_win32_product_install_msi.yml
author: frack113, Huntrule Team
date: 2022-04-24
tags:
- attack.stealth
- attack.t1218.007
logsource:
product: windows
category: ps_script
definition: "Requirements: Script Block Logging must be enabled"
detection:
selection:
ScriptBlockText|contains|all:
- "Invoke-CimMethod "
- "-ClassName "
- "Win32_Product "
- "-MethodName "
- .msi
condition: selection
falsepositives:
- Unknown
level: medium
license: DRL-1.1
related:
- id: 91109523-17f0-4248-a800-f81d9e7c081d
type: derived