// Threat Brief 2026-10-31 · PHP2Shell (CVE-2026-109618/109619) · experimental
// Shell spawned by a PHP worker or web server with download, reverse shell, or decoding activity
config case_sensitive = false
| dataset = xdr_data
| filter event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_START
| filter actor_process_image_name in ("php-fpm", "php-cgi", "lsphp", "frankenphp", "httpd", "apache2") or actor_process_image_name ~= "^php-fpm"
| filter action_process_image_name in ("sh", "bash", "dash", "zsh", "ksh")
| filter action_process_image_command_line contains "curl" or action_process_image_command_line contains "wget" or action_process_image_command_line contains "/dev/tcp" or action_process_image_command_line contains "base64 -d" or action_process_image_command_line contains "/etc/shadow"
| fields _time, agent_hostname, actor_effective_username, actor_process_image_name, action_process_image_name, action_process_image_command_line
| sort desc _time
Post-exploitation PHP2Shell : shell enfant de php-fpm, php-cgi, lsphp ou Apache avec curl, wget, /dev/tcp ou base64 -d (logique Elastic et Unit 42). Faux positifs : applications PHP appelant légitimement curl via un shell ; mail() via sendmail.
www.elastic.counit42.paloaltonetworks.com