Detection rules › Sigma

Suspicious Process Created Via Wmic.EXE

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

Detects WMIC executing "process call create" with suspicious calls to processes such as "rundll32", "regsrv32", etc.

MITRE ATT&CK coverage

Event coverage

Rule body yaml

title: Suspicious Process Created Via Wmic.EXE
id: 3c89a1e8-0fba-449e-8f1b-8409d6267ec8
related:
    - id: 526be59f-a573-4eea-b5f7-f0973207634d # Generic
      type: derived
status: test
description: Detects WMIC executing "process call create" with suspicious calls to processes such as "rundll32", "regsrv32", etc.
references:
    - https://thedfirreport.com/2020/10/08/ryuks-return/
    - https://symantec-enterprise-blogs.security.com/blogs/threat-intelligence/ransomware-hive-conti-avoslocker
author: Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
date: 2020-10-12
modified: 2023-02-14
tags:
    - attack.execution
    - attack.t1047
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        CommandLine|contains|all:
            - 'process '
            - 'call '
            - 'create '
        CommandLine|contains:
            # Add more susupicious paths and binaries as you see fit in your env
            - 'rundll32'
            - 'bitsadmin'
            - 'regsvr32'
            - 'cmd.exe /c '
            - 'cmd.exe /k '
            - 'cmd.exe /r '
            - 'cmd /c '
            - 'cmd /k '
            - 'cmd /r '
            - 'powershell'
            - 'pwsh'
            - 'certutil'
            - 'cscript'
            - 'wscript'
            - 'mshta'
            - '\Users\Public\'
            - '\Windows\Temp\'
            - '\AppData\Local\'
            - '%temp%'
            - '%tmp%'
            - '%ProgramData%'
            - '%appdata%'
            - '%comspec%'
            - '%localappdata%'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    CommandLine|contains|all:
        - 'process '
        - 'call '
        - 'create '
    CommandLine|contains:
        - 'rundll32'
        - 'bitsadmin'
        - 'regsvr32'
        - 'cmd.exe /c '
        - 'cmd.exe /k '
        - 'cmd.exe /r '
        - 'cmd /c '
        - 'cmd /k '
        - 'cmd /r '
        - 'powershell'
        - 'pwsh'
        - 'certutil'
        - 'cscript'
        - 'wscript'
        - 'mshta'
        - '\Users\Public\'
        - '\Windows\Temp\'
        - '\AppData\Local\'
        - '%temp%'
        - '%tmp%'
        - '%ProgramData%'
        - '%appdata%'
        - '%comspec%'
        - '%localappdata%'

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
  • %ProgramData% corpus 4 (sigma 4)
  • %appdata% corpus 13 (sigma 11, chronicle 2)
  • %comspec% corpus 6 (sigma 5, splunk 1)
  • %localappdata% corpus 4 (sigma 4)
  • %temp% corpus 16 (sigma 13, chronicle 2, kusto 1)
  • %tmp% corpus 15 (sigma 13, chronicle 2)
  • \AppData\Local\ corpus 10 (sigma 10)
  • \Users\Public\ corpus 17 (sigma 17)
  • \Windows\Temp\ corpus 12 (sigma 12)
  • bitsadmin corpus 10 (sigma 10)
  • call
  • certutil corpus 12 (sigma 10, kusto 2)
  • cmd /c corpus 4 (sigma 4)
  • cmd /k corpus 4 (sigma 4)
  • cmd /r corpus 4 (sigma 4)
  • cmd.exe /c corpus 6 (sigma 6)
  • cmd.exe /k corpus 5 (sigma 5)
  • cmd.exe /r corpus 5 (sigma 5)
  • create
  • cscript corpus 15 (sigma 15)
  • mshta corpus 14 (sigma 14)
  • powershell corpus 25 (sigma 24, chronicle 1)
  • process corpus 2 (sigma 2)
  • pwsh corpus 7 (sigma 7)
  • regsvr32 corpus 15 (sigma 15)
  • rundll32 corpus 26 (sigma 23, chronicle 2, kusto 1)
  • wscript corpus 16 (sigma 16)