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
Suspicious PowerShell Remote Payload Download via IEX DownloadString
Malicious Shadow Copy Deletion Via WMI
Suspicious Script Host Spawning PowerShell With Bypass And Hidden Execution
Suspicious PS1Bot PowerShell Payload Written to ProgramData (via file_event)
Suspicious PowerShell Execution via SyncAppvPublishingServer LOLBIN
Suspicious Scheduled Task Running PowerShell Every Minute (via process_creation)
Malicious Script Host Spawning PowerShell With Invoke-Expression (via process_creation)
Hidden PowerShell Archive Extraction via ExtractToDirectory
CastleLoader ClickFix PowerShell Hex Decode and Re-Execution
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.