Suspicious PowerShell WMI Win32_Product Install MSI (via ps_script)
This rule detects the execution of an MSI file using PowerShell and the WMI Win32_Product class
SigmamediumWindowsv1
sigma
suspicious-powershell-wmi-win32-product-install-msi-via-ps-script
title: Suspicious PowerShell WMI Win32_Product Install MSI (via ps_script)
id: af24f6ab-f1d6-57e4-ad1a-c767ba912a67
status: stable
description: This rule detects the execution of an MSI file using PowerShell and the WMI Win32_Product class
references:
- https://attack.mitre.org/techniques/T1218/007/
- https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1218.007/T1218.007.md
author: Huntrule Team
date: 2026-04-11
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
Known false positives
- Unknown
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.