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 Remote HTA Payload Execution via MSHTA
Possible PurpleFox MSHTA to Msiexec Remote MSI Chain
Antivirus Check and Remote Loader Retrieval in LNK Command Chain
Suspicious PowerShell Hidden Web Download via Invoke-WebRequest by CatB Ransomware
Malicious Remote MSI Execution with Image Extension via msiexec (via process_creation)
Malicious ActiveMQ Exploitation Java Spawning PowerShell Downloader (via process_creation)
Malicious Sobolan Payload Download from Jupyter Compromise (via process_creation)
Suspicious Payload Download from Filebin via wget (via process_creation)
Suspicious Certutil UrlCache Download of Remote CAB Payload (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.