event.dataset:o365.audit
and event.code:"AzureActiveDirectory"
and event.action:"Add member to role."
and event.outcome: "success"
and o365.audit.ModifiedProperties.Role_DisplayName.NewValue: (
"Global Administrator" or "Company Administrator"
)
and o365.audit.AzureActiveDirectoryEventType: 1
and o365.audit.RecordType: 8
and not o365.audit.Target.Type: (4 or 5 or 6)
Install detection rules in Elastic Security
Detect Microsoft 365 Global Administrator Role Assigned 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).