Registry Enumeration via WMI Stdregprov
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.
Convert In Phoenix Studio
Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.
Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.
detection:
selection_img: # Example command simulated: WMIC /NameSpace:\\root\default Class StdRegProv Call EnumKey hDefKey=&H80000002 sSubKeyName="Software\Microsoft\Windows\CurrentVersion\Uninstall"
- 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_*Legitimate administrative activity