Lab Verified: 2026-10-21
PHP2Shell Hunt Query
The vulnerability stems from improper handling during the parsing of multipart/form-data request bodies, rendering widely circulated workarounds like 'session.upload_progress.enabled=0' ineffective at stopping weaponized payloads.
index=web_logs (http_method="POST" OR http_method="PUT" OR http_method="PATCH") uri_path="*.php" http_content_type="*multipart/form-data*"
| stats count earliest(_time) as first_seen latest(_time) as last_seen values(uri_path) as targeted_uris by src_ip, status
| where count > 5
| convert ctime(first_seen) ctime(last_seen)
| sort - countNeed to defang indicators or test triage logs?
Use our zero-telemetry client-side parser to extract, defang & format indicators.
Target Log Sources & Tables
DeviceProcessEvents
Ensure telemetry connector is actively ingesting this table into your Sentinel workspace or Defender XDR.
False Positives & Tuning Guidance
Legitimate administrative software deployment scripts, authorized security testing, or system maintenance tasks.
Source Incident Analysis
PHP2Shell: How to Detect & Mitigate Critical 9.2 PHP RCE Flaws
Disclosed: 2026-10-21
DETECTION_ENGINEERING_FEEDBACK
Submit Feedback →Have tuning recommendations, encounter false positives in your environment, or want to contribute rule improvements?