Detection rules › Sigma
RDP shadow session started (command)
Detects scenarios where an attacker would attempt to shadow a RDP session.
Known false positives
- administrative source host used for shadowing
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Lateral Movement | |
| Collection |
Telemetry coverage
| Provider | Record / event type |
|---|---|
| Sysmon | Event ID 1: Process creation |
| Security-Auditing | Event ID 4688: A new process has been created. |
Rule body
title: RDP shadow session started (command)
description: Detects scenarios where an attacker would attempt to shadow a RDP session.
references:
- http://woshub.com/rds-shadow-how-to-connect-to-a-user-session-in-windows-server-2012-r2/
- https://www.elastic.co/guide/en/security/current/potential-remote-desktop-shadowing-activity.html
- https://bitsadm.in/blog/spying-on-users-using-rdp-shadowing
- https://swarm.ptsecurity.com/remote-desktop-services-shadowing/
tags:
- attack.lateral_movement
- attack.t1021.001 # remote services: RDP
- attack.collection
- attack.t1113 # screen capture
- attack.t1125 # video capture
author: mdecrevoisier
status: experimental
logsource:
product: windows
category: process_creation
detection: # full command: mstsc /shadow:1 /v:<computer_name> /control /noConsentPrompt
selection:
NewProcessName|endswith: \mstsc.exe
CommandLine|contains|all:
- mstsc
- '/shadow'
condition: selection
falsepositives:
- administrative source host used for shadowing
level: high
Stages and Predicates
Stage 0: condition
selectionStage 1: selection
selection:
NewProcessName|endswith: \mstsc.exe
CommandLine|contains|all:
- mstsc
- '/shadow'
Indicators
These rows show field, operator, and value matches.
| Field | Kind | Values | Search |
|---|---|---|---|
CommandLine | match |
| field:"CommandLine" kind:match |
NewProcessName | ends_with |
| field:"Image" kind:ends_with value:"\mstsc.exe" |