text code block:event.dataset:azure.graphactivitylogs and azure.graphactivitylogs.properties.app_id:* and azure.graphactivitylogs.result_signature:200 and azure.graphactivitylogs.properties.c_idtyp:user and azure.graphactivitylogs.properties.client_auth_method:0 and http.request.method:(DELETE or GET or PATCH or POST or PUT) and ( ( url.path:(/v1.0/me/*cc or /v1.0/users/*) and ( url.path:((*inbox* or *mail* or *messages*) and not *mailboxSettings*) or azure.graphactivitylogs.properties.requestUri:(*inbox* or *mail* or *messages*) ) ) or azure.graphactivitylogs.properties.scopes:(Mail.Read or Mail.ReadWrite or Mail.Send) )
Install detection rules in Elastic Security
Detect Microsoft Graph Request Email Access by Unusual User and Client in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).