elastic
medium
kql
Potential PHP2Shell Exploitation Attempt
This rule detects a distinctive PHP out-of-memory fatal error associated with PHP2Shell exploitation attempts. The
combination of an allowed-memory-size exhaustion and the location "Unknown on line 0" is produced before normal
application execution and is an indicator of attempts to exploit PHP memory-safety vulnerabilities,
including CVE-2026-109618 and CVE-2026-109619. The rule can detect unsuccessful as well as successful attempts and does
not, by itself, confirm remote code execution.