Suspicious Python Process Establishing PostgreSQL Command and Control Channel

PremiumReviewedSigma · Medium · v1
Product
windows
Category
network_connection
Author
HuntRule
Published
2026-10-24
Updated
2026-10-24

ATT&CK techniques

C2
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Discovery

  10. Lateral Movement

  11. Collection

  12. Exfiltration

  13. Impact

What it detects

This rule detects a Python interpreter initiating outbound connections to the PostgreSQL service port. A commodity stealer abuses a PostgreSQL database as its command-and-control transport, storing victim registration and retrieving tasking through SQL queries instead of HTTP.

Related detections9 linkedT1071 — drag to rearrange
Possible WailingCrab MQTT C2 to Public Broker (via network_connection)
Suspicious Outbound Network Connection from explorer.exe
Suspicious SSH Service on Non Standard Port 57722
Suspicious Bash Reverse Shell via /dev/tcp
Windows GitHub Self-Hosted Runner Execution via Runner.Worker and Runner.Listener
macOS Installer Scripts Spawning Suspicious Interpreter Child Processes
Windows DNS analytic events for GALLIUM-related ddns QNAMEs (EventID 257)
Windows Process Creation alerts on GALLIUM-associated hash IOCs
Windows Process Execution Matching SILENTTRINITY Stager Metadata (st2stager)
Suspicious Python Process Establishing PostgreSQL Command and Control Channel
Pivot detection · T1071 · 9 related

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