Detection rules › Sigma

Potential Dosfuscation Activity

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

Detects possible payload obfuscation via the commandline

MITRE ATT&CK coverage

Event coverage

Rule body yaml

title: Potential Dosfuscation Activity
id: a77c1610-fc73-4019-8e29-0f51efc04a51
status: test
description: Detects possible payload obfuscation via the commandline
references:
    - https://www.fireeye.com/content/dam/fireeye-www/blog/pdfs/dosfuscation-report.pdf
    - https://github.com/danielbohannon/Invoke-DOSfuscation
author: frack113, Nasreddine Bencherchali (Nextron Systems)
date: 2022-02-15
modified: 2023-03-06
tags:
    - attack.execution
    - attack.t1059
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        CommandLine|contains:
            - '^^'
            - '^|^'
            - ',;,'
            - ';;;;'
            - ';; ;;'
            - '(,(,'
            - '%COMSPEC:~'
            - ' c^m^d'
            - '^c^m^d'
            - ' c^md'
            - ' cm^d'
            - '^cm^d'
            - ' s^et '
            - ' s^e^t '
            - ' se^t '
            # - '%%'
            # - '&&'
            # - '""'
    condition: selection
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    CommandLine|contains:
        - '^^'
        - '^|^'
        - ',;,'
        - ';;;;'
        - ';; ;;'
        - '(,(,'
        - '%COMSPEC:~'
        - ' c^m^d'
        - '^c^m^d'
        - ' c^md'
        - ' cm^d'
        - '^cm^d'
        - ' s^et '
        - ' s^e^t '
        - ' se^t '

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^m^d
  • c^md
  • cm^d
  • s^e^t
  • s^et
  • se^t
  • %COMSPEC:~
  • (,(,
  • ,;,
  • ;; ;;
  • ;;;;
  • ^^
  • ^c^m^d
  • ^cm^d
  • ^|^