Cortex XDR · CVE exploitation
PHP web stack: PHP worker wrote a new PHP file
- Correlation
- set the rule's MITRE tactic to TA0002 and technique to T1505.003
- severity
- medium
- confidence
- 55/100
- generated
- 14 Nov 2026
A PHP worker created or renamed a .php / .phtml / .phar file. After remote code execution the usual next step is a web shell in the web root so access survives the patch. 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 (php-fpm, php-cgi, lsphp, mod_php Apache) as the writing process and a PHP-executable extension. Template caches and CMS updates write PHP files on purpose; the rule excludes the common cache folders (cache, compiled, templates_c, twig, storage/framework/views, wp-content/upgrade) but expect update days to be loud. Hunt, then baseline per site.
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_extension) in ("php", "phtml", "phar", "php5", "php7") and not (lowercase(action_file_path) contains "/cache/" or lowercase(action_file_path) contains "/compiled/" or lowercase(action_file_path) contains "/templates_c/" or lowercase(action_file_path) contains "/twig/" or lowercase(action_file_path) contains "/storage/framework/views/" or lowercase(action_file_path) contains "/wp-content/upgrade/")| 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-worker-writes-php-4743a805.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.