Linux Network Connection to /bin/bash via Reverse Shell Pattern

Alerts on /bin/bash network connections to non-local destination IPs, consistent with reverse shell behavior.

FreeReviewedSigma · Critical · v3
Product
linux
Category
network_connection
Author
Florian Roth (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2021-10-16
Updated
2026-07-31

ATT&CK techniques

Execution
  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. C2

  12. Exfiltration

  13. Impact

What it detects

This rule flags network activity where the process image ends with '/bin/bash' and the destination IP is not 127.0.0.1 or 0.0.0.0. Outbound connections initiated by an interactive shell are a common indicator of reverse shell behavior used to establish remote command execution. It relies on telemetry that correlates the executable path (process image) with destination IP for Linux network connection events.

Related detections9 linkedT1059.004 — drag to rearrange
Suspicious Bad Apples Reverse Shell via socat pty
Suspicious Axios NPM macOS Persistence Masquerading as Apple Service
Malicious Shell Payload Piped from curl to zsh
Possible Bitbucket Pre-Auth RCE via git archive exec Null-Byte Injection (CVE-2022-36804) (via webserver)
Malicious TeamTNT Docker Gatling Gun Initialization Script (via process_creation)
Suspicious Shell Spawned by PostgreSQL Server Process (via process_creation)
Malicious Remote Script Piped Directly to a Shell (via process_creation)
HamsaUpdate Linux Payload Download via Wget Piped to Bash (via process_creation)
Suspicious Remote Script Execution via Wget or Curl Piped to Shell (via process_creation)
Linux Network Connection to /bin/bash via Reverse Shell Pattern
Pivot detection · T1059.004 · 9 related

Changelog

v3
  1. v3
    Candidate ingested via manual entry.2026-07-31
  2. v2
    Candidate ingested via manual entry.2026-07-31
  3. 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.