Detection rules › Kusto Query Language

Potential Remote Desktop Tunneling

Source
upstream

'This query detects remote desktop authentication attempts with a localhost source address, which can indicate a tunneled login. Ref: https://www.mandiant.com/resources/bypassing-network-restrictions-through-rdp-tunneling'

MITRE ATT&CK coverage

TacticTechniques
Command & ControlT1572 Protocol Tunneling

Event coverage

ProviderEvent IDTitle
Security-Auditing4624An account was successfully logged on.
Security-Auditing4625An account failed to log on.

Stages and Predicates

Stage 1: source

SecurityEvent

Stage 2: where

and
  EventID in ["4624", "4625"]
  IpAddress in ["127.0.0.1", "::1"]
  LogonType eq "10"

Stage 3: summarize

Stage 4: extend

Stage 5: extend

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
EventIDin
  • 4624
  • 4625
IpAddressin
  • 127.0.0.1
  • ::1
LogonTypein
  • 10