Detection rules › Sigma

Suspicious WmiPrvSE Child Process

Status
test
Severity
high
Log source
product windows, category process_creation
Author
Vadim Khrykov (ThreatIntel), Cyb3rEng, Florian Roth (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects suspicious and uncommon child processes of WmiPrvSE

MITRE ATT&CK coverage

Event coverage

Rule body yaml

title: Suspicious WmiPrvSE Child Process
id: 8a582fe2-0882-4b89-a82a-da6b2dc32937
related:
    - id: 692f0bec-83ba-4d04-af7e-e884a96059b6
      type: similar
    - id: d21374ff-f574-44a7-9998-4a8c8bf33d7d
      type: similar
    - id: 18cf6cf0-39b0-4c22-9593-e244bdc9a2d4
      type: obsolete
status: test
description: Detects suspicious and uncommon child processes of WmiPrvSE
references:
    - https://thedfirreport.com/2021/03/29/sodinokibi-aka-revil-ransomware/
    - https://github.com/vadim-hunter/Detection-Ideas-Rules/blob/02bcbfc2bfb8b4da601bb30de0344ae453aa1afe/Threat%20Intelligence/The%20DFIR%20Report/20210329_Sodinokibi_(aka_REvil)_Ransomware.yaml
    - https://blog.osarmor.com/319/onenote-attachment-delivers-asyncrat-malware/
    - https://twitter.com/ForensicITGuy/status/1334734244120309760
author: Vadim Khrykov (ThreatIntel), Cyb3rEng, Florian Roth (Nextron Systems)
date: 2021-08-23
modified: 2023-11-10
tags:
    - attack.execution
    - attack.stealth
    - attack.t1047
    - attack.t1204.002
    - attack.t1218.010
logsource:
    product: windows
    category: process_creation
detection:
    selection_parent:
        ParentImage|endswith: '\wbem\WmiPrvSE.exe'
    selection_children_1:
        # TODO: Add more LOLBINs or suspicious processes that make sens in your environment
        Image|endswith:
            - '\certutil.exe'
            - '\cscript.exe'
            - '\mshta.exe'
            - '\msiexec.exe'
            - '\regsvr32.exe'
            - '\rundll32.exe'
            - '\verclsid.exe'
            - '\wscript.exe'
    selection_children_2:
        # This is in a separate selection due to the nature of FP generated with CMD
        Image|endswith: '\cmd.exe'
        CommandLine|contains:
            - 'cscript'
            - 'mshta'
            - 'powershell'
            - 'pwsh'
            - 'regsvr32'
            - 'rundll32'
            - 'wscript'
    filter_main_werfault:
        Image|endswith: '\WerFault.exe'
    filter_main_wmiprvse:
        Image|endswith: '\WmiPrvSE.exe' # In some legitimate case WmiPrvSE was seen spawning itself
    filter_main_msiexec:
        Image|endswith: '\msiexec.exe'
        CommandLine|contains: '/i '
    condition: selection_parent and 1 of selection_children_* and not 1 of filter_main_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection_parent and 1 of selection_children_* and not 1 of filter_main_*

Stage 1: selection_parent

selection_parent:
    ParentImage|endswith: '\wbem\WmiPrvSE.exe'

Stage 2: selection_children_1

selection_children_1:
    Image|endswith:
        - '\certutil.exe'
        - '\cscript.exe'
        - '\mshta.exe'
        - '\msiexec.exe'
        - '\regsvr32.exe'
        - '\rundll32.exe'
        - '\verclsid.exe'
        - '\wscript.exe'

Stage 3: selection_children_2

selection_children_2:
    Image|endswith: '\cmd.exe'
    CommandLine|contains:
        - 'cscript'
        - 'mshta'
        - 'powershell'
        - 'pwsh'
        - 'regsvr32'
        - 'rundll32'
        - 'wscript'

Stage 4: not filter_main_*

filter_main_werfault:
    Image|endswith: '\WerFault.exe'
filter_main_wmiprvse:
    Image|endswith: '\WmiPrvSE.exe'
filter_main_msiexec:
    Image|endswith: '\msiexec.exe'
    CommandLine|contains: '/i '

Exclusions

Top-level NOT(...) conjuncts: predicates this rule actively suppresses.

FieldKindExcluded values
CommandLinematch/i
Imageends_with\msiexec.exe
Imageends_with\WerFault.exe
Imageends_with\WmiPrvSE.exe

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
CommandLinematch
  • cscript corpus 15 (sigma 15)
  • mshta corpus 14 (sigma 14)
  • powershell corpus 25 (sigma 24, chronicle 1)
  • pwsh corpus 7 (sigma 7)
  • regsvr32 corpus 15 (sigma 15)
  • rundll32 corpus 26 (sigma 23, chronicle 2, kusto 1)
  • wscript corpus 16 (sigma 16)
Imageends_with
  • \certutil.exe corpus 43 (sigma 43)
  • \cmd.exe corpus 130 (sigma 130)
  • \cscript.exe corpus 73 (sigma 73)
  • \mshta.exe corpus 67 (sigma 67)
  • \msiexec.exe corpus 21 (sigma 21)
  • \regsvr32.exe corpus 65 (sigma 65)
  • \rundll32.exe corpus 95 (sigma 95)
  • \verclsid.exe corpus 4 (sigma 4)
  • \wscript.exe corpus 75 (sigma 75)
ParentImageends_with
  • \wbem\WmiPrvSE.exe