CVE-2026-21509 Elastic Security · Elastic

Detect Microsoft Office Security Feature Bypass (CVE-2026-21509) in Elastic Security

Detects exploitation of CVE-2026-21509, a security feature bypass vulnerability in Microsoft Office classified under CWE-807 (Reliance on Untrusted Inputs in a Security Decision). This vulnerability is actively exploited in the wild (CISA KEV) and allows attackers to bypass security controls within Office applications, potentially enabling malicious document execution without expected security warnings or Protected View enforcement.

MITRE ATT&CK

Tactic
Initial Access Defense Evasion

Elastic Detection Query

Elastic Security (Elastic)
eql
sequence by host.name with maxspan=5m
  [process where event.action == "start"
    and process.name : ("WINWORD.EXE", "EXCEL.EXE", "POWERPNT.EXE", "OUTLOOK.EXE", "MSPUB.EXE", "ONENOTE.EXE")
  ] by process.entity_id
  [process where event.action == "start"
    and process.parent.name : ("WINWORD.EXE", "EXCEL.EXE", "POWERPNT.EXE", "OUTLOOK.EXE", "MSPUB.EXE", "ONENOTE.EXE")
    and process.name : ("cmd.exe", "powershell.exe", "wscript.exe", "cscript.exe", "mshta.exe", "rundll32.exe", "regsvr32.exe", "certutil.exe", "bitsadmin.exe")
  ] by process.parent.entity_id
high severity medium confidence

EQL sequence detecting a Microsoft Office process followed by a suspicious child process launch within 5 minutes on the same host, indicating possible CVE-2026-21509 exploitation.

Data Sources

Elastic EndpointWinlogbeat with Sysmon

Required Tables

logs-endpoint.events.process-*winlogbeat-*

False Positives & Tuning

  • Legitimate Office macros that invoke PowerShell for business reporting
  • Helpdesk tools using Office and cmd.exe in sequence for support workflows
  • Automated document processing pipelines that use scripting engines
  • Developer testing of Office VSTO or COM add-in projects

Other platforms for CVE-2026-21509


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 available with Pro.

  1. Test 1Office Protected View Bypass via Registry Modification

    Expected signal: Registry write events (Sysmon EventID 13) targeting HKCU\Software\Microsoft\Office\16.0\Word\Security with values DisableProtectedView and VBAWarnings modified

  2. Test 2Office Spawning PowerShell Child Process

    Expected signal: Sysmon EventID 1 / Windows EventID 4688 showing WINWORD.EXE as ParentImage and powershell.exe as child Image with encoded or suspicious command-line arguments

  3. Test 3Office Dropping Executable to Temp Directory

    Expected signal: Sysmon EventID 11 (FileCreate) showing an .exe file written to %TEMP% by an Office-related initiating process; DeviceFileEvents in MDE with InitiatingProcessFileName matching an Office executable

Unlock Pro Content

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

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections