Registry Manipulation via WMI Stdregprov

 Original Source: [Sigma source]
Title: Registry Manipulation via WMI Stdregprov
Status: experimental
Description:Detects the usage of wmic.exe to modify Windows registry via the WMI StdRegProv class write methods (CreateKey, DeleteKey, SetStringValue, etc.). This behaviour could be potentially suspicious because it uses an alternative method to modify registry keys instead of legitimate registry tools like reg.exe or regedit.exe. Attackers specifically choose this technique to evade detection and bypass security monitoring focused on traditional registry modification commands.
References:
  -https://www.bitdefender.com/en-us/blog/businessinsights/shrinklocker-decryptor-from-friend-to-foe-and-back-again
  -https://trustedsec.com/blog/command-line-underdog-wmic-in-action
  -https://trustedsec.com/blog/wmi-for-script-kiddies
  -https://learn.microsoft.com/en-us/previous-versions/windows/desktop/regprov/stdregprov
Author: Daniel Koifman (KoifSec)
Date: 2025-07-30
modified:2026-06-19
Tags:
  • -'attack.execution'
  • -'attack.t1047'
  • -'attack.persistence'
  • -'attack.defense-impairment'
  • -'attack.t1112'
Logsource:
  • category: process_creation
  • product: windows
Detection:
  selection_img:
Image|endswith:'\wmic.exe' OriginalFileName:'wmic.exe'   selection_cli:
    CommandLine|contains|all:
      -'stdregprov'
      -'call'

    CommandLine|contains:
      -'CreateKey'
      -'DeleteKey'
      -'DeleteValue'
      -'SetBinaryValue'
      -'SetDWORDValue'
      -'SetExpandedStringValue'
      -'SetMultiStringValue'
      -'SetQWORDValue'
      -'SetSecurityDescriptor'
      -'SetStringValue'

  condition:all of selection_*
Falsepositives:
  -Legitimate administrative activity
Level: medium