Malicious PowerShell Spawned by PHP CGI Process

PremiumReviewedSigma · High · v1
Product
windows
Category
process_creation
Author
HuntRule
Published
2026-09-11
Updated
2026-09-11

ATT&CK techniques

Execution
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Persistence

  5. Priv Esc

  6. Defense Evasion

  7. Cred Access

  8. Discovery

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule detects the php-cgi.exe process spawning PowerShell which indicates exploitation of CVE-2024-4577 argument injection to achieve remote code execution on Windows PHP servers as seen in the persistent attacks against Japanese organizations. A web facing PHP CGI interpreter launching PowerShell is not expected during normal operation and signals server compromise.

Related detections9 linkedT1059.001 — drag to rearrange
Malicious MS-SQL Server Spawning Command Shell via Mallox
Suspicious PowerShell Download Cradle to Blogspot (via process_creation)
Suspicious Script Host Spawning PowerShell Download Cradle (via process_creation)
Suspicious Renamed PowerShell Binary Execution (via process_creation)
Suspicious PowerShell Executing Code from Environment Variable (via process_creation)
Suspicious Rename of Double-Extension PowerShell Script (via process_creation)
Suspicious In-Memory Runspace Execution via PowerShell Script Block
Suspicious PowerShell Payload Extraction from PNG Polyglot via findstr
Suspicious Hidden PowerShell WebClient DownloadFile Cradle
Malicious PowerShell Spawned by PHP CGI Process
Pivot detection · T1059.001 · 9 related

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