Detection rules › Sigma

Chopper Webshell Process Pattern

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

Detects patterns found in process executions cause by China Chopper like tiny (ASPX) webshells

MITRE ATT&CK coverage

Event coverage

Rule body yaml

title: Chopper Webshell Process Pattern
id: fa3c117a-bc0d-416e-a31b-0c0e80653efb
status: test
description: Detects patterns found in process executions cause by China Chopper like tiny (ASPX) webshells
references:
    - https://www.microsoft.com/security/blog/2022/09/30/analyzing-attacks-using-the-exchange-vulnerabilities-cve-2022-41040-and-cve-2022-41082/
author: Florian Roth (Nextron Systems), MSTI (query)
date: 2022-10-01
tags:
    - attack.persistence
    - attack.discovery
    - attack.t1505.003
    - attack.t1018
    - attack.t1033
    - attack.t1087
logsource:
    category: process_creation
    product: windows
detection:
    selection_origin:
        - Image|endswith: '\w3wp.exe'
        - ParentImage|endswith: '\w3wp.exe'
    selection_cmdline:
        CommandLine|contains:
            - '&ipconfig&echo'
            - '&quser&echo'
            - '&whoami&echo'
            - '&c:&echo'
            - '&cd&echo'
            - '&dir&echo'
            - '&echo [E]'
            - '&echo [S]'
    condition: all of selection_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_origin

selection_origin:
    - Image|endswith: '\w3wp.exe'
    - ParentImage|endswith: '\w3wp.exe'

Stage 2: selection_cmdline

selection_cmdline:
    CommandLine|contains:
        - '&ipconfig&echo'
        - '&quser&echo'
        - '&whoami&echo'
        - '&c:&echo'
        - '&cd&echo'
        - '&dir&echo'
        - '&echo [E]'
        - '&echo [S]'

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
  • &c:&echo
  • &cd&echo corpus 2 (sigma 2)
  • &dir&echo
  • &echo [E]
  • &echo [S]
  • &ipconfig&echo
  • &quser&echo
  • &whoami&echo
Imageends_with
  • \w3wp.exe corpus 6 (sigma 6)
ParentImageends_with
  • \w3wp.exe corpus 12 (sigma 12)