For years, one of the simplest pieces of advice against phishing has been to check the website address carefully before entering your login details. In the case of device code phishing, this check alone may not be enough: the users may find themselves on a genuine authentication page, complete a second factor of authentication, and unwittingly authorise a request initiated by a third party.
Device code phishing exploits the OAuth 2.0 Device Authorisation Grant to trick users into completing a legitimate authentication process linked to a client controlled by a third party. If the attack is successful, the client can obtain access tokens without directly receiving the victim’s password.
This is not necessarily a vulnerability in the identity service, but rather the misuse of a feature designed for devices on which entering credentials is impractical, such as smart TVs, video-conferencing systems or terminals with limited input capabilities. The risk arises when the user is tricked into completing a procedure that they did not consciously initiate and which is associated with a client controlled by an unauthorised party.
An authentic login, but associated with an unrecognised request
In normal operation, an application or device asks the identity provider to initiate an authentication procedure. The system returns a temporary code to be shown to the user, who then opens the official portal, enters the code and completes the login.
In device code phishing, however, the request is generated by a client controlled by an unauthorised party. The latter obtains the temporary code and forwards it to the targeted individual, for example via email, chat or through a fake verification request.
The user is thus directed to an authentic provider page: the domain, certificate and procedure appear legitimate and, where required by policy, a password and multi-factor authentication are also requested. What may go unnoticed is that the code entered is part of a process initiated elsewhere.
During the operation, the client that originated the request periodically queries the service whilst awaiting completion. Once the user has been authenticated, the authorisation server may issue an access token to the client and, if specified in the configuration, a refresh token, within the limits of the granted scopes and the policies applied.
The victim, therefore, does not necessarily have to disclose passwords or codes to third parties: they may unwittingly authorise a request linked to an external client. MFA remains a fundamental safeguard, but in this scenario it may not be sufficient, because it is the users themselves who complete a valid authentication associated with the request initiated by the client.
Public alerts released in 2026 described campaigns based on the device code flow that also targeted Italian organisations. The available reconstructions also point to a growing reliance on automation to increase the scale and speed of the campaigns.
The industrialisation of device code phishing
In 2026, various analyses described tools and services capable of automating much of the technique, some of which were reportedly linked to large-scale compromises. The available figures, however, remain estimates dependent on the collected data and the criteria adopted during the investigations.
Access to the service was promoted via messaging channels and subscription models. Prices and operating procedures can change rapidly and are not essential to understanding the technical risk.
These tools automated the generation of the request, the presentation of the code and the verification of the outcome. Once valid tokens had been obtained, the operator could access the resources permitted by the scopes, account privileges and applied policies.
Unauthorised access to the email inbox may represent only the first stage of the incident.
Within the limits of the authorisations obtained, the service’s APIs can be used to gather information on accounts, roles, conversations, accounting documents and business relationships. Email rules can also be created to hide or forward communications and send new messages from compromised accounts. These activities aid concealment and make any fraud attempts more targeted, but do not in themselves guarantee that OAuth access is maintained: their presence must be verified through technical evidence.
MFA remains essential, but context matters
The campaigns observed show that modern phishing does not always require a spoofed login page. The attacker can exploit a standard OAuth mechanism and let the legitimate infrastructure handle passwords and authentication.
Domain verification, therefore, is not enough. In the device code flow, a pairing code should only be entered when the user has consciously initiated the setup of a device or application.
From a technical perspective, a prudent measure is to disable the device code flow when it is not required. If the flow must remain available, it should be restricted to authorised scenarios using access policies consistent with the context, the devices and the organisation’s risk level.
Managing a potential incident also requires thorough checks. If valid tokens have been issued, changing the password may not be sufficient: it may be necessary to revoke sessions and refresh tokens, verify consents and application authorisations, and analyse account activity. Access tokens already issued, depending on the services and the available controls, may remain usable until they expire.
However, countering a single piece of infrastructure does not render the technical mechanism underpinning similar campaigns ineffective.
The key point is this: an authentic page and a correctly completed MFA do not prove that the request was initiated by the user. To identify the risk, the context and origin of the procedure must also be verified.
Analysis by Vasily Kononov – Threat Intelligence Lead, Cyberoo