ByteRay CQL Hub
← All queries

Device Code Sign-In

Detects authentication events using the device code flow as identified by Microsoft Defender for Identity, where a user enters a code on a separate device to complete sign‑in. While commonly used for legitimate scenarios, this method can be abused by attackers to perform phishing‑based authentication or bypass traditional sign‑in monitoring

CQL · Falcon Next-Gen SIEMCopy query
#Vendor = "microsoft"
|#event.dataset="defender-identity.IdentityLogonEvents"
|Vendor.properties.LogonType ="Cmsi:Cmsi"
|table([@timestamp,event.action,host.ip[0],host.os.name,host.type,user.name,Vendor.properties.AccountDisplayName,Vendor.properties.ISP])

Detects authentication events using the device code flow as identified by Microsoft Defender for Identity, where a user enters a code on a separate device to complete sign‑in. While commonly used for legitimate scenarios, this method can be abused by attackers to perform phishing‑based authentication or bypass traditional sign‑in monitoring

device_code_sign_in.yml
T1550
Kundan Kumar
Detection
Identity
Identity
2026-05-08
2026-05-08

Get this query running in your SIEM, with someone on call.

Our Managed SIEM team operates CrowdStrike Falcon Next-Gen SIEM in production, with over 350 battle-tested use cases and 24/7 incident response behind them.

Talk to the SIEM team