Detection rules › Sigma

Hijack Legit RDP Session to Move Laterally

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

Detects the usage of tsclient share to place a backdoor on the RDP source machine's startup folder

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 11FileCreate

Rule body yaml

title: Hijack Legit RDP Session to Move Laterally
id: 52753ea4-b3a0-4365-910d-36cff487b789
status: test
description: Detects the usage of tsclient share to place a backdoor on the RDP source machine's startup folder
author: Samir Bousseaden
references:
    - Internal Research
date: 2019-02-21
modified: 2021-11-27
tags:
    - attack.command-and-control
    - attack.t1219.002
logsource:
    product: windows
    category: file_event
detection:
    selection:
        Image|endswith: '\mstsc.exe'
        TargetFilename|contains: '\Microsoft\Windows\Start Menu\Programs\Startup\'
    condition: selection
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith: '\mstsc.exe'
    TargetFilename|contains: '\Microsoft\Windows\Start Menu\Programs\Startup\'

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
Imageends_with
  • \mstsc.exe corpus 6 (sigma 6)
TargetFilenamematch
  • \Microsoft\Windows\Start Menu\Programs\Startup\ corpus 2 (sigma 2)