Detect CVE-2026-21510: Microsoft Windows Shell Protection Mechanism Failure in Microsoft Sentinel
Detects exploitation of CVE-2026-21510, a Microsoft Windows Shell protection mechanism failure (CWE-693) that allows attackers to bypass security controls enforced by the Windows Shell. This vulnerability is actively exploited in the wild (CISA KEV). Attackers may abuse this flaw to execute unauthorized code, bypass security prompts, or escalate privileges via crafted shell interactions.
MITRE ATT&CK
KQL Detection Query
let SuspiciousShellParents = dynamic(["winlogon.exe", "services.exe", "svchost.exe", "lsass.exe", "csrss.exe"]);
let ShellProcesses = dynamic(["explorer.exe", "cmd.exe", "powershell.exe", "pwsh.exe", "wscript.exe", "cscript.exe", "mshta.exe"]);
DeviceProcessEvents
| where TimeGenerated > ago(7d)
| where (FileName in~ (ShellProcesses) and InitiatingProcessFileName in~ (SuspiciousShellParents))
or (FileName =~ "explorer.exe" and ProcessCommandLine has_any ("/factory", "/select", "-Embedding") and InitiatingProcessFileName !in~ ("userinit.exe", "explorer.exe"))
or (InitiatingProcessFileName =~ "explorer.exe" and FileName in~ ("cmd.exe", "powershell.exe", "pwsh.exe") and not(InitiatingProcessCommandLine has_any ("open", "explore")))
| extend RiskScore = case(
InitiatingProcessFileName in~ (SuspiciousShellParents) and FileName in~ (ShellProcesses), 90,
FileName =~ "explorer.exe" and ProcessCommandLine has "/factory", 80,
70
)
| project TimeGenerated, DeviceName, AccountName, FileName, ProcessCommandLine, InitiatingProcessFileName, InitiatingProcessCommandLine, InitiatingProcessId, ProcessId, RiskScore, ReportId
| order by RiskScore desc, TimeGenerated desc Detects suspicious Windows Shell (explorer.exe, cmd.exe, powershell.exe) spawning patterns indicative of protection mechanism bypass. Flags shell processes launched from unexpected system parents and unusual explorer.exe invocations associated with CVE-2026-21510 exploitation.
Data Sources
Required Tables
False Positives & Tuning
- Legitimate software installers that spawn shell processes from service contexts
- Remote management tools (e.g., SCCM, Intune) executing shell commands via svchost.exe
- System administrative scripts invoked during patch deployment or automation workflows
- COM-based application launch via /factory flag for legitimate shell extensions
Other platforms for CVE-2026-21510
Testing Methodology
Validate this detection against 4 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 available with Pro.
- Test 1Simulate Shell Spawn from Winlogon Context
Expected signal: Sysmon Event ID 1: cmd.exe process with ParentImage path containing winlogon.exe or SYSTEM session identifier; Windows Security Event 4688 showing cmd.exe process creation under SYSTEM account.
- Test 2Explorer.exe Factory Flag Instantiation
Expected signal: Sysmon Event ID 1: explorer.exe process with CommandLine containing /factory and ParentImage of powershell.exe; corresponding network or registry activity from the new explorer instance.
- Test 3PowerShell Encoded Command via Shell Bypass Chain
Expected signal: Sysmon Event ID 1: powershell.exe with -EncodedCommand in CommandLine, parent cmd.exe; Sysmon Event ID 3: any outbound connection if payload includes network activity.
- Test 4Shell Bypass Followed by Discovery Commands
Expected signal: Sysmon Event IDs 1 for cmd.exe (parent: psexec/SYSTEM), then whoami.exe and ipconfig.exe as children within 30 seconds; all events share the same host identifier.
Unlock Pro Content
Get the full detection package for CVE-2026-21510 including response playbook, investigation guide, and atomic red team tests.