Detection rules › Sigma

Potential Exploitation Attempt Of Undocumented WindowsServer RCE

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

Detects potential exploitation attempt of undocumented Windows Server Pre Auth Remote Code Execution (RCE)

MITRE ATT&CK coverage

TacticTechniques
Initial AccessT1190 Exploit Public-Facing Application

Event coverage

ProviderEventTitle
SysmonEvent ID 1Process creation

Rule body yaml

title: Potential Exploitation Attempt Of Undocumented WindowsServer RCE
id: 6d5b8176-d87d-4402-8af4-53aee9db7b5d
status: test
description: Detects potential exploitation attempt of undocumented Windows Server Pre Auth Remote Code Execution (RCE)
references:
    - https://github.com/SigmaHQ/sigma/pull/3946
    - https://twitter.com/hackerfantastic/status/1616455335203438592?s=20
author: Florian Roth (Nextron Systems), Nasreddine Bencherchali
date: 2023-01-21
tags:
    - attack.initial-access
    - attack.t1190
    - detection.emerging-threats
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        ParentImage|endswith: '\svchost.exe'
        Image|endswith: '\svchost.exe'
        ParentCommandLine|contains: '-k DHCPServer'
        CommandLine|contains: '-k DHCPServer'
        User|contains: # Covers many language settings for Network Service. Please expand.
            - 'NETWORK SERVICE'
            - 'NETZWERKDIENST'
            - 'SERVIZIO DI RETE'
            - 'SERVICIO DE RED'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    ParentImage|endswith: '\svchost.exe'
    Image|endswith: '\svchost.exe'
    ParentCommandLine|contains: '-k DHCPServer'
    CommandLine|contains: '-k DHCPServer'
    User|contains:
        - 'NETWORK SERVICE'
        - 'NETZWERKDIENST'
        - 'SERVIZIO DI RETE'
        - 'SERVICIO DE RED'

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
  • -k DHCPServer
Imageends_with
  • \svchost.exe corpus 23 (sigma 23)
ParentCommandLinematch
  • -k DHCPServer
ParentImageends_with
  • \svchost.exe corpus 14 (sigma 14)
Usermatch
  • NETWORK SERVICE
  • NETZWERKDIENST
  • SERVICIO DE RED
  • SERVIZIO DI RETE