LoFP LoFP / administrators grant application and delegated permissions as part of legitimate onboarding and integration work. the new terms logic baselines known administrators; a newly seen user granting permissions, especially from an unusual network, warrants review.

Techniques

Sample rules

Entra ID App Permission Grant by Rare User

Description

Identifies 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.

Detection logic

data_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"
    )