Back to results

O365 OAuth App Mailbox Access via EWS

The following analytic detects when emails are accessed in Office 365 Exchange via Exchange Web Services (EWS) using OAuth-authenticated applications. It leverages the ClientInfoString field to identify EWS…

Description

The following analytic detects when emails are accessed in Office 365 Exchange via Exchange Web Services (EWS) using OAuth-authenticated applications. It leverages the ClientInfoString field to identify EWS interactions and aggregates metrics such as access counts, timing, and client IP addresses, categorized by user, ClientAppId, OperationCount, and AppId. Monitoring OAuth applications accessing emails through EWS is crucial for identifying potential abuse or unauthorized data access. If confirmed malicious, this activity could lead to unauthorized email access, data exfiltration, or further compromise of sensitive information.

Detection logic

Detection requirements

Platform
Office SuiteWindows

The rule states no platform. This is derived from the ATT&CK technique it maps to.

Log source category
o365_mailitemsaccessed

Known benign triggers

  • OAuth applications may access mailboxes for legitimate purposes, you can use the src_ip to add trusted sources to an allow list.

Detections can measure how the public catalogue is used — which detections people look for, and which pages bring them here. It sets a cookie that recognises this browser for 180 days. It is never linked to an account and never follows you to other sites. Privacy notice