LoFP LoFP / fullaccess mailbox delegation may be assigned for legitimate purposes, filter as needed.

Techniques

Sample rules

O365 Elevated Mailbox Permission Assigned

Description

The following analytic identifies the assignment of elevated mailbox permissions in an Office 365 environment via the Add-MailboxPermission operation. It leverages logs from the Exchange workload in the o365_management_activity data source, focusing on permissions such as FullAccess, ChangePermission, or ChangeOwner. This activity is significant as it indicates potential unauthorized access or control over mailboxes, which could lead to data exfiltration or privilege escalation. If confirmed malicious, attackers could gain extensive access to sensitive email data and potentially manipulate mailbox settings, posing a severe security risk.

Detection logic

`o365_management_activity` Workload=Exchange Operation=Add-MailboxPermission 
| search (AccessRights=FullAccess OR AccessRights=ChangePermission OR AccessRights=ChangeOwner) 
| rename Identity AS dest_user 
| stats count earliest(_time) as firstTime latest(_time) as lastTime by user dest_user Operation AccessRights 
|`security_content_ctime(firstTime)` 
|`security_content_ctime(lastTime)` 
| `o365_elevated_mailbox_permission_assigned_filter`