Windows: Detect ngrok Traffic Forwarded to Local RDP Port via TerminalServices Logs

Detects suspicious ngrok usage that forwards to the local RDP port using Windows TerminalServices-LocalSessionManager EventID 21.

FreeReviewedSigma · High · v2
Product
windows
Service
terminalservices-localsessionmanager
Author
Florian Roth (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2022-04-29
Updated
2026-07-31

ATT&CK techniques

C2
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Discovery

  10. Lateral Movement

  11. Collection

  12. Exfiltration

  13. Impact

What it detects

This rule flags Windows TerminalServices local session manager events where ngrok traffic is associated with the local RDP port indicator. Attackers may use reverse proxies like ngrok to expose or relay remote desktop access while bypassing normal access paths. Detection relies on terminal services event telemetry, matching a specific event identifier and an address field content associated with RDP forwarding.

Related detections9 linkedT1090 — drag to rearrange
Malicious QDoor Remote Proxy Execution via WMIC Node Process Call Create of svhost from Temp (via process_creation)
Suspicious SOCKS Proxy Persistence via SystemBC PowerShell Run Key
Malicious Java Backdoor Execution from Public Documents via javaw (via process_creation)
Suspicious Proxyware Installation via accept-tos Flag on Linux
Suspicious DNS Query to Dynamic DNS and Tunneling Providers Abused by RATs
Malicious GenAI Browser Extension C2 and PAC Redirection (via proxy)
Malicious FRP Reverse Proxy Tunnel Identified by Hardcoded Token (via process_creation)
Suspicious SSH Reverse Tunnel Over DNS Port
Suspicious Chisel SOCKS Tunnel Command Line
Windows: Detect ngrok Traffic Forwarded to Local RDP Port via TerminalServices Logs
Pivot detection · T1090 · 9 related

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.