Detection rules › Sigma

RDP Over Reverse SSH Tunnel

Status
test
Severity
high
Log source
product windows, category network_connection
Author
Samir Bousseaden
Source
github.com/SigmaHQ/sigma

Detects svchost hosting RDP termsvcs communicating with the loopback address and on TCP port 3389

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 3Network connection

Rule body yaml

title: RDP Over Reverse SSH Tunnel
id: 5f699bc5-5446-4a4a-a0b7-5ef2885a3eb4
status: test
description: Detects svchost hosting RDP termsvcs communicating with the loopback address and on TCP port 3389
references:
    - https://twitter.com/cyb3rops/status/1096842275437625346
author: Samir Bousseaden
date: 2019-02-16
modified: 2024-03-12
tags:
    - attack.command-and-control
    - attack.t1572
    - attack.lateral-movement
    - attack.t1021.001
    - car.2013-07-002
logsource:
    category: network_connection
    product: windows
detection:
    selection_img:
        Image|endswith: '\svchost.exe'
        Initiated: 'true'
        SourcePort: 3389
    selection_destination:
        DestinationIp|cidr:
            - '127.0.0.0/8'
            - '::1/128'
    condition: all of selection_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

selection_img:
    Image|endswith: '\svchost.exe'
    Initiated: 'true'
    SourcePort: 3389

Stage 2: selection_destination

selection_destination:
    DestinationIp|cidr:
        - '127.0.0.0/8'
        - '::1/128'

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
DestinationIpcidr_match
  • 127.0.0.0/8 corpus 10 (kusto 6, sigma 2, elastic 2)
  • ::1/128 corpus 3 (sigma 2, elastic 1)
Imageends_with
  • \svchost.exe corpus 23 (sigma 23)
Initiatedeq
  • true corpus 50 (sigma 50)
SourcePorteq
  • 3389 corpus 3 (sigma 3)