Risky sign-in attempt from a non-managed device
Description
In this detection,we hunt for any sign-in attempt from a non-managed, non-compliant, untrusted device.
Query · kql
EntraIdSignInEvents | where Timestamp > ago(7d) | where IsManaged != 1 | where IsCompliant != 1 //Filtering only for medium and high risk sign-in | where RiskLevelDuringSignIn in (50, 100) | where ClientAppUsed == "Browser" | where isempty(DeviceTrustType) | where isnotempty(State) or isnotempty(Country) or isnotempty(City) | where isnotempty(IPAddress) | where isnotempty(AccountObjectId) | where isempty(DeviceName) | where isempty(EntraIdDeviceId) | project Timestamp,IPAddress, AccountObjectId, ApplicationId, SessionId, RiskLevelDuringSignIn