Name:PHP Worker Segmentation Fault After Multipart POST id:0ace6522-ee55-4e5c-bd69-d6f0a8e69e6a version:2 date:None author:Onur Mustafa Erdogan, Raven Tait, Nasreddine Bencherchali, Splunk status:production type:Anomaly Description:This analytic pairs an Apache AH00051 worker segmentation-fault notice with
the most recent logged request from that child PID on the same host and Apache
instance. It looks for multipart POST requests within short time frame around
the crash, a pattern that can occur during PHP2Shell exploitation. Captured
access event is a candidate for the associated request that leads to crash.
Yet, request that kills the worker may never reach the access log. Data_source:
-Apache Access Log
-Apache Error Log
search:( `apache_access_logs` OR `apache_error_logs` ) ( (http_content_type="multipart/form-data*" AND http_method=POST) OR error_message="*exit signal Segmentation fault*" )
| rex field=error_message "child\s+pid\s+(?<child_pid>\d+)"
| rex field=_raw "client\:?\s+(?<client>.*?)(?:,|\]|$)" | rex mode=sed field=client "s/\:\d+$//g"
| stats count min(_time) as firstTime last(_time) as lastTime dc(source) as dc_source values(source) as source dc(sourcetype) as dc_sourcetype values(sourcetype) as sourcetype values(http_method) as http_method values(src) as src values(dest) as dest values(dest_port) as dest_port values(site) as site values(uri) as uri values(url) as url values(status) as status values(memory_bytes) as memory_bytes values(http_content_length) as http_content_length values(http_content_type) as http_content_type values(http_referrer) as http_referrer values(http_user_agent) as http_user_agent values(message) as message by pid host | where dc_sourcetype>1
how_to_implement:Ingest Apache (https://splunkbase.splunk.com/app/3186) access and error logs into Splunk using their default Splunk add-ons.
Follow configuration instructions (https://splunk.github.io/splunk-add-on-for-apache-web-server/Configure/) to properly set up Apache access and error log format.
In addition to default log formats, enable logging of worker PID (process ID) in both access and error logs.
Make sure that you configure the `apache_access_logs` and `apache_error_logs` macros with the corresponding source and sourcetype patterns for your environment. known_false_positives:Legitimate large multipart uploads, application bugs, or load tests can cause segmentation fault errors.
Review the correlated access and PHP error events before classifying this activity as exploitation. References: -https://www.php2shell.com/ -https://github.com/php/php-src/commit/3584a98bda0f2c0d367255b046798b0d3a221a19 -https://securitylabs.datadoghq.com/articles/php2shell-critical-vulnerabilities-in-php -https://panop.io/threat-intelligence/php2shell-cve-2026-109618-cve-2026-109619/ drilldown_searches:
: analytic_story:['PHP2Shell']