Skip to content
WETNav

errorCode / ResultTypeSuspicious

70016: Device code authorization pending

Device code flow: the client is polling and the user has not entered the code yet.

How to read it

Normal for a real device code sign-in, but a run of 70016 from an IP the user does not use, followed by a success, is the attacker polling during device code phishing.

Find it

union SigninLogs, AADNonInteractiveUserSignInLogs
| where ResultType == "70016"
| summarize Attempts = count(), Users = dcount(UserPrincipalName) by IPAddress, AppDisplayName
| order by Users desc

ATT&CK

About errorCode

Every Entra ID sign-in records a result code: 0 for success, otherwise an AADSTS error number. The code tells you whether the password was right, whether MFA stopped the attacker, and whether a policy blocked them.

Every Entra ID sign-in error code (AADSTS) value →

Questions

What does errorCode 70016 mean?
Device code authorization pending. Device code flow: the client is polling and the user has not entered the code yet. Normal for a real device code sign-in, but a run of 70016 from an IP the user does not use, followed by a success, is the attacker polling during device code phishing.
Is errorCode 70016 a sign of an attack?
It deserves a look. It is associated with MITRE ATT&CK Steal Application Access Token (T1528). Confirm it with the surrounding events: who made the request, from where, and what happened next.
Where is errorCode 70016 recorded?
In the status.errorCode field of Entra ID sign-in logs.
How do I search for errorCode 70016?
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.