Elastic’s behavioral rules detect php2shell post-exploitation even without a PoC
Elastic’s pre-built detection rules reliably detect php2shell activity across PHP deployments before a public exploit is available.
Security & privacy Elastic Security Labs 21 Oct 2026 Defense Deployed evidence
Published as “php2shell: Assessing Elastic detection coverage relevant to CVE-2026-109618 and CVE-2026-109619”
Why it matters
Enables defenders to protect PHP web servers against the new critical RCE flaws before exploit code appears.
Summary
The post describes two critical PHP core RCE bugs (CVE-2026-109618/109619) and argues that, despite the lack of a public exploit, the post-exploitation behavior converges on a web server spawning a shell. Elastic has created endpoint and SIEM rules that look for a non-interactive web server process launching shells, suspicious child processes, payload downloads, and web-shell file creation. The authors demonstrate the rules against a prior wp2shell case and provide queries to inventory PHP installations. Evidence is limited to that prior case and the authors’ reasoning about convergent behavior.
What they found 2
- The tightest signal for a successful PHP RCE is a request-serving process spawning a shell with a suspicious command line.
“The tightest signal for "a PHP RCE just succeeded" is a request-serving process spawning a shell to run a suspicious command.”
- Elastic’s SIEM rule "Unusual Command Execution via Web Server" uses a new_terms baseline to alert on command lines that deviate from normal web-server activity.
“Unusual Command Execution via Web Server is a new_terms rule: it learns which shell command lines each web server parent normally runs on a host, then alerts on lines that break the baseline.”
Caveats 2
- we can never be entirely certain that we fully cover the threat, as there could be other forms of post-exploitation that we don't catch, like creation of an account or fileless PHP script execution.
- there is still no reliable public proof-of-concept to run end to end.
What’s new here 4
- Identification of a convergent post-exploitation flow for PHP RCE that can be detected without a PoC.
- Pre-built Elastic endpoint and SIEM rules that detect web server processes spawning shells, child interpreters, payload downloads, and high-entropy web-shell files.
- Introduction of new_terms anomaly detection rules for unusual command and child execution from web server parents.
- Guidance for inventorying PHP installations and applying temporary configuration mitigations.