Malicious Encrypted Reverse Shell via Netcat and GPG on Linux

PremiumReviewedSigma · High · v1
Product
linux
Category
process_creation
Author
HuntRule
Published
2026-09-15
Updated
2026-09-15

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 a command pipeline that reads from a netcat listener decrypts the traffic with gpg and pipes it into a shell which the opportunistic Log4j campaign uses to run an encrypted reverse shell that evades network content inspection.

Related detections9 linkedT1071.001 — drag to rearrange
Suspicious Netcat Reverse Shell via Named Pipe on Linux via Process Creation (via process_creation)
Suspicious Reverse Shell via Dev TCP or Netcat
Malicious Bash Dev-TCP Reverse Shell via Shell (via process_creation)
Malicious Named Pipe Netcat Reverse Shell via Shell (via process_creation)
Malicious Agent Tesla Loader Malformed User-Agent in HTTP Traffic (via proxy)
Malicious Interlock RAT FileFix Download-Cradle via PowerShell WebClient with PowerShell User-Agent (via ps_script)
Suspicious Cobalt Strike Malleable Profile Beaconing via Legacy MSIE9 User-Agent and IE Compatibility URIs (via proxy)
Malicious Cobalt Strike Default Named Pipe Activity
Malicious VoidLink Kernel Rootkit C2 Endpoints via HTTP (via proxy)
Malicious Encrypted Reverse Shell via Netcat and GPG on Linux
Pivot detection · T1071.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.