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

Detect CVE-2026-70193: Microsoft SharePoint Path Traversal Remote Code Execution in Microsoft Sentinel

Detects exploitation attempts against CVE-2026-70193, a critical (CVSS 9.9) path traversal vulnerability (CWE-22) in Microsoft Office SharePoint Server that allows an authenticated attacker to traverse outside the restricted web application directory and write or execute code on the server. Detection focuses on HTTP requests containing directory-traversal sequences against SharePoint endpoints, anomalous file writes into SharePoint LAYOUTS/web directories, and w3wp.exe spawning command interpreters, behaviors consistent with traversal-to-RCE on a SharePoint front-end.

MITRE ATT&CK

Tactic
Initial Access Execution

KQL Detection Query

Microsoft Sentinel (KQL)
kusto
// df00tech DF00-ad456a034a · https://df00tech.com/detections/CVE-2026-70193 · licence: https://df00tech.com/detections/licence
let traversalPatterns = dynamic(["..%2f", "..%5c", "../", "..\\", "%2e%2e%2f", "%2e%2e/", "..%252f", "%c0%af"]);
W3CIISLog
| where csUriStem has_any ("/_layouts/", "/_vti_bin/", "/_api/", "/sites/", "/_catalogs/")
| extend decodedUri = tolower(url_decode(strcat(csUriStem, "?", coalesce(csUriQuery, ""))))
| where decodedUri has_any (traversalPatterns) or decodedUri has "../" or decodedUri has "..\\"
| where decodedUri has_any ("web.config", ".aspx", ".ashx", ".asmx", "\\inetpub", "/layouts/", "wwwroot")
| project TimeGenerated, Computer, cIP, csMethod, csUriStem, csUriQuery, scStatus, csUserName, csUserAgent
| sort by TimeGenerated desc
critical severity medium confidence

Flags SharePoint IIS requests whose decoded URI/query contains path-traversal sequences targeting sensitive server-side paths or executable handlers.

Data Sources

IIS LogsMicrosoft Sentinel W3CIISLog

Required Tables

W3CIISLog

False Positives & Tuning

  • Security scanners and vulnerability assessment tools probing SharePoint with encoded payloads
  • Legitimate SharePoint REST/_api calls that embed encoded characters in OData filters
  • Web application firewall test traffic or red-team authorized assessments

Other platforms for CVE-2026-70193


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 Encoded path traversal against SharePoint _layouts endpoint

    Expected signal: IIS W3C log entry with csUriStem=/_layouts/15/download.aspx and a query string containing ..%2f sequences.

  2. Test 2 Backslash traversal against _vti_bin handler

    Expected signal: IIS log entry for /_vti_bin/ request containing ..%5c traversal tokens.

  3. Test 3 Simulated w3wp.exe spawning command interpreter

    Expected signal: Process-creation event with ParentImage=w3wp.exe (when run under the app pool) or cmd.exe child-process record in Sysmon/EDR.

Last updated: Research depth: standard
References (1)

Response Playbook

Triage

  1. Confirm the target host runs Microsoft SharePoint Server and determine whether it is patched against CVE-2026-70193 per the MSRC advisory.
  2. Decode the full request URI and query string and confirm the presence of genuine path-traversal sequences (../, ..%2f, %2e%2e) rather than benign encoded content.
  3. Identify the authenticated SharePoint account (csUserName) tied to the request and assess whether it is expected to access the targeted endpoint.
  4. Correlate the HTTP request timestamp with any file-write or process-creation activity by w3wp.exe on the same server within a 5-minute window.

Containment

  1. Isolate the affected SharePoint web front-end from the network if evidence of successful code execution (webshell write or w3wp child process) is found.
  2. Disable or reset the compromised SharePoint account and revoke its active sessions/tokens.
  3. Block the source IP at the WAF/load balancer and apply the MSRC patch or interim workaround for CVE-2026-70193.

Evidence Collection

  1. Preserve IIS W3C logs, SharePoint ULS logs, and Windows Security/Sysmon event logs covering the activity window.
  2. Capture any newly written files under the SharePoint TEMPLATE\LAYOUTS, _vti_bin, or wwwroot directories and hash them for analysis.

Escalation Criteria

  • !Escalate to incident response if a web shell or unexpected executable handler was written to a SharePoint directory.
  • !Escalate if w3wp.exe is observed spawning command interpreters or if lateral movement from the SharePoint host is detected.

Investigation Guide

Forensic Artifacts

  • >IIS W3C access logs showing the traversal request and HTTP status code
  • >SharePoint ULS trace logs around the request time
  • >Newly created .aspx/.ashx files under TEMPLATE\LAYOUTS or wwwroot
  • >w3wp.exe process-creation and child-process records in Sysmon/EDR

Tuning Guidance

Baseline the normal volume of encoded characters in legitimate _api/OData traffic for your environment and add exclusions for known scanners and authorized assessment source IPs. Tighten the handler-file regex to directories that should never receive uploads (e.g., TEMPLATE\LAYOUTS) to reduce noise from legitimate solution deployments.


Hunting Queries

Aggregates SharePoint traversal attempts by source IP and account to reveal probing or brute-force traversal patterns.

Hunting — KQL
kql
// df00tech DF00-ad456a034a · https://df00tech.com/detections/CVE-2026-70193 · licence: https://df00tech.com/detections/licence
W3CIISLog | where csUriStem has_any ("/_layouts/","/_vti_bin/") | extend d = tolower(url_decode(strcat(csUriStem,"?",csUriQuery))) | where d has "../" or d has "..%2f" | summarize count() by cIP, csUserName, bin(TimeGenerated, 1h)
Hunting — SPL
spl
``` df00tech DF00-ad456a034a · https://df00tech.com/detections/CVE-2026-70193 · licence: https://df00tech.com/detections/licence ```
index=iis (cs_uri_stem="*/_layouts/*" OR cs_uri_stem="*/_vti_bin/*") | eval d=urldecode(lower(cs_uri_stem."?".cs_uri_query)) | where match(d,"\.\.(\/|%2f|%5c)") | stats count by c_ip, cs_username

Atomic Red Team Tests

Test 1 Encoded path traversal against SharePoint _layouts endpoint
linux

Sends an HTTP request containing an encoded traversal sequence to a SharePoint-style _layouts path to generate IIS telemetry.

Command

bash
curl -s -o /dev/null -k "https://sharepoint.lab.local/_layouts/15/download.aspx?file=..%2f..%2f..%2fweb.config"

Cleanup

bash
echo 'No cleanup required; read-only request'

Expected Telemetry

IIS W3C log entry with csUriStem=/_layouts/15/download.aspx and a query string containing ..%2f sequences.

Expected Detection

KQL/SPL/QRadar/Sumo/Chronicle traversal rules match on the decoded URI.

Test 2 Backslash traversal against _vti_bin handler
windows

Issues a request with backslash-encoded traversal toward a SharePoint RPC handler to simulate CVE-2026-70193 probing.

Command

powershell
powershell -c "Invoke-WebRequest -UseBasicParsing -Uri 'https://sharepoint.lab.local/_vti_bin/..%5c..%5c..%5cweb.config' -SkipCertificateCheck"

Cleanup

powershell
Remove-Variable -Name response -ErrorAction SilentlyContinue

Expected Telemetry

IIS log entry for /_vti_bin/ request containing ..%5c traversal tokens.

Expected Detection

Traversal detection rules fire on the decoded backslash sequences targeting web.config.

Test 3 Simulated w3wp.exe spawning command interpreter
windows

Simulates post-exploitation behavior where the IIS worker process spawns cmd.exe, as would occur after a successful traversal-to-RCE.

Command

powershell
powershell -c "Start-Process -FilePath $env:SystemRoot\System32\cmd.exe -ArgumentList '/c whoami'"

Cleanup

powershell
echo 'Transient process; no cleanup required'

Expected Telemetry

Process-creation event with ParentImage=w3wp.exe (when run under the app pool) or cmd.exe child-process record in Sysmon/EDR.

Expected Detection

CrowdStrike CQL and Elastic EQL correlation rules flag w3wp.exe spawning a command interpreter.

Related Detections