Detection rules › Sigma

Hijack Legit RDP Session to Move Laterally

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

Known false positives

  • Unlikely

MITRE ATT&CK coverage

Telemetry coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule body

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

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \mstsc.exe corpus 6 (sigma 6)
field:"Image" kind:ends_with value:"\mstsc.exe"
TargetFilenamematch
  • \Microsoft\Windows\Start Menu\Programs\Startup\ corpus 2 (sigma 2)
field:"TargetFilename" kind:match value:"\Microsoft\Windows\Start Menu\Programs\Startup\"