Elastic low stable kql
M365 Exchange Mailbox High-Risk Permission Delegated
Identifies the assignment of rights to access content from another mailbox. An adversary may use the compromised account to send messages to other accounts in the network of the target organization while creating inbox rules, so messages can evade spam/phishing detection mechanisms.
Detection Logic
data_stream.dataset: "o365.audit" and
event.provider: "Exchange" and
event.outcome: "success" and
not o365.audit.UserType : (3 or 4) and
(
(event.action: "Add-MailboxPermission" and o365.audit.Parameters.AccessRights: "FullAccess") or
(event.action: "Add-RecipientPermission" and o365.audit.Parameters.AccessRights: "SendAs") or
(event.action: "Set-Mailbox" and o365.audit.Parameters.GrantSendOnBehalfTo: *)
) and
not user.id:(
"NT AUTHORITY\SYSTEM (Microsoft.Exchange.ServiceHost)" or
"NT AUTHORITY\SYSTEM (Microsoft.Exchange.AdminApi.NetCore)" or
"NT AUTHORITY\SYSTEM (w3wp)"
) False Positives
- ⚠ Assignment of rights to a service account.
- ⚠ Delegation by first-party applications that require mailbox access.
Field Validations
Loading…
Comments (0)
Loading comments...