Suspicious PostgreSQL Spawning Command Shell via COPY FROM PROGRAM (Soco404)

PremiumReviewedSigma · High · v1
Category
process_creation
Author
HuntRule
Published
2026-11-05
Updated
2026-11-05

ATT&CK techniques

Initial Access → Execution
  1. Recon

  2. Resource Dev

  3. Persistence

  4. Priv Esc

  5. Defense Evasion

  6. Cred Access

  7. Discovery

  8. Lateral Movement

  9. Collection

  10. C2

  11. Exfiltration

  12. Impact

What it detects

This rule detects the postgres database process spawning a command shell, the outcome of COPY FROM PROGRAM abuse used by the Soco404 campaign for initial code execution. It is important because a database engine launching a shell indicates SQL layer remote command execution against an exposed instance.

Related detections9 linkedT1059.004 — drag to rearrange
Suspicious Java Process Spawning Download or Shell Utility (Exposed JDWP Abuse)
Possible CUPS cups-browsed Remote Code Execution via Shell Child Process
Possible TP-Link Command Injection via WlanNetworkRpm Endpoint (via webserver)
Malicious Command Injection Probe via node Spawning Shell Arithmetic Echo (via process_creation)
Malicious Reverse Shell via bash dev tcp Redirection (via process_creation)
Suspicious GeoServer Java Process Spawning Download Utility
Possible Shellshock Bash Function Definition Injection via Process Creation
Malicious React Server Component RCE via Node Web Process Spawning Shell (via process_creation)
Malicious Reverse Shell Spawned from Oracle EBS Java Process
Suspicious PostgreSQL Spawning Command Shell via COPY FROM PROGRAM (Soco404)
Pivot detection · T1059.004 · 9 related

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