Suspicious Bash Reverse Shell via /dev/tcp

PremiumReviewedSigma · High · v1
Product
linux
Category
process_creation
Author
HuntRule
Published
2026-05-25
Updated
2026-08-28

ATT&CK techniques

Execution → C2
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Persistence

  5. Priv Esc

  6. Defense Evasion

  7. Cred Access

  8. Discovery

  9. Lateral Movement

  10. Collection

  11. Exfiltration

  12. Impact

What it detects

This rule detects Bash command lines that redirect a shell to a /dev/tcp socket, a fileless reverse-shell technique. This was used against Linux and SAP hosts following CVE-2025-31324 exploitation to obtain interactive remote access. Legitimate administrative use of /dev/tcp is uncommon and warrants investigation.

Related detections9 linkedT1105 — drag to rearrange
Possible Mirai IoT Payload Staging via chmod on Linux (via process_creation)
Suspicious GeoServer Java Process Spawning Download Utility
Malicious Linux Payload Download and Execution Chain via Wget and Chmod (via process_creation)
Malicious AutoHotKey Runner AutoNotify Executing AHKBot Looper Script (via process_creation)
Suspicious Reconnaissance and Payload Download by Node Web Process
Suspicious tmp Download and Execute Chain on Embedded Linux
Suspicious Bash Dev-TCP Reverse Shell Execution
Malicious Remote Script Piped to Shell via Curl (via process_creation)
Suspicious Downloaded Shell Stager Made Executable Via Chmod 777
Suspicious Bash Reverse Shell via /dev/tcp
Pivot detection · T1105 · 9 related

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