How to detect OAuth client ID spoofing in Microsoft Entra ID before account takeover
SigninLogs | where TimeGenerated > ago(1h) | where ResultType in (“50034”, “50126”, “700016”) or isempty(AppDisplayName) | summarize DistinctClientIDs = dcount(AppId), ResultCodes = make_set(ResultType), Usernames = make_set(UserPrincipalName) by SourceIPAddress, UserAgent, bin(TimeGenerated,…