Skip to content
CVE-2026-50691 Elastic Security · Elastic

Detect M365 Copilot Improper Authorization Privilege Elevation (CVE-2026-50691) in Elastic Security

Detects potential exploitation of CVE-2026-50691, an improper authorization vulnerability (CWE-285) in Microsoft 365 Copilot that allows an authenticated attacker to elevate privileges over a network (CVSS 9.9). Exploitation manifests as a lower-privileged principal invoking Copilot to access, summarize, or act on resources (SharePoint/OneDrive files, Graph data, Exchange content) beyond their authorized scope. Detection focuses on anomalous Copilot/Graph access patterns in Microsoft 365 audit logs: Copilot interactions resolving to resources the invoking user has no prior access relationship with, cross-tenant or cross-user resource enumeration via Copilot, and privilege-sensitive Graph calls initiated through the Copilot service principal on behalf of non-privileged users. As exploit status is theoretical with no public PoC, the logic is behavior-driven and intended for tuning against your Copilot baseline.

MITRE ATT&CK

Tactic
Privilege Escalation Discovery Collection

Elastic Detection Query

Elastic Security (Elastic)
eql
// df00tech DF00-f49be162c5 · https://df00tech.com/detections/CVE-2026-50691 · licence: https://df00tech.com/detections/licence
sequence by o365.audit.UserId with maxspan=1h
  [ any where event.dataset == "o365.audit" and o365.audit.Workload == "Copilot" and o365.audit.Operation in ("CopilotInteraction", "AISummarize") ]
  [ any where event.dataset == "o365.audit" and o365.audit.Operation in ("FileAccessed", "FileAccessedByCopilot", "FileDownloaded") and o365.audit.UserId != o365.audit.OwnerId ]
high severity medium confidence

Elastic EQL sequence correlating a Copilot interaction followed by access to resources not owned by the invoking user within one hour, a candidate pattern for CVE-2026-50691 improper-authorization elevation.

Data Sources

Elastic Integration: Microsoft 365o365.audit

Required Tables

logs-o365.audit-*

False Positives & Tuning

  • Legitimate access to shared or team-owned documents where OwnerId differs from the user
  • Delegated access scenarios (shared mailboxes, SharePoint site collections)
  • Users with broad organizational roles accessing many non-owned files routinely
  • Copilot summarizing content the user was legitimately granted access to

Other platforms for CVE-2026-50691


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 Simulate Copilot cross-user resource access via Graph

    Expected signal: Multiple O365 audit events with FileAccessed/FileAccessedByCopilot operations where UserId differs from OwnerId within one hour.

  2. Test 2 Bulk Copilot summarization of non-owned SharePoint documents

    Expected signal: O365 audit CopilotInteraction/AISummarize events referencing multiple distinct ObjectIds not owned by the invoking user.

  3. Test 3 Rapid distinct-resource enumeration through Copilot interaction

    Expected signal: 20 distinct CopilotInteraction audit events within one hour with varying ObjectId/OwnerId values.

Last updated: Research depth: standard
References (1)

Response Playbook

Triage

  1. Confirm the flagged UserId and enumerate the distinct non-owned resources (ObjectId/SharePoint path/mailbox) the account accessed via Copilot in the detection window.
  2. Determine the user's actual authorized scope: review their directory roles, group memberships, and explicit resource permissions in Entra ID/SharePoint, and compare against the accessed resources.
  3. Check whether the resources are sensitive (executive mailboxes, HR/finance SharePoint sites, admin content) and whether access was read, summarized, or acted upon.
  4. Correlate the ClientIP, device, and session for the Copilot interactions to establish whether the session is consistent with the legitimate user or shows signs of compromise (impossible travel, new device, risky sign-in).

Containment

  1. If unauthorized access is confirmed, revoke the user's active sessions (Entra ID 'revoke sessions') and disable the account pending investigation.
  2. Restrict or temporarily disable M365 Copilot access for the implicated user/group via the Copilot admin controls while Microsoft's fix is validated.
  3. Apply conditional access / least-privilege remediation to tighten permissions on the exposed sensitive resources.

Evidence Collection

  1. Export the full Unified Audit Log records for the user's Copilot and file-access operations, including RawEventData, ObjectId, OwnerId, ClientIP, and timestamps.
  2. Capture Entra ID sign-in and risk logs and the Copilot interaction transcripts/prompts if available via audit, preserving them with chain-of-custody.
  3. Snapshot current permissions on the affected resources and the user's role assignments before applying remediation, to document the authorization gap.

