Malicious PostgreSQL COPY FROM PROGRAM Command Execution via Managed Cloud Database (via process_creation)

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

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 PostgreSQL server process spawning a shell or command utility, the primitive Wiz Research abused through COPY FROM PROGRAM in GCP Cloud SQL and Azure Database for PostgreSQL to run operating-system commands and open reverse shells. Since the database engine should not launch interpreters, such child processes indicate exploitation of database privileges for code execution and container escape.

Related detections9 linkedT1190 — drag to rearrange
Possible Bitbucket Pre-Auth RCE via git archive exec Null-Byte Injection (CVE-2022-36804) (via webserver)
Suspicious PAN-OS Shell Execution Setting panusername via Command Injection (via process_creation)
Malicious OMI Server Spawning Shell as Root via OMIGOD SCX Provider (via process_creation)
Possible F5 iControl REST Remote Code Execution via Util Bash Endpoint
Cleo File Transfer Software Spawning Command Interpreter
Possible React2Shell CVE-2025-55182 Prototype Pollution Exploitation
Malicious Shell Payload Piped from curl to zsh
Possible Next.js Middleware Auth Bypass via X-Middleware-Subrequest Header (CVE-2025-29927)
Possible Ivanti Pulse Connect Secure Command Injection via License Keys-Status Endpoint (via webserver)
Malicious PostgreSQL COPY FROM PROGRAM Command Execution via Managed Cloud Database (via process_creation)
Pivot detection · T1190 · 9 related

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