Detection rules › Sigma

Suspicious WMIC Execution Via Office Process

Status
test
Severity
high
Log source
product windows, category process_creation
Author
Vadim Khrykov, Cyb3rEng
Source
github.com/SigmaHQ/sigma

Office application called wmic to proxye execution through a LOLBIN process. This is often used to break suspicious parent-child chain (Office app spawns LOLBin).

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 1Process creation

Rule body yaml

title: Suspicious WMIC Execution Via Office Process
id: e1693bc8-7168-4eab-8718-cdcaa68a1738
related:
    - id: 438025f9-5856-4663-83f7-52f878a70a50
      type: derived
    - id: 518643ba-7d9c-4fa5-9f37-baed36059f6a
      type: obsolete
    - id: 9d1c72f5-43f0-4da5-9320-648cf2099dd0
      type: obsolete
    - id: c0e1c3d5-4381-4f18-8145-2583f06a1fe5
      type: obsolete
    - id: 04f5363a-6bca-42ff-be70-0d28bf629ead
      type: obsolete
status: test
description: Office application called wmic to proxye execution through a LOLBIN process. This is often used to break suspicious parent-child chain (Office app spawns LOLBin).
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
author: Vadim Khrykov, Cyb3rEng
date: 2021-08-23
modified: 2023-02-14
tags:
    - attack.stealth
    - attack.t1204.002
    - attack.t1047
    - attack.t1218.010
    - attack.execution
logsource:
    product: windows
    category: process_creation
detection:
    selection_parent:
        ParentImage|endswith:
            - '\WINWORD.EXE'
            - '\EXCEL.EXE'
            - '\POWERPNT.exe'
            - '\MSPUB.exe'
            - '\VISIO.exe'
            - '\MSACCESS.EXE'
            - '\EQNEDT32.EXE'
            - '\ONENOTE.EXE'
            - '\wordpad.exe'
            - '\wordview.exe'
    selection_wmic_img:
        - Image|endswith: '\wbem\WMIC.exe'
        - OriginalFileName: 'wmic.exe'
    selection_wmic_cli:
        CommandLine|contains|all:
            - 'process'
            - 'create'
            - 'call'
        CommandLine|contains:
            # Add more suspicious LOLBINs as you see fit
            - 'regsvr32'
            - 'rundll32'
            - 'msiexec'
            - 'mshta'
            - 'verclsid'
            - 'wscript'
            - 'cscript'
    condition: all of selection_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_parent

selection_parent:
    ParentImage|endswith:
        - '\WINWORD.EXE'
        - '\EXCEL.EXE'
        - '\POWERPNT.exe'
        - '\MSPUB.exe'
        - '\VISIO.exe'
        - '\MSACCESS.EXE'
        - '\EQNEDT32.EXE'
        - '\ONENOTE.EXE'
        - '\wordpad.exe'
        - '\wordview.exe'

Stage 2: selection_wmic_img

selection_wmic_img:
    - Image|endswith: '\wbem\WMIC.exe'
    - OriginalFileName: 'wmic.exe'

Stage 3: selection_wmic_cli

selection_wmic_cli:
    CommandLine|contains|all:
        - 'process'
        - 'create'
        - 'call'
    CommandLine|contains:
        - 'regsvr32'
        - 'rundll32'
        - 'msiexec'
        - 'mshta'
        - 'verclsid'
        - 'wscript'
        - 'cscript'

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
  • call corpus 8 (sigma 6, splunk 2)
  • create corpus 24 (sigma 17, splunk 7)
  • cscript corpus 15 (sigma 15)
  • mshta corpus 14 (sigma 14)
  • msiexec corpus 5 (sigma 5)
  • process corpus 5 (sigma 3, splunk 2)
  • regsvr32 corpus 15 (sigma 15)
  • rundll32 corpus 26 (sigma 23, chronicle 2, kusto 1)
  • verclsid
  • wscript corpus 16 (sigma 16)
Imageends_with
  • \wbem\WMIC.exe
OriginalFileNameeq
  • wmic.exe corpus 61 (sigma 36, splunk 18, elastic 7)
ParentImageends_with
  • \EQNEDT32.EXE corpus 5 (sigma 5)
  • \EXCEL.EXE corpus 8 (sigma 8)
  • \MSACCESS.EXE corpus 4 (sigma 4)
  • \MSPUB.exe corpus 4 (sigma 4)
  • \ONENOTE.EXE corpus 5 (sigma 5)
  • \POWERPNT.exe corpus 6 (sigma 6)
  • \VISIO.exe corpus 4 (sigma 4)
  • \WINWORD.EXE corpus 10 (sigma 10)
  • \wordpad.exe corpus 2 (sigma 2)
  • \wordview.exe corpus 2 (sigma 2)