Registry Enumeration via WMI Stdregprov

 Original Source: [Sigma source]
Title: Registry Enumeration via WMI Stdregprov
Status: experimental
Description:Detects the usage of wmic.exe to enumerate or read Windows registry via the WMI StdRegProv class read methods (EnumKey, EnumValues, GetStringValue, etc.). While registry reads are common, attackers may use this technique to perform reconnaissance and discover sensitive configuration values, credentials, or installed software. The use of WMI as an alternative to standard tools like reg.exe can indicate an attempt to evade detection focused on traditional registry query commands.
References:
  -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: Swachchhanda Shrawan Poudel (Nextron Systems)
Date: 2025-07-30
modified:2026-06-19
Tags:
  • -'attack.execution'
  • -'attack.t1047'
  • -'attack.discovery'
  • -'attack.t1012'
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:
      -'CheckAccess'
      -'EnumKey'
      -'EnumValues'
      -'GetBinaryValue'
      -'GetDWORDValue'
      -'GetExpandedStringValue'
      -'GetMultiStringValue'
      -'GetQWORDValue'
      -'GetSecurityDescriptor'
      -'GetStringValue'

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