Suspicious PG_MEM Payload Drop in PostgreSQL Data Directory (via file_event)

PremiumReviewedSigma · High · v1
Product
linux
Category
file_event
Author
HuntRule
Published
2026-06-05
Updated
2026-08-28

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 the PG_MEM malware writing its pg_core loader and pg_mem payload into the PostgreSQL data directory after gaining code execution through the database. Executables written under the postgres data directory are highly abnormal and indicate compromise.

Related detections9 linkedT1105 — drag to rearrange
Suspicious Hidden PowerShell WebClient DownloadFile Cradle
Suspicious PowerShell Download Cradle with Spoofed User-Agent via MSIX
Malicious PowerShell In-Memory Download Cradle via Script Block (via ps_script)
Suspicious Remote Access Tool User Agent in Outbound Traffic via Proxy
Malicious Hidden Virtual Machine Launched via QEMU for Persistence
Suspicious node.exe Execution Spawned by PowerShell
Suspicious Executable Download to Temp Directory via curl on Linux
Suspicious BITSAdmin File Transfer Into ProgramData via Process Creation (via process_creation)
Suspicious PowerShell Download Cradle via IEX and DownloadString (via process_creation)
Suspicious PG_MEM Payload Drop in PostgreSQL Data Directory (via file_event)
Pivot detection · T1105 · 9 related

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