Skip to content
CVE-2026-136716 Microsoft Sentinel · KQL

Detect Drupal Core Improper Exceptional Condition Check Exploitation (CVE-2026-136716) in Microsoft Sentinel

Detects exploitation attempts and post-exploitation activity associated with CVE-2026-136716, a critical (CVSS 9.8) improper check for unusual or exceptional conditions (CWE-754) vulnerability in Drupal Core. Affected versions: Drupal Core < 10.6.23, >= 11.0.0 and < 11.3.23, and >= 11.4.0 and < 11.4.14. The vulnerability is listed in the CISA KEV catalog and is being actively exploited in the wild. It arises because certain sites in unusual or incomplete install states remained vulnerable through the Drupal installer (install.php) after advisory SA-CORE-2026-017, allowing access bypass and full site takeover. Sites that already secured the installer are not affected. This detection surfaces anomalous POST requests to Drupal endpoints, error-condition responses, webshell drops in the webroot, and suspicious child processes spawned by the web server (php-fpm/apache/nginx) that can follow exploitation.

MITRE ATT&CK

Tactic
Initial Access Execution

KQL Detection Query

Microsoft Sentinel (KQL)
kusto
// df00tech DF00-2c77714dd1 · https://df00tech.com/detections/CVE-2026-136716 · licence: https://df00tech.com/detections/licence
let drupalPaths = dynamic(["/node", "/user", "/admin", "/jsonapi", "/rest", "/system/files", "/update.php", "/core/install.php", "/?q="]);
W3CIISLog
| where csMethod in ("POST", "PUT", "PATCH")
| where csUriStem has_any (drupalPaths) or csUriStem contains "index.php"
| where scStatus in (200, 500, 403) and csBytes > 1500
| extend SuspiciousPayload = csUriQuery has_any ("php", "system(", "passthru", "base64_decode", "eval(", "../", "wget", "curl ")
| where SuspiciousPayload or scStatus == 500
| project TimeGenerated, cIP, csMethod, csUriStem, csUriQuery, scStatus, csBytes, csUserAgent, Computer
| summarize RequestCount = count(), StatusCodes = make_set(scStatus), Paths = make_set(csUriStem) by cIP, csUserAgent, bin(TimeGenerated, 10m)
| where RequestCount > 5 or array_length(Paths) > 3
high severity medium confidence

Identifies anomalous POST/PUT/PATCH requests to Drupal endpoints with suspicious payloads, error-condition (500) responses, or high-volume probing from a single client, consistent with CVE-2026-136716 exploitation against IIS-hosted Drupal.

Data Sources

IIS LogsWeb Server Logs

Required Tables

W3CIISLog

False Positives & Tuning

  • Legitimate administrators performing bulk content operations via the JSON:API or REST endpoints.
  • Vulnerability scanners and authorized penetration tests generating error-condition responses.
  • Content migration tooling issuing large POST bodies to /jsonapi or /rest endpoints.