Escalation Criteria

  • !Escalate to incident response if the accessed resources contain regulated or highly sensitive data, or if access extended across multiple users' private content.
  • !Escalate to Microsoft/MSRC and apply emergency controls if the pattern confirms authorization bypass consistent with CVE-2026-50691 rather than legitimate delegated access.
  • !Escalate to legal/compliance if cross-tenant data access or a reportable data breach is indicated.

Investigation Guide

Forensic Artifacts

  • >Microsoft 365 Unified Audit Log records with Workload=Copilot, ObjectId, OwnerId, and ClientIP
  • >Entra ID sign-in and risk detection logs for the implicated session
  • >Copilot interaction/prompt audit records and SharePoint/OneDrive FileAccessed events for the non-owned resources

Tuning Guidance

Build a per-user baseline lookup of resources normally accessed and exclude known broad-access roles (admins, compliance, eDiscovery, executive delegates) via an allowlist. Adjust the new_resources threshold to your tenant size and Copilot adoption. Because OwnerId may be empty for some resource types, verify field population before relying on the UserId!=OwnerId condition, and consider scoping to sensitive site collections and mailboxes to raise precision. As this CVE is theoretical with no PoC, treat alerts as leads for authorization review rather than confirmed exploitation.


Hunting Queries

Hunts over 30 days for users who accessed an outsized number of non-owned resources via Copilot, surfacing slow-and-low improper-authorization abuse that a 1-hour rule would miss.

Hunting — KQL
kql
// df00tech DF00-f49be162c5 · https://df00tech.com/detections/CVE-2026-50691 · licence: https://df00tech.com/detections/licence
CloudAppEvents | where Timestamp > ago(30d) | where Application has "Copilot" | extend AccountId = tostring(RawEventData.UserId), Resource = tostring(RawEventData.ObjectId), Owner = tostring(RawEventData.OwnerId) | where isnotempty(Owner) and Owner != AccountId | summarize NonOwnedAccessed = dcount(Resource) by AccountId | where NonOwnedAccessed > 25 | order by NonOwnedAccessed desc
Hunting — SPL
spl
``` df00tech DF00-f49be162c5 · https://df00tech.com/detections/CVE-2026-50691 · licence: https://df00tech.com/detections/licence ```
index=o365 sourcetype=o365:management:activity Workload=Copilot earliest=-30d | eval resource=ObjectId | where UserId!=OwnerId | stats dc(resource) as non_owned by UserId | where non_owned>25 | sort - non_owned

Atomic Red Team Tests

Test 1 Simulate Copilot cross-user resource access via Graph
windows

Uses a low-privileged test account to request, via Microsoft Graph/Copilot APIs, content owned by a different user to generate Copilot audit telemetry for detection validation (lab tenant only).

Command

powershell
powershell -Command "Connect-MgGraph -Scopes 'Files.Read.All'; 1..15 | ForEach-Object { try { Invoke-MgGraphRequest -Method GET -Uri \"https://graph.microsoft.com/v1.0/users/[email protected]/drive/root/children\" } catch { Write-Host $_.Exception.Message } }"

Cleanup

powershell
powershell -Command "Disconnect-MgGraph"

Expected Telemetry

Multiple O365 audit events with FileAccessed/FileAccessedByCopilot operations where UserId differs from OwnerId within one hour.

Expected Detection

The KQL/SPL rule fires when the test account accesses >=10 distinct non-owned resources within the window.

Test 2 Bulk Copilot summarization of non-owned SharePoint documents
linux

Drives repeated Copilot summarize actions against SharePoint documents owned by other users to emulate improper-authorization data harvesting (lab tenant only).

Command

bash
for i in $(seq 1 15); do curl -s -X POST "https://graph.microsoft.com/v1.0/copilot/summarize" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d "{\"resourceId\":\"site-doc-$i\"}"; done

Cleanup

bash
unset TOKEN

Expected Telemetry

O365 audit CopilotInteraction/AISummarize events referencing multiple distinct ObjectIds not owned by the invoking user.

Expected Detection

The detection groups the user's non-owned resource access and alerts once the distinct-resource threshold is exceeded.

Test 3 Rapid distinct-resource enumeration through Copilot interaction
macos

Issues a burst of distinct Copilot interactions referencing resources across multiple owners to validate the rate/distinct-count threshold logic (lab tenant only).

Command

bash
for i in $(seq 1 20); do curl -s -X POST "https://graph.microsoft.com/v1.0/copilot/interactions" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d "{\"prompt\":\"summarize file owner-$i\",\"objectId\":\"obj-$i\"}"; done

Cleanup

bash
unset TOKEN

Expected Telemetry

20 distinct CopilotInteraction audit events within one hour with varying ObjectId/OwnerId values.

Expected Detection

The rule alerts because distinct non-owned resources (>=10) are accessed within the correlation window.

Related Detections