Cortex XDR · CVE exploitation
PHP web stack: PHP worker built an ALFA-style CGI shell folder
- Correlation
- set the rule's MITRE tactic to TA0002 and technique to T1505.003
- severity
- high
- confidence
- 80/100
- generated
- 14 Nov 2026
A PHP worker wrote into a folder whose name contains "cgiapi" or a file with the .alfa extension. ALFA-family web shells drop perl / python / bash CGI scripts there plus an .htaccess that turns on ExecCGI for a made-up extension, so the web server runs them as programs (seen renamed: alfacgiapi, wordpresscgiapi with *.wordpress files). 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 as the writer and "cgiapi" in the path or an .alfa extension. A copy renamed without either marker is missed; worker-writes-php and worker-shell cover the rest of the chain.
References
- skopnix.com/cve/CVE-2026-119977 ↗
- skopnix.com/cve/CVE-2026-116606 ↗
- skopnix.com/cve/CVE-2026-114625 ↗
- skopnix.com/cve/CVE-2026-111560 ↗
- skopnix.com/cve/CVE-2026-110447 ↗
- skopnix.com/cve/CVE-2026-109619 ↗
- skopnix.com/cve/CVE-2026-109618 ↗
- skopnix.com/cve/CVE-2026-104736 ↗
- skopnix.com/cve/CVE-2026-103849 ↗
- skopnix.com/cve/CVE-2026-102764 ↗
- skopnix.com/cve/CVE-2026-48356 ↗
dataset = xdr_data| filter event_type = ENUM.FILE and (event_sub_type = ENUM.FILE_CREATE_NEW or event_sub_type = ENUM.FILE_WRITE or event_sub_type = ENUM.FILE_RENAME)| filter (lowercase(actor_process_image_name) ~= "^(php-fpm|php-cgi|lsphp)[0-9.]*(.exe)?$" or lowercase(actor_process_image_name) in ("frankenphp", "apache2", "httpd", "httpd.exe")) and (lowercase(action_file_path) contains "cgiapi" or lowercase(action_file_extension) = "alfa")| fields _time, agent_hostname, actor_effective_username, actor_process_image_name, actor_process_command_line, action_file_path, action_file_sha256, causality_actor_process_image_name| sort desc _timeskopnix-cortex-cve-stack-php-cgi-shell-folder-7ea354ec.xql
How to deploy on Cortex XDR
- Step 1
- Paste the XQL into Incident Response > Investigation > Query Builder > XQL Search.
- Step 2
- To alert, save it as a Correlation Rule and set the MITRE tactic and technique printed with the rule.
- Step 3
- Schedule it on the interval you hunt at; keep the fields stage for the alert's columns.
- Check
- CVE rules read PAN-OS URL logs (panw_ngfw_url_raw), which need the NGFW integration and, for HTTPS, decryption.