Skip to content
skopnix
← IBM QRadar detections

IBM QRadar · CVE exploitation

PHP web stack: PHP worker spawned a shell or download tool

severity
medium
confidence
70/100
generated
14 Nov 2026
Requires
Process-creation events with the parent process in "Parent Process Name" (Sysmon event 1 or 4688 with command-line auditing on Windows; auditd EXECVE / Sysmon for Linux on Linux). The Linux OS DSM fills these properties only if your parsing extracts them; check one event first.

A PHP worker (php-fpm, php-cgi, LiteSpeed lsphp, or Apache running mod_php) started a shell, script interpreter or download tool. That is what a successful remote code execution does next on any SAPI, whatever the bug in PHP or in the PHP application turns out to be. Not specific to one bug: it fires on code execution through the PHP web stack by any route. Attached to the 11 CVEs in this stack that skopnix reported in the last 30 days, newest CVE-2026-119977, CVE-2026-116606, CVE-2026-114625.

False-positive notes

Needs a PHP worker or mod_php Apache as the PARENT and a shell / interpreter / downloader as the child. PHP mail() (sh -c sendmail / msmtp / exim / postdrop) and Apache piped logging (rotatelogs, cronolog) are excluded. The PHP command-line binary is not a parent on purpose (cron jobs and artisan / wp-cli run it all day and it is not reachable from the network). Legitimate exec() calls in an application still match: hunt for a week and baseline them before alerting.

References

SELECT DATEFORMAT(starttime, 'yyyy-MM-dd HH:mm:ss') AS event_time, LOGSOURCENAME(logsourceid) AS log_source, sourceip, username, "Process Path", "Process Name", "Command"FROM eventsWHERE (("Parent Process Name" ILIKE '%php-fpm%' OR "Parent Process Name" ILIKE '%php-cgi%' OR "Parent Process Name" ILIKE '%lsphp%' OR "Parent Process Name" ILIKE '%frankenphp%' OR "Parent Process Name" ILIKE '%apache2' OR "Parent Process Name" ILIKE '%httpd' OR "Parent Process Name" ILIKE '%httpd.exe') AND ("Process Name" ILIKE '%cmd.exe' OR "Process Name" ILIKE '%powershell.exe' OR "Process Name" ILIKE '%pwsh.exe' OR "Process Name" ILIKE '%certutil.exe' OR "Process Name" ILIKE '%bitsadmin.exe' OR "Process Name" ILIKE '%mshta.exe' OR "Process Name" ILIKE '%rundll32.exe' OR "Process Name" ILIKE '%regsvr32.exe' OR "Process Name" ILIKE '%wscript.exe' OR "Process Name" ILIKE '%cscript.exe' OR "Process Name" IN ('sh', 'bash', 'dash', 'zsh', 'busybox', 'curl', 'wget', 'nc', 'ncat', 'socat', 'perl', 'python', 'python3') OR "Process Name" ILIKE '%/sh' OR "Process Name" ILIKE '%/bash' OR "Process Name" ILIKE '%/dash' OR "Process Name" ILIKE '%/curl' OR "Process Name" ILIKE '%/wget' OR "Process Name" ILIKE '%/nc' OR "Process Name" ILIKE '%/ncat' OR "Process Name" ILIKE '%/socat' OR "Process Name" ILIKE '%/perl' OR "Process Name" ILIKE '%/python%') AND NOT ("Command" ILIKE '%sendmail%' OR "Command" ILIKE '%msmtp%' OR "Command" ILIKE '%exim%' OR "Command" ILIKE '%postdrop%' OR "Command" ILIKE '%rotatelogs%' OR "Command" ILIKE '%cronolog%'))AND LOGSOURCETYPENAME(devicetype) IN ('Microsoft Windows Security Event Log', 'Linux OS')LAST 7 DAYS

skopnix-qradar-cve-stack-php-worker-shell-06dd4a12.aql

How to deploy on IBM QRadar

Step 1
Create the reference set from its spec (Reference Data API, or Admin > Reference Set Management) and schedule the skopnix feed load.
Step 2
Paste the AQL into Log Activity > Advanced Search to hunt the last seven days.
Step 3
For alerting, build the CRE rule from the test stack shown and exclude your known-good building block.
Check
Custom properties ("URL Host", "URL", "File Hash", "Process CommandLine") come from your DSMs and content extensions; rename them if yours differ.