Port Forwarding via SSH.EXE on Windows

Flags Windows executions of ssh.exe using remote port forwarding (-R) based on process creation command-line content.

FreeReviewedSigma · Medium · v1
Product
windows
Category
process_creation
Author
Nasreddine Bencherchali (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2022-10-12
Updated
2026-07-30

ATT&CK techniques

Lateral Movement → 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. Collection

  11. Exfiltration

  12. Impact

What it detects

This rule flags process executions of ssh.exe where the command line includes a remote port forwarding argument (-R). Attackers can use SSH port forwarding to route traffic through an affected host for command-and-control or lateral movement. Telemetry relies on Windows process creation events, specifically the image path ending with \ssh.exe and matching command-line text containing ' -R '.

Related detections9 linkedT1572 — drag to rearrange
Suspicious OpenSSH Reverse Tunnel Over HTTPS Port (Chaos Ransomware)
Obfuscated RDP Tunneling Configuration Enabled for Port Forwarding (via process_creation)
Malicious RDP Tunneling (via rdp)
Possible Ngrok RDP Tunnel Exposure via TCP 3389
Windows svchost.exe RDP (3389) Connections to HTTP/HTTPS Ports 80 or 443
Windows Plink Remote Port Forwarding via -R Command Line
Windows svchost RDP via Reverse SSH Loopback Tunnel to 127.0.0.0/8:3389
Suspicious SCATTERED SPIDER Chisel Tunnel to Cloudflare Quick Tunnel (via process_creation)
Suspicious Enabling of Remote Desktop via fDenyTSConnections Registry by DeadLock Ransomware
Port Forwarding via SSH.EXE on Windows
Pivot detection · T1572 · 9 related

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