{"id":"a0e417e2-2fa1-40da-b6d2-e094cd5e1191","title":"Registry Enumeration via WMI Stdregprov","description":"Detects the usage of wmic.exe to enumerate or read Windows registry via the WMI StdRegProv class read methods (EnumKey, EnumValues, GetStringValue, etc.).\nWhile registry reads are common, attackers may use this technique to perform reconnaissance and discover sensitive configuration values, credentials, or installed software.\nThe 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.\n","author":"Swachchhanda Shrawan Poudel (Nextron Systems)","status":"experimental","level":"medium","date":"2025-07-30","modified":"2026-06-19","tags":["attack.execution","attack.t1047","attack.discovery","attack.t1012"],"technique_ids":["T1012","T1047"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Legitimate administrative activity"],"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"],"source_path":"rules/windows/process_creation/proc_creation_win_wmic_stdregprov_reg_enumeration.yml","source_sha256":"8c0d679efb7eca9d1c5c80f7a9ead122560916eaba969a18320dd10509838690","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_wmic_stdregprov_reg_enumeration.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Registry Enumeration via WMI Stdregprov\nid: a0e417e2-2fa1-40da-b6d2-e094cd5e1191\nrelated:\n    - id: c453ab7a-1f5c-4716-a3b4-dea8135fb43a # Registry Manipulation via WMI Stdregprov\n      type: similar\nstatus: experimental\ndescription: |\n    Detects the usage of wmic.exe to enumerate or read Windows registry via the WMI StdRegProv class read methods (EnumKey, EnumValues, GetStringValue, etc.).\n    While registry reads are common, attackers may use this technique to perform reconnaissance and discover sensitive configuration values, credentials, or installed software.\n    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.\nreferences:\n    - https://trustedsec.com/blog/command-line-underdog-wmic-in-action\n    - https://trustedsec.com/blog/wmi-for-script-kiddies\n    - https://learn.microsoft.com/en-us/previous-versions/windows/desktop/regprov/stdregprov\nauthor: Swachchhanda Shrawan Poudel (Nextron Systems)\ndate: 2025-07-30\nmodified: 2026-06-19\ntags:\n    - attack.execution\n    - attack.t1047\n    - attack.discovery\n    - attack.t1012\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection_img:   # Example command simulated:  WMIC  /NameSpace:\\\\root\\default Class StdRegProv Call EnumKey hDefKey=&H80000002 sSubKeyName=\"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\"\n        - Image|endswith: '\\wmic.exe'\n        - OriginalFileName: 'wmic.exe'\n    selection_cli:\n        CommandLine|contains|all:\n            - 'stdregprov'\n            - 'call'\n        CommandLine|contains:\n            - 'CheckAccess'\n            - 'EnumKey'\n            - 'EnumValues'\n            - 'GetBinaryValue'\n            - 'GetDWORDValue'\n            - 'GetExpandedStringValue'\n            - 'GetMultiStringValue'\n            - 'GetQWORDValue'\n            - 'GetSecurityDescriptor'\n            - 'GetStringValue'\n    condition: all of selection_*\nfalsepositives:\n    - Legitimate administrative activity\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1012","id":"T1012","name":"Query Registry","page":"techniques/enterprise/T1012/"},{"key":"enterprise/T1047","id":"T1047","name":"Windows Management Instrumentation","page":"techniques/enterprise/T1047/"}],"data_path":"data/detection-rules/a0e417e2-2fa1-40da-b6d2-e094cd5e1191.json","kind":"sigma"}
