PowerShell WMI Win32_Product Install MSI

 Original Source: [Sigma source]
Title: PowerShell WMI Win32_Product Install MSI
Status: test
Description:Detects the execution of an MSI file using PowerShell and the WMI Win32_Product class
References:
  -https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1218.007/T1218.007.md
Author: frack113
Date: 2022-04-24
modified:None
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