Other platforms for CVE-2026-136716


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.

  1. Test 1 Simulate anomalous Drupal POST with injection markers

    Expected signal: Web server access log entry for a POST to index.php/node containing system( and base64_decode markers.

  2. Test 2 Generate repeated Drupal HTTP 500 error conditions

    Expected signal: Multiple HTTP 500 responses from the Drupal web server logged for the /jsonapi endpoint from a single source IP.

  3. Test 3 Simulate web-server-spawned shell (post-exploitation)

    Expected signal: EDR process-start event showing a shell/interpreter spawned under the www-data/web-server context executing id and whoami.


Response Playbook

Triage

  1. Confirm the Drupal Core version on the affected host; versions < 10.6.23, 11.0.0-11.3.22, or 11.4.0-11.4.13 are vulnerable to CVE-2026-136716.
  2. Review the source IPs and user agents in the alert against known-good administrators and API integrations; flag external or anomalous sources.
  3. Inspect the full request bodies of the flagged POST/PUT/PATCH requests for PHP code, base64 blobs, path traversal, or OS command injection markers.
  4. Correlate the web requests with any child processes spawned by php-fpm/apache/nginx around the same timeframe.
  5. Check whether the site installer (install.php) was left remotely accessible, and review logs for unexpected changes to or by the user 1 account.

Containment

  1. Apply the Drupal Core security update immediately (upgrade to 10.6.23, 11.3.23, or 11.4.14 or later per SA-CORE-2026-019), then run update.php to fix affected production sites.
  2. If patching cannot be done immediately, block the offending source IPs at the WAF/edge and place the affected virtual host behind maintenance mode or restrictive access rules.
  3. Secure the Drupal installer on all sites, and reset the user 1 password and verify its email address is one you control.
  4. Isolate any host showing confirmed web-server-spawned shell activity from the network pending forensic review.

Evidence Collection

  1. Preserve web server access and error logs covering the suspicious request window for forensic analysis.
  2. Capture a disk/file-system snapshot of the Drupal webroot (sites/default/files, modules, themes) to identify dropped webshells or modified PHP files.
  3. Export process-execution telemetry (EDR) showing any child processes of the web server and their command lines.

Escalation Criteria

  • !Escalate to incident response if a web-server process is confirmed to have spawned a shell, interpreter, or outbound download utility.
  • !Escalate if new or modified PHP files are found in the webroot that do not correspond to a known deployment.
  • !Escalate if evidence of lateral movement, credential access, or data staging follows the initial exploitation.

Investigation Guide

Forensic Artifacts

  • >New or modified PHP files in the Drupal webroot, particularly under sites/default/files.
  • >Web server access/error log entries showing anomalous POST requests and HTTP 500 responses.
  • >EDR process-tree records showing php-fpm/apache/nginx spawning shell or download utilities.
  • >Unexpected outbound network connections from the web server host.

Tuning Guidance

Baseline legitimate API clients, content-migration tools, and administrator IPs that routinely issue bulk POST/PUT requests to /jsonapi and /rest, and add them to an allowlist. Tighten the error-rate and distinct-path thresholds to match your site's normal traffic. Pair the web-request detections with the EDR process-lineage rules to prioritize alerts where web requests are followed by shell execution, as those carry the highest confidence of successful exploitation.


Hunting Queries

Hunts for clusters of HTTP 500 error responses to Drupal POST endpoints, which indicate the exceptional-condition failure path being triggered by CVE-2026-136716.

Hunting — KQL
kql
// df00tech DF00-2c77714dd1 · https://df00tech.com/detections/CVE-2026-136716 · licence: https://df00tech.com/detections/licence
W3CIISLog | where csMethod == "POST" | where scStatus == 500 | summarize count() by cIP, csUriStem, bin(TimeGenerated, 1h) | where count_ > 3
Hunting — SPL
spl
``` df00tech DF00-2c77714dd1 · https://df00tech.com/detections/CVE-2026-136716 · licence: https://df00tech.com/detections/licence ```
index=web (sourcetype="access_combined" OR sourcetype="drupal:apache:access") method=POST status=500 | stats count by clientip, uri | where count>3

Atomic Red Team Tests

Test 1 Simulate anomalous Drupal POST with injection markers
linux

Sends a crafted POST request to a Drupal endpoint containing OS command and PHP injection markers to trigger the web-request detection logic in a lab.

Command

bash
curl -s -X POST 'http://drupal.lab.local/index.php?q=node' --data 'data=;system(whoami);base64_decode(ZWNobyBwd25lZDs=)' -A 'sqlmap/1.7-test'

Cleanup

bash
echo 'No cleanup required; request is non-persistent'

Expected Telemetry

Web server access log entry for a POST to index.php/node containing system( and base64_decode markers.

Expected Detection

The kql/spl/qradar/sumo/chronicle web-request rules flag the request due to injection markers on a write method.

Test 2 Generate repeated Drupal HTTP 500 error conditions
linux

Issues repeated malformed POST requests to a Drupal endpoint to generate HTTP 500 error-condition responses characteristic of the CVE-2026-136716 failure path.

Command

bash
for i in $(seq 1 8); do curl -s -o /dev/null -X POST 'http://drupal.lab.local/jsonapi/node/article' -H 'Content-Type: application/vnd.api+json' --data '{malformed'; done

Cleanup

bash
echo 'No cleanup required; requests are non-persistent'

Expected Telemetry

Multiple HTTP 500 responses from the Drupal web server logged for the /jsonapi endpoint from a single source IP.

Expected Detection

The web-request detections and the HTTP-500 hunting query flag the high volume of error-condition responses from one client.

Test 3 Simulate web-server-spawned shell (post-exploitation)
linux

Simulates a webshell executing an OS command by spawning a shell as a child of a web-server-like parent process, modeling post-exploitation command execution.

Command

bash
sudo -u www-data bash -c 'id; whoami; curl -s http://127.0.0.1/ >/dev/null' 2>/dev/null || bash -c 'id; whoami'

Cleanup

bash
echo 'No cleanup required; no artifacts persisted'

Expected Telemetry

EDR process-start event showing a shell/interpreter spawned under the www-data/web-server context executing id and whoami.

Expected Detection

The elastic_eql sequence rule and crowdstrike_cql rule flag the web-server process spawning a shell and reconnaissance utilities.

Related Detections