Risky Sign-in with ElevateAccess
Description
Looks for users who had a risky sign in (based on Entra ID Identity Protection risk score) and then performed and ElevateAccess action. ElevateAccess operations can be used by Global Admins to obtain permissions over Azure resources.
Query · kql
let riskySignInLookback = 3d; let elevatedUsers = ( CloudAppEvents | where Timestamp > ago(1d) | where ApplicationId == 12260 // filter Azure Resource Manager events | where ActionType has "elevateAccess" | project elevatedOperationTimestamp = Timestamp, AccountObjectId); let hasElevatedUsers = isnotempty(toscalar(elevatedUsers)); EntraIdSignInEvents | where hasElevatedUsers | where Timestamp > ago(riskySignInLookback) | where ErrorCode == 0 | where RiskLevelDuringSignIn in (50, 100) //10 - low, 50 - medium, 100 - high) | join elevatedUsers on AccountObjectId | where elevatedOperationTimestamp > Timestamp | project LoginTime = Timestamp, elevatedOperationTimestamp, AccountObjectId, AccountDisplayName, riskScore = RiskLevelDuringSignIn