Skip to content
skopnix
← Sigma detections

Sigma · CVE exploitation

PHP web stack: PHP worker built an ALFA-style CGI shell folder

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

Download .yml
title: 'Skopnix - PHP web stack: PHP worker built an ALFA-style CGI shell folder'id: b0750862-4c6e-5772-aedb-fc5bf1c8a94fstatus: experimentaldescription: '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.'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.t1505.003  - attack.t1059.004  - 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: '[/\\](php-fpm[0-9.]*|php-cgi[0-9.]*(\.exe)?|lsphp[0-9]*|frankenphp|apache2|httpd(\.exe)?)$'  selection_dir:    TargetFilename|contains: cgiapi  selection_ext:    TargetFilename|endswith: .alfa  condition: selection_writer and (selection_dir or selection_ext)falsepositives:  - None known; no CMS or plugin uses a "cgiapi" folderlevel: high

skopnix-sigma-cve-stack-php-cgi-shell-folder-adc8d84e.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.