Entra ID App Permission Grant by Rare User
editEntra ID App Permission Grant by Rare User
editIdentifies the first time, within a lookback window, a user grants application permissions in Entra ID ("Add app role assignment to service principal" or "Add delegated permission grant"). Adversaries abuse application role assignments and delegated permission grants to obtain durable, token-based access to tenant data without requiring interactive consent. This is a New Terms rule keyed on the granting user; known cloud-provider egress networks are excluded.
Rule type: new_terms
Rule indices:
- logs-azure.auditlogs-*
Severity: medium
Risk score: 47
Runs every: 5m
Searches indices from: now-6m (Date Math format, see also Additional look-back time)
Maximum alerts per execution: 100
References:
Tags:
- Domain: Cloud
- Data Source: Azure
- Data Source: Microsoft Entra ID
- Data Source: Microsoft Entra ID Audit Logs
- Domain: Identity
- Platform: Azure
- Tactic: Persistence
- Rule Type: New Terms
- Resources: Investigation Guide
Version: 1
Rule authors:
- Elastic
Rule license: Elastic License v2
Investigation guide
editTriage and analysis
Investigating Entra ID App Permission Grant by Rare User
Direct application role assignments (Add app role assignment to service principal) and OAuth delegated permission grants (Add delegated permission grant) hand service principals standing access to tenant resources without requiring an interactive "Consent to application" flow. Adversaries with privileged roles or application ownership abuse these operations for persistence and data access.
Possible investigation steps
-
Confirm the initiating user (
azure.auditlogs.properties.initiated_by.user.userPrincipalName) and whether the permission grant (event.action) was expected. -
Identify the target service principal or application (
azure.auditlogs.properties.target_resources.0.display_name) and the permissions, roles, or scopes granted (modified_properties). -
Review
source.as.organization.nameandsource.ip; permission grants from an unusual or residential network warrant scrutiny. -
Determine whether the grant gives tenant-wide access (
PrincipalId/ConsentType: AllPrincipalsor high-privilege Graph app roles) and whether the app is first-party or third-party.
False positive analysis
- Legitimate admin onboarding/integration permission grants; add exceptions by initiating UPN or known application/service-principal IDs.
Response and remediation
- If unauthorized, revoke the app role assignment or delegated permission grant and service-principal credentials, review data accessed via the app, and rotate the initiating user’s credentials.
Rule query
editdata_stream.dataset: "azure.auditlogs"
and event.action: ("Add app role assignment to service principal" or "Add delegated permission grant")
and event.outcome: "success"
and not source.as.organization.name: (
"Google LLC" or "Amazon.com, Inc." or "Microsoft Corporation" or "GOOGLE-CLOUD-PLATFORM"
or "MICROSOFT-CORP-MSN-AS-BLOCK" or "AMAZON-AES" or "AMAZON-02"
)
Framework: MITRE ATT&CKTM
-
Tactic:
- Name: Persistence
- ID: TA0003
- Reference URL: https://attack.mitre.org/tactics/TA0003/
-
Technique:
- Name: Account Manipulation
- ID: T1098
- Reference URL: https://attack.mitre.org/techniques/T1098/
-
Sub-technique:
- Name: Additional Cloud Roles
- ID: T1098.003
- Reference URL: https://attack.mitre.org/techniques/T1098/003/