CVE-2026-21513 Google Chronicle · YARA-L

Detect CVE-2026-21513 — Microsoft MSHTML Framework Protection Mechanism Failure in Google Chronicle

Detects exploitation of CVE-2026-21513, a protection mechanism failure (CWE-693) in the Microsoft MSHTML framework on Windows. This KEV-listed vulnerability allows attackers to bypass security controls implemented in MSHTML, potentially enabling code execution via crafted web content processed by Internet Explorer compatibility components, Microsoft Office documents embedding web content, or applications using the WebBrowser control. Active exploitation has been confirmed by CISA.

MITRE ATT&CK

Tactic
Initial Access Execution Defense Evasion

YARA-L Detection Query

Google Chronicle (YARA-L)
yaral
rule cve_2026_21513_mshtml_exploitation {
  meta:
    author = "df00tech Detection Engineering"
    description = "Detects CVE-2026-21513 MSHTML protection mechanism bypass exploitation"
    severity = "HIGH"
    priority = "HIGH"
    reference = "https://msrc.microsoft.com/update-guide/advisory/CVE-2026-21513"

  events:
    $proc.metadata.event_type = "PROCESS_LAUNCH"
    $proc.principal.process.file.full_path = /(?i)(winword|excel|powerpnt|outlook|mspub|msaccess|onenote)\.exe$/
    $proc.target.process.file.full_path = /(?i)(cmd|powershell|wscript|cscript|mshta|rundll32|regsvr32)\.exe$/
    $proc.principal.hostname = $host
    $proc.principal.user.userid = $user

    $net.metadata.event_type = "NETWORK_CONNECTION"
    $net.principal.process.file.full_path = /(?i)(mshta|dllhost)\.exe$/
    not $net.target.ip = /^(10\.|172\.(1[6-9]|2[0-9]|3[01])\.|192\.168\.|127\.)/
    $net.principal.hostname = $host

  match:
    $host, $user over 10m

  condition:
    $proc and $net
}
high severity high confidence

Chronicle YARA-L rule correlating Office application child process spawning with external network connections from MSHTML-related processes within a 10-minute window on the same host, detecting CVE-2026-21513 exploitation chains.

Data Sources

Chronicle UDMGoogle Workspace Audit LogsWindows Event Logs via Chronicle Forwarder

Required Tables

UDM Events

False Positives & Tuning

  • Legitimate business workflows using Office macros that make authorized external API calls
  • IT monitoring agents running within Office process context for compliance purposes
  • Vendor-provided Office integrations that use MSHTML for rendering vendor portals
  • Automated report generation systems that fetch data from external services via Office

Other platforms for CVE-2026-21513


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.

  1. Test 1MSHTML MkNode Method Invocation via mshta.exe

    Expected signal: Sysmon Event ID 1 showing mshta.exe spawning cmd.exe; Sysmon Event ID 7 showing mshtml.dll and vbscript.dll loaded by mshta.exe; Process creation events in Windows Security Log (Event ID 4688)

  2. Test 2Office Document Spawning Scripting Engine via MSHTML

    Expected signal: Process creation events showing WINWORD.EXE as parent of cmd.exe or powershell.exe; MSHTML DLL load events in Sysmon EventID 7 for the Office process; Network events if payload attempts callback

  3. Test 3rundll32.exe MSHTML Script Execution via ieframe.dll

    Expected signal: Sysmon Event ID 1 for rundll32.exe execution; Event ID 7 showing ieframe.dll and mshtml.dll loaded by rundll32.exe; Any network connections initiated by the rundll32.exe process to external hosts

  4. Test 4PowerShell WebBrowser COM Object MSHTML Load

    Expected signal: PowerShell process creation event; mshtml.dll loaded into powershell.exe process space (Sysmon Event ID 7); Potential network connection if URL is replaced with live payload URL

Unlock Pro Content

Get the full detection package for CVE-2026-21513 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections