Hunting Privileged Role Escalations (Global Admin & Exchange Admin) in Entra Logs
When an intruder elevates a compromised user or service principal to Global Administrator, Exchange Administrator, or Application Administrator, Entra ID and Purview UAL emit "Add member to role" (permanent active grant) or "Add eligible member to role" (PIM eligibility grant). AuditVane rule AV-011 immediately flags all directory role mutations as Critical.
Why This Artifact Matters in M365 Incident Response
Privilege escalation in Microsoft 365 requires zero kernel exploits or malware. Compromising a single Privileged Role Administrator, Global Administrator, or misconfigured automation Service Principal lets an attacker grant Global Administrator or Exchange Administrator to a dormant test user or backdoor service principal in one API call.
Even more subtly, attackers operating inside PIM-enabled organizations grant themselves *eligible* (dormant) role assignments rather than permanent active assignments so they stay invisible in standard active Global Admin exports until they choose to activate.
Monitor both Entra Directory Audit Logs and Purview UAL (RecordType 8) for `Add member to role`, `Add eligible member to role`, `Add scoped member to role`, and `Add member to role outside of PIM`. Inside `ModifiedProperties` or `Target`, look for `Role.DisplayName`—specifically Tier-0 roles capable of escalating or capturing data across the tenant.
Tier-0 Entra roles aren’t limited to Global Administrator: Privileged Role Administrator can assign Global Admin, Exchange Administrator can grant FullAccess/Transport Rules across every mailbox, Application Administrator can inject secrets onto privileged apps, and Authentication Administrator can reset MFA/TAP on non-Tier-0 targets.
Real-World Incident Walkthrough
After hijacking a contractor’s Entra session (`104.28.221.14`), the attacker discovers the contractor holds an unguarded Privileged Role Administrator assignment. At 19:05 UTC, the attacker assigns Exchange Administrator permanently to `svc-backup-sync@contoso-demo.invalid`, then uses that service account four minutes later to trigger a tenant-wide eDiscovery search.
Dropping the Purview UAL CSV into AuditVane triggers `AV-011` (Critical: `Add member to role -> Exchange Administrator`) and `AV-012` (`New-ComplianceSearchAction`) side by side, linking both steps cleanly to the same IP.
Forensic Telemetry Fields & High-Signal Indicators
| Telemetry Field / Pattern | Meaning in M365 / Entra | High-Signal Threat Indicator |
|---|---|---|
Add member to role | Permanent active Entra directory role assignment | Critical if target role is Tier-0 (AV-011) |
Add eligible member to role | PIM eligibility backdoor assignment | Stealthier persistence—can activate later on demand |
Add scoped member to role | Administrative Unit-scoped role grant | Verify scope boundaries (e.g., AU vs. "/" root) |
ModifiedProperties -> Role.DisplayName | Exact human name of granted Entra role | Watch Global, Priv Role, Exchange, App, Auth Admin |
Target[].ID / userPrincipalName | Account or Service Principal receiving privilege | Investigate recipient account immediately |
DirectoryScopeId = "/" | Tenant-wide directory scope | Indicates unrestricted cross-tenant authority |
High-Impact Entra Directory Roles & Attack Capabilities
| Entra Role Name | What an Attacker Gains Immediately | AuditVane Detection |
|---|---|---|
| Global Administrator | Complete control over Entra, M365, Azure & eDiscovery | AV-011 Critical (`Add member to role`) |
| Privileged Role Administrator | Can promote any user/SP to Global Administrator | AV-011 Critical + PIM setting alerts |
| Exchange Administrator | FullAccess to all mailboxes, Transport Rules & Forwarding | AV-011 Critical + AV-008 forwarding |
| Application / Cloud App Admin | Inject secrets onto existing apps & grant OAuth consent | AV-011 Critical + AV-005 app alerts |
| Authentication Administrator | Reset passwords, clear MFA, issue Temporary Access Passes | AV-011 Critical + AV-004 MFA alerts |
Privileged Role Grant in Purview UAL AuditData
{
"CreationTime": "2026-12-03T19:05:44Z",
"Operation": "Add member to role",
"RecordType": 8,
"Workload": "AzureActiveDirectory",
"UserId": "it.contractor@contoso-demo.invalid",
"ClientIP": "104.28.221.14",
"Target": [{ "ID": "svc-backup-sync@contoso-demo.invalid" }],
"ModifiedProperties": [{ "Name": "Role.DisplayName", "NewValue": "Exchange Administrator" }]
}
Here `UserId` (`it.contractor`) granted `Exchange Administrator` (`ModifiedProperties.Role.DisplayName`) to a completely different service account (`svc-backup-sync`)—classic lateral privilege persistence.
Audit All Permanent & PIM-Eligible Entra Role Assignments via Graph
Connect-MgGraph -Scopes "RoleManagement.Read.Directory"
# 1. Active / Permanent role assignments:
Get-MgRoleManagementDirectoryRoleAssignment -All | ForEach-Object {
$role = (Get-MgRoleManagementDirectoryRoleDefinition -UnifiedRoleDefinitionId $_.RoleDefinitionId).DisplayName
[PSCustomObject]@{ Role = $role; PrincipalId = $_.PrincipalId; Scope = $_.DirectoryScopeId }
} | Sort-Object Role
# 2. PIM Eligible role assignments (catches dormant backdoors!):
Get-MgRoleManagementDirectoryRoleEligibilitySchedule -All | Format-Table PrincipalId, RoleDefinitionId, Status, DirectoryScopeId
Sample Active Directory Role Audit Output
Role PrincipalId Scope
---- ----------- -----
Exchange Administrator svc-backup-sync-guid / <-- VERIFY!
Global Administrator bg-emerg-9941-guid /
Step-by-Step Triage, Containment & Verification
- Drop Entra Directory Audit JSON or Purview UAL CSV into AuditVane and click AV-011 Critical findings.
- Inspect `Role.DisplayName`, `Target`, and `UserId` inside AuditVane’s Event Inspector.
- Sweep BOTH active role assignments (`Get-MgRoleManagementDirectoryRoleAssignment`) AND PIM eligible assignments (`Get-MgRoleManagementDirectoryRoleEligibilitySchedule`).
- Also audit Role-Assignable Security Groups (`isAssignableToRole eq true`), because adding a user into a role-assignable group logs `Add member to group` rather than `Add member to role`!
- Remove unauthorized permanent/eligible assignments immediately and reset + revoke tokens on BOTH the initiating admin and the newly elevated account.
- Audit Azure Subscription IAM (`User Access Administrator` toggle in Entra Properties) to confirm the compromised Global Admin did not elevate into Azure cloud VMs or Sentinel.
How to Verify Containment Completed Cleanly
- Active and PIM-eligible Global/Privileged/Exchange/App Admin lists reconciled 100% against approved IAM records.
- Role-assignable Entra groups audited for unauthorized memberships.
- Entra Azure-subscription "Access management for Azure resources" switch verified disabled.
Analyst Blind Spots, Licensing Quirks & False Positives
A classic detection blind spot: **Role-Assignable Groups**! If an organization grants Global Admin or Exchange Admin to an Entra group (`isAssignableToRole = true`), adding an attacker to that group emits `Add member to group` rather than `Add member to role`—always include role-assignable group IDs in your SIEM monitoring.
Also remember that a Global Administrator can flip "Access management for Azure resources" on inside Entra Properties to grant themselves `User Access Administrator` over every Azure subscription.
Frequently Asked Questions
Why watch Add eligible member to role as closely as permanent assignments?
Because attackers add themselves as PIM Eligible to hide from standard active-admin checks and activate Global Admin only when ready to strike.
Does Purview UAL log Entra role escalations?
Yes, RecordType 8 (AzureActiveDirectory) retains Entra role additions and removals in Purview UAL for 180 days.
Can adding someone to an Entra group grant Global Admin?
Yes, if the group has isAssignableToRole enabled and holds a directory role—so monitor membership changes on all role-assignable groups.
Does AuditVane catch role escalations automatically?
Yes! Rule AV-011 triggers Critical on Add member to role, Add eligible member to role, Update role setting, and Reset user password.