Detection rules › Sigma

Chopper Webshell Process Pattern

Status
test
Severity
high
Log source
category process_creation, product windows
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

Telemetry coverage

Rule body

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

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • &c:&echo
  • &cd&echo corpus 2 (sigma 2)
  • &dir&echo
  • &echo [E]
  • &echo [S]
  • &ipconfig&echo
  • &quser&echo
  • &whoami&echo
field:"CommandLine" kind:match
Imageends_with
  • \w3wp.exe corpus 5 (sigma 5)
field:"Image" kind:ends_with value:"\w3wp.exe"
ParentImageends_with
  • \w3wp.exe corpus 12 (sigma 12)
field:"ParentImage" kind:ends_with value:"\w3wp.exe"