Suspicious Firewall Rule Allowing SSH via New-NetFirewallRule During Ransomware

PremiumReviewedSigma · Medium · v1
Product
windows
Category
ps_script
Author
HuntRule
Published
2026-10-13
Updated
2026-10-13

ATT&CK techniques

Lateral Movement
  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. C2

  12. Exfiltration

  13. Impact

What it detects

This rule detects a PowerShell New-NetFirewallRule command that opens the host for sshd inbound access as observed when ransomware operators enable SSH for lateral movement and persistence. Attackers create this rule to establish a resilient remote access path across the environment.

Related detections9 linkedT1021.001 — drag to rearrange
Suspicious Firewall Rule Added to Open RDP Port 3389 via netsh
Suspicious Remote Desktop Enablement via Registry fDenyTSConnections and Firewall Rule (via process_creation)
Malicious Remote Desktop Enablement via Netsh
Suspicious iptables Port Redirect Rule via GRIMBOLT
Malicious RDP Tunneling via ngrok (via process_creation)
Suspicious Remote Desktop Enablement via Registry By Ransomware
Suspicious Remote Desktop Enablement via netsh Firewall Rule (via process_creation)
Suspicious RDP Enablement via netsh Firewall Rule
Suspicious Firewall Allow Rule for TightVNC Server via netsh (via process_creation)
Suspicious Firewall Rule Allowing SSH via New-NetFirewallRule During Ransomware
Pivot detection · T1021.001 · 9 related

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