Detection rules › Kusto Query Language
Potential Remote Desktop Tunneling
'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
| Tactic | Techniques |
|---|---|
| Command & Control | T1572 Protocol Tunneling |
Event coverage
| Provider | Event ID | Title |
|---|---|---|
| Security-Auditing | 4624 | An account was successfully logged on. |
| Security-Auditing | 4625 | An 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.
| Field | Kind | Values |
|---|---|---|
EventID | in |
|
IpAddress | in |
|
LogonType | in |
|