Skip to content
WETNav

authenticationProtocol / AuthenticationProtocolHigh signal

devicecode: Device code flow

The user entered a code shown by another device or app to sign it in.

How to read it

Built for TVs and command-line tools. Device code phishing sends a victim a code and has them complete the sign-in, giving the attacker tokens for the victim's account without stealing a password. Unless the user genuinely signs in to CLI tools or shared devices, a successful device code sign-in deserves review. Follow the token in the non-interactive sign-in logs.

Find it

union SigninLogs, AADNonInteractiveUserSignInLogs
| where AuthenticationProtocol =~ "devicecode"
| project TimeGenerated, UserPrincipalName, AppDisplayName, ResourceDisplayName, IPAddress, ResultType, UserAgent

ATT&CK

About authenticationProtocol

The protocol used for the sign-in. Device code and ROPC are the two values attackers abuse most.

Every Entra ID authenticationProtocol value →

Questions

What does authenticationProtocol devicecode mean?
Device code flow. The user entered a code shown by another device or app to sign it in. Built for TVs and command-line tools. Device code phishing sends a victim a code and has them complete the sign-in, giving the attacker tokens for the victim's account without stealing a password. Unless the user genuinely signs in to CLI tools or shared devices, a successful device code sign-in deserves review. Follow the token in the non-interactive sign-in logs.
Is authenticationProtocol devicecode a sign of an attack?
Often, yes. It is a strong signal. It is associated with MITRE ATT&CK Steal Application Access Token (T1528), Spearphishing Link (T1566.002). Confirm it with the surrounding events: who made the request, from where, and what happened next.
Where is authenticationProtocol devicecode recorded?
In the authenticationProtocol field of Entra ID sign-in logs.
How do I search for authenticationProtocol devicecode?
The queries on this page filter for it in PowerShell, Microsoft Sentinel and the source's own tools. Paste a full record into the WETNav decoder to see every other field explained too.