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
// 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 Flags SharePoint IIS requests whose decoded URI/query contains path-traversal sequences targeting sensitive server-side paths or executable handlers.
Data Sources
Required Tables
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.
- 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.
- Test 2 Backslash traversal against _vti_bin handler
Expected signal: IIS log entry for /_vti_bin/ request containing ..%5c traversal tokens.
- 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.
Response Playbook
Triage
- Confirm the target host runs Microsoft SharePoint Server and determine whether it is patched against CVE-2026-70193 per the MSRC advisory.
- 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.
- Identify the authenticated SharePoint account (csUserName) tied to the request and assess whether it is expected to access the targeted endpoint.
- 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
- Isolate the affected SharePoint web front-end from the network if evidence of successful code execution (webshell write or w3wp child process) is found.
- Disable or reset the compromised SharePoint account and revoke its active sessions/tokens.
- Block the source IP at the WAF/load balancer and apply the MSRC patch or interim workaround for CVE-2026-70193.
Evidence Collection
- Preserve IIS W3C logs, SharePoint ULS logs, and Windows Security/Sysmon event logs covering the activity window.
- 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.
// 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) ``` 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
Sends an HTTP request containing an encoded traversal sequence to a SharePoint-style _layouts path to generate IIS telemetry.
Command
curl -s -o /dev/null -k "https://sharepoint.lab.local/_layouts/15/download.aspx?file=..%2f..%2f..%2fweb.config" Cleanup
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.
Issues a request with backslash-encoded traversal toward a SharePoint RPC handler to simulate CVE-2026-70193 probing.
Command
powershell -c "Invoke-WebRequest -UseBasicParsing -Uri 'https://sharepoint.lab.local/_vti_bin/..%5c..%5c..%5cweb.config' -SkipCertificateCheck" Cleanup
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.
Simulates post-exploitation behavior where the IIS worker process spawns cmd.exe, as would occur after a successful traversal-to-RCE.
Command
powershell -c "Start-Process -FilePath $env:SystemRoot\System32\cmd.exe -ArgumentList '/c whoami'" Cleanup
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.