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: (GET or POST or PUT or PATCH or DELETE) and (
url.path: (/v1.0/me/*cc or /v1.0/users/*) and
(
url.path: (*mail* or *messages* or *inbox*) or
azure.graphactivitylogs.properties.requestUri: (*mail* or *messages* or *inbox*)
) or
azure.graphactivitylogs.properties.scopes: (
"Mail.Read" or "Mail.ReadWrite" or "Mail.Send" or "email"
)
)
Install detection rules in Elastic Security
Detect Suspicious Email Access by First-Party Application via Microsoft Graph 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(opens in a new tab or window).