AuditLogs in Content Hub rules
109 rules read AuditLogs · table guide.
Filtered columns
OperationNameConsent to application7Add delegated permission grant6Update conditional access policy6Update user6Add app role assignment to service principal5Invite external user5 +51 moreCategoryRoleManagement21ApplicationManagement16UserManagement6AzureRBACRoleManagementElevateAccess1Resultsuccess32ActivityDisplayNameAdd eligible member to role10Add member to role10Add member to role request denied (PIM activation)3Remove eligible member from role2Remove member from role2Add app role assignment to service principal1 +19 moreLoggedByServiceCore Directory11Authentication Methods1PIM1AADOperationTypeAssign10AssignEligibleRole8CreateRequestGrantedRole2CreateRequestPermanentEligibleRole2CreateRequestPermanentGrantedRole2RemoveEligibleRole2 +3 moreTargetResourcesoffline2-PRIV1Administrator1AppAddress1AppIdentifierUri1Security1 +3 moreInitiatedBy.app.displayName@5InitiatedBy.user.userPrincipalName@5IdentityMicrosoft Invitation Acceptance Portal1 +2 moreResultReasonAdmin registered temporary access pass method for user1 +1 moreSourceSystemAzure AD2AdditionalDetails.keyUserPrincipalName1TargetResources.modifiedProperties.displayNameAcceptedAs1TargetResources.modifiedProperties.newValueUse Exchange Web Services with full access to all mailboxes1TargetResources.userPrincipalNameEXT1
Joined with
itselfSigninLogsBehaviorAnalytics- a computed table
AADServicePrincipalSignInLogsPowerPlatformAdminActivitySecurityAlertIdentityInfoAADNonInteractiveUserSignInLogsOfficeActivityThreatIntelIndicatorsThreatIntelligenceIndicator
Parsing
split on InitiatedBy.user.userPrincipalName47
1 2 4 5 6 7 11 14 20 21 22 23 41 42 48 49 50 51 52 53 54 55 56 57 59 60 61 62 63 64 65 66 67 68 73 74 75 76 78 79 80 82 84 92 103 105 107
parse_json on TargetResources5
parse_json on InitiatedBy4
split on InitiatedBy2
split on TargetResources.userPrincipalName1
todynamic on TargetResources1
Entity mappings
Account.AadUserId ← InitiatingAadUserId40
2 3 4 5 6 7 8 9 11 20 23 41 42 46 48 59 60 61 62 63 64 66 67 68 69 72 73 74 75 76 77 78 79 80 82 84 89 90 91 92
Account.FullName ← InitiatingUserPrincipalName39
2 3 4 5 6 7 8 9 11 20 23 41 42 46 48 59 60 61 62 63 64 66 67 68 69 72 73 74 75 76 77 78 80 82 84 89 90 91 92
Account.AadUserId ← InitiatingAppServicePrincipalId31
3 9 11 41 42 46 48 59 60 61 62 63 64 66 67 68 69 72 73 74 75 76 77 78 80 82 84 89 90 91 92
IP.Address ← InitiatingIpAddress29
28 41 42 46 48 59 60 61 62 63 64 66 67 68 69 72 73 74 75 76 77 78 80 82 84 89 90 91 92
Account.UPNSuffix ← InitiatingAccountUPNSuffix23
2 3 4 5 6 7 8 9 11 12 13 20 23 41 42 46 48 59 60 61 62 63 64
Account.FullName ← TargetUserPrincipalName12
- Changes to Application Ownership
- Guest Users Invited to Tenant by New Inviters
- Account Elevated to New Role
- User Added to Admin Role
- Account Created and Deleted in Short Timeframe
- Bulk Changes to Privileged Account Permissions
- NRT PIM Elevation Request Rejected
- NRT Privileged Role Assigned Outside PIM
- NRT User added to Microsoft Entra ID Privileged Groups
- PIM Elevation Request Rejected
- Privileged Role Assigned Outside PIM
- User added to Microsoft Entra ID Privileged Groups
Account.Name ← Name12
- End-user consent to app with mailbox and offline access delegated scopes
- full_access_as_app Granted To Application
- First access credential added to Application or Service Principal where no credential was present
- Guest accounts added in Entra ID Groups other than the ones specified
- Mail.Read Permissions Granted to Application
- Suspicious application consent similar to O365 Attack Toolkit
- Suspicious application consent similar to PwnAuth
- NRT Modified domain federation trust settings
- New access credential added to Application or Service Principal
- Rare application consent
- Suspicious application consent for offline access
- Threat Essentials - Multiple admin membership removals from newly created admin.
Account.Name ← InitiatedByName9
- Multiple admin membership removals from newly created admin.
- NRT New access credential added to Application or Service Principal
- NRT PIM Elevation Request Rejected
- NRT Privileged Role Assigned Outside PIM
- NRT User added to Microsoft Entra ID Privileged Groups
- PIM Elevation Request Rejected
- Privileged Role Assigned Outside PIM
- Suspicious Entra ID Joined Device Update
- NRT First access credential added to Application or Service Principal where no credential was present
Account.Name ← accountName9
- Conditional Access - A Conditional Access Device platforms condition has changed (the Device platforms condition can be spoofed)
- Conditional Access - A Conditional Access app exclusion has changed
- Conditional Access - A Conditional Access policy was deleted
- Conditional Access - A Conditional Access policy was disabled
- Conditional Access - A Conditional Access policy was put into report-only mode
- Conditional Access - A Conditional Access policy was updated
- Conditional Access - A Conditional Access user/group/role exclusion has changed
- Conditional Access - A new Conditional Access policy was created
- Conditional Access - Dynamic Group Exclusion Changes
Account.UPNSuffix ← InitiatedByUPNSuffix9
- Multiple admin membership removals from newly created admin.
- NRT New access credential added to Application or Service Principal
- NRT PIM Elevation Request Rejected
- NRT Privileged Role Assigned Outside PIM
- NRT User added to Microsoft Entra ID Privileged Groups
- PIM Elevation Request Rejected
- Privileged Role Assigned Outside PIM
- Suspicious Entra ID Joined Device Update
- NRT First access credential added to Application or Service Principal where no credential was present
Account.UPNSuffix ← upnSuffix9
- Conditional Access - A Conditional Access Device platforms condition has changed (the Device platforms condition can be spoofed)
- Conditional Access - A Conditional Access app exclusion has changed
- Conditional Access - A Conditional Access policy was deleted
- Conditional Access - A Conditional Access policy was disabled
- Conditional Access - A Conditional Access policy was put into report-only mode
- Conditional Access - A Conditional Access policy was updated
- Conditional Access - A Conditional Access user/group/role exclusion has changed
- Conditional Access - A new Conditional Access policy was created
- Conditional Access - Dynamic Group Exclusion Changes
IP.Address ← InitiatingIPAddress9
- Application ID URI Changed
- Application Redirect URL Update
- Changes to Application Logout URL
- Changes to PIM Settings
- Conditional Access Policy Modified by New User
- Guest Users Invited to Tenant by New Inviters
- Suspicious linking of existing user to external User
- User Account Created Using Incorrect Naming Format
- Account Elevated to New Role
Account.Name ← TargetAccountName8
- Changes to Application Ownership
- Guest Users Invited to Tenant by New Inviters
- Suspicious linking of existing user to external User
- User Account Created Using Incorrect Naming Format
- User State changed from Guest to Member
- User account created without expected attributes defined
- Account Elevated to New Role
- User Added to Admin Role
Account.FullName ← Source_Identity_FullName7
- [Entra ID] Application Assigned Administrator Permissions Immediately After Obtaining Role Management Permissions
- [Entra ID] Application Granted Administrative Permission to Assign Microsoft Entra ID Roles
- [Entra ID] Domain Federation Trust Settings Modified
- [Entra ID] Mass Privileged Role Change Activity Detected
- [Entra ID] Privilege Elevation Request Denied
- [Entra ID] Privileged Role Assigned to User
- [Entra ID] Privileged Role Assigned to a New User
Account.UPNSuffix ← TargetAccountUPNSuffix7
IP.Address ← Source_Network_IPAddress6
- [Entra ID] Application Granted Administrative Permission to Assign Microsoft Entra ID Roles
- [Entra ID] Domain Federation Trust Settings Modified
- [Entra ID] Mass Privileged Role Change Activity Detected
- [Entra ID] Privilege Elevation Request Denied
- [Entra ID] Privileged Role Assigned to User
- [Entra ID] Privileged Role Assigned to a New User
AzureResource.ResourceId ← ResourceId5
Account.AadUserId ← GrantInitiatedByAadUserId4
Account.FullName ← Target4
Account.FullName ← Target_Identity_FullName4
Account.Name ← AccountName4
Account.Name ← InitiatorName4
Account.UPNSuffix ← InitiatorUPNSuffix4
IP.Address ← GrantIpAddress4
Account.AadUserId ← GrantInitiatedByAppServicePrincipalId3
Account.AadUserId ← TargetAadUserId3
Account.FullName ← GrantInitiatedByUserPrincipalName3
Account.UPNSuffix ← AccountUPNSuffix3
IP.Address ← IpAddress3
Account.FullName ← InitiatedBy2
Account.Name ← UserName2
CloudApplication.Name ← AppDisplayName2
CloudApplication.Name ← Target_Identity_FullName2
Account.AadUserId ← AppServicePrincipalId1
Account.AadUserId ← Consent_InitiatingAadUserId1
Account.AadUserId ← Consent_InitiatingAppServicePrincipalId1
Account.AadUserId ← CreatedByAadUserId1
Account.AadUserId ← CreatingAadUserId1
Account.AadUserId ← Credential_InitiatingAadUserId1
Account.AadUserId ← Credential_InitiatingAppServicePrincipalId1
Account.AadUserId ← DeletedByAadUserId1
Account.AadUserId ← InitiatingSPID1
Account.AadUserId ← InitiatorAadUserId1
Account.AadUserId ← PermissionGrant_InitiatingAadUserId1
Account.AadUserId ← RoleAssignment_InitiatingAadUserId1
Account.AadUserId ← TargetAppServicePrincipalId1
Account.AadUserId ← UpdatingServicePrincipalId1
Account.AadUserId ← UpdatingUserAadUserId1
Account.FullName ← AddedUser1
Account.FullName ← Consent_InitiatingUserPrincipalName1
Account.FullName ← CreatedByUserPrincipalName1
Account.FullName ← CreatedUserPrincipalName1
Account.FullName ← CreatingUserPrincipalName1
Account.FullName ← Credential_InitiatingUserPrincipalName1
Account.FullName ← DeletedByUserPrincipalName1
Account.FullName ← InitiatingUser1
Account.FullName ← InvitedUserPrincipalName1
Account.FullName ← PermissionGrant_InitiatingUserPrincipalName1
Account.FullName ← RoleAssignment_InitiatingUserPrincipalName1
Account.FullName ← TargetUPN_oldValue1
Account.FullName ← UpdatedUserPrincipalName1
Account.FullName ← UpdatingUserPrincipalName1
Account.Name ← Actor1
Account.Name ← AdminInitiatorName1
Account.Name ← AppDisplayName1
Account.Name ← Consent_AccountName1
Account.Name ← Consent_InitiatingAppName1
Account.Name ← CreatedByName1
Account.Name ← Credential_AccountName1
Account.Name ← Credential_InitiatingAppName1
Account.Name ← DeletedByName1
Account.Name ← ExternalUserName1
Account.Name ← FirstInitiatedByUserName1
Account.Name ← Identity1
Account.Name ← InvitedUserName1
Account.Name ← PermissionGrant_InitiatingAccountName1
Account.Name ← RoleAssignment_InitiatingAccountName1
Account.Name ← TargetAppDisplayName1
Account.Name ← UpdatingAppName1
Account.UPNSuffix ← AdminInitiatorUPNSuffix1
Account.UPNSuffix ← Consent_UPNSuffix1
Account.UPNSuffix ← CreatedByUPNSuffix1
Account.UPNSuffix ← Credential_UPNSuffix1
Account.UPNSuffix ← DeletedByUPNSuffix1
Account.UPNSuffix ← ExternalUserUPNSuffix1
Account.UPNSuffix ← FirstInitiatedByUPNSuffix1
Account.UPNSuffix ← InvitedUPNSuffix1
Account.UPNSuffix ← PermissionGrant_InitiatingAccountUPNSuffix1
Account.UPNSuffix ← RoleAssignment_InitiatingAccountUPNSuffix1
CloudApplication.AppId ← CloudAppId1
CloudApplication.AppId ← InitiatingAppId1
CloudApplication.Name ← AppName1
CloudApplication.Name ← CloudApplicationName1
CloudApplication.Name ← InitiatingAppName1
CloudApplication.Name ← TargetResourceName1
CloudApplication.Name ← targetDisplayName1
DNS.DomainName ← DomainAdded1
Host.AzureID ← DeviceId1
Host.HostName ← NewDeviceName1
Host.HostName ← OldDeviceName1
IP.Address ← ActorIPAddress1
IP.Address ← Consent_InitiatingIpAddress1
IP.Address ← CreatedByIPAddress1
IP.Address ← CreatingUserIPAddress1
IP.Address ← Credential_InitiatingIpAddress1
IP.Address ← DeletedByIPAddress1
IP.Address ← IPAddress1
IP.Address ← InitiatingIp1
IP.Address ← UpdatingUserIPAddress1
SecurityGroup.DistinguishedName ← AADGroup1
SecurityGroup.ObjectGuid ← AADGroupId1
URL.Url ← AddedUrls1
URL.Url ← NewURI1
URL.Url ← NewURL1
URL.Url ← OldURI1
URL.Url ← OldURL1
ATT&CK techniques of these rules
T1078.004 45T1098 20T1078 13T1136.003 11T1087.004 8T1528 7T1550.001 6T1098.003 5T1562.007 5T1098.001 4T1555 4T1071 3T1531 3T1550 3T1556 3T1068 2T1136 2T1534 2T1548 2T1556.006 2T1566 2T1587 2T0859 1T1110 1T1114.002 1T1484 1T1484.002 1T1562 1T1567 1T1585.003 1T1629 1
Severity
Medium 44High 32Low 16Informational 3
Schedules (analytic rules)
every 1d over 1d 23every 2h over 2h 13every 5m over 5m 9every 1h over 14d 8every 1d over 14d 7every 1h over 1h 7every 2d over 2d 6every 1h over 1d 3every 1h over 2h 3every 1h over 7d 3every 1d over 2d 2every 1d over 7d 2every 2h over 14d 2
Look-back windows in ago()
14d 41d 42d 12h 17d 1
Every rule that reads it
- Addition of a Temporary Access Pass to a Privileged Account
- Application ID URI Changed
- Application Redirect URL Update
- Changes to Application Logout URL
- Changes to Application Ownership
- Changes to PIM Settings
- Conditional Access Policy Modified by New User
- Guest Users Invited to Tenant by New Inviters
- Suspicious linking of existing user to external User
- URL Added to Application from Unknown Domain
- User Account Created Using Incorrect Naming Format
- User State changed from Guest to Member
- User account created without expected attributes defined
- Account created from non-approved sources
- Detecting Impossible travel with mailbox permission tampering & Privilege Escalation attempt
- Multiple Password Reset by user
- Suspicious Login from deleted guest account
- Suspicious modification of Global Administrator user properties
- Detect PIM Alert Disabling activity
- Account Elevated to New Role
- Authentication Method Changed for Privileged Account
- Privileged Account Permissions Changed
- User Added to Admin Role
- Risky Sign-in with new MFA method
- Multi-Factor Authentication Disabled for a User
- New External User Granted Admin Role
- Application Granted EWS Permissions
- Interactive STS refresh token modifications
- User Granted Access and Grants Access to Other Users
- Suspicious OAuth App Consent Granting Sensitive Permissions
- Federated Identity Provider Added to Tenant
- MFA Method Added on Risky Account
- Secret Added to Dormant Service Principal
- Service principal credential change followed by novel SP sign-in
- Suspicious sign-in followed by auth method or role change
- Dataverse - Guest user exfiltration following Power Platform defense impairment
- Dataverse - New non-interactive identity granted access
- Power Apps - Bulk sharing of Power Apps to newly created guest users
- Power Platform - Account added to privileged Microsoft Entra roles
- Power Apps - Anomalous bulk sharing of Power App to newly created guest users
- Modified domain federation trust settings
- Account created or deleted by non-approved user
- Account Created and Deleted in Short Timeframe
- Admin promotion after Role Management Application Permission Grant
- Authentication Methods Changed for Privileged Account
- Microsoft Entra ID Role Management Permission Grant
- Azure RBAC (Elevate Access)
- Bulk Changes to Privileged Account Permissions
- Conditional Access - A Conditional Access Device platforms condition has changed (the Device platforms condition can be spoofed)
- Conditional Access - A Conditional Access app exclusion has changed
- Conditional Access - A Conditional Access policy was deleted
- Conditional Access - A Conditional Access policy was disabled
- Conditional Access - A Conditional Access policy was put into report-only mode
- Conditional Access - A Conditional Access policy was updated
- Conditional Access - A Conditional Access user/group/role exclusion has changed
- Conditional Access - A new Conditional Access policy was created
- Conditional Access - Dynamic Group Exclusion Changes
- Credential added after admin consented to Application
- Cross-tenant Access Settings Organization Added
- Cross-tenant Access Settings Organization Deleted
- Cross-tenant Access Settings Organization Inbound Collaboration Settings Changed
- Cross-tenant Access Settings Organization Inbound Direct Settings Changed
- Cross-tenant Access Settings Organization Outbound Collaboration Settings Changed
- Cross-tenant Access Settings Organization Outbound Direct Settings Changed
- End-user consent to app with mailbox and offline access delegated scopes
- full_access_as_app Granted To Application
- First access credential added to Application or Service Principal where no credential was present
- Guest accounts added in Entra ID Groups other than the ones specified
- Mail.Read Permissions Granted to Application
- Suspicious application consent similar to O365 Attack Toolkit
- Suspicious application consent similar to PwnAuth
- Multiple admin membership removals from newly created admin.
- NRT Modified domain federation trust settings
- NRT New access credential added to Application or Service Principal
- NRT PIM Elevation Request Rejected
- NRT Privileged Role Assigned Outside PIM
- NRT User added to Microsoft Entra ID Privileged Groups
- New access credential added to Application or Service Principal
- New onmicrosoft domain added to tenant
- PIM Elevation Request Rejected
- Possible SignIn from Azure Backdoor
- Privileged Role Assigned Outside PIM
- Rare application consent
- Suspicious Entra ID Joined Device Update
- Suspicious application consent for offline access
- Suspicious Service Principal creation activity
- Suspicious Sign In Followed by MFA Modification
- External guest invitation followed by Microsoft Entra ID PowerShell signin
- User Assigned New Privileged Role
- New User Assigned to Privileged Role
- User added to Microsoft Entra ID Privileged Groups
- NRT First access credential added to Application or Service Principal where no credential was present
- Threat Essentials - Multiple admin membership removals from newly created admin.
- Threat Essentials - NRT User added to Microsoft Entra ID Privileged Groups
- Threat Essentials - User Assigned Privileged Role
- TI Map URL Entity to AuditLogs
- TI Map URL Entity to AuditLogs
- Anomalous Microsoft Entra ID Account Creation
- Anomalous Entra High-Privilege Role Modification
- Anomalous High-Privileged Role Assignment
- Anomalous Password Reset
- [Entra ID] Application Assigned Administrator Permissions Immediately After Obtaining Role Management Permissions
- [Entra ID] Application Granted Administrative Permission to Assign Microsoft Entra ID Roles
- [Entra ID] Authentication Method Changed for Privileged Account
- [Entra ID] Domain Federation Trust Settings Modified
- [Entra ID] Mass Privileged Role Change Activity Detected
- [Entra ID] Privilege Elevation Request Denied
- [Entra ID] Privileged Role Assigned to User
- [Entra ID] Privileged Role Assigned to a New User
Rules are from Azure/Azure-Sentinel (MIT licence) at commit 9ea9f7c. VeriKQL stores facts its parser read from each rule and links the rule; it does not copy rule text. Counts are what the rules do: practice, not guidance, and not Microsoft's recommendation.