Cybersecurity news

Jessica Doner

Back to the list

The Hidden Relay: Inside a Device Code Phishing Kit That Never Shows the Code

KnowBe4,

A phishing kit uses a device code sign-in flow to trick users into approving access without ever displaying the code.

Phishing and scamsPasswords and sign-in

Overview

Microsoft allows users to sign in to devices that cannot easily type passwords by displaying a short code on one screen and asking the user to enter it on another. Attackers have used this convenience to create a phishing kit that tricks victims into approving a sign-in on a real Microsoft site. The kit impersonates the device and hands the code to the attacker, who then steals the access and refresh tokensA longer-lived credential that an app uses to obtain a fresh access token when the current one expires issued by Microsoft. This technique, known as device code phishingTricking a user into entering an attacker's activation code on a real login page, has risen since August 2024 and was tracked by Microsoft in a campaign called Storm-2372. A new variant observed in August 2026 does not show the code to the victim, instead directing them to a genuine Microsoft login page where they sign in normally. The attacker still collects the necessary tokens because the system state was pre-staged, allowing them to access email and cloud files in Microsoft 365.

Terms in this story

refresh tokens
A longer-lived credential that an app uses to obtain a fresh access token when the current one expires. Because a stolen refresh token lets an attacker keep minting new session tokens for weeks, defenders revoke refresh tokens immediately when an account looks compromised.
Device Code Phishing
Tricking a user into entering an attacker's activation code on a real login page. The login flow meant for smart televisions and command-line tools displays a short code, and in device code phishing the scammer gives their code to the victim to approve.
Relay
An intermediate node or attack tool that forwards network traffic or login challenges from one machine to another. In security stories, a relay can be an anonymizing network node that hides an attacker's IP address or an attack tool that forwards captured login challenges to another server.
phishing kits
A packaged set of fake web pages and scripts that lets an attacker clone a login site quickly. Criminals buy or download a phishing kit that copies a popular email or banking login screen and automatically sends stolen passwords and session tokens to a chat channel.
MFA
A login check that requires two or more separate proofs of identity before granting access. With multi-factor authentication turned on, an attacker who steals your password still cannot sign in without the second factor, such as a code from your phone or a hardware key. Security+ objective 4.6 lists the term
Authentication
Verifying that a user, device, or program really is who it claims to be before allowing access. When you enter a password, scan a fingerprint, or present a key, authentication checks your identity before a server decides what your account is allowed to do.
access tokens
A short-lived digital pass that a server gives a logged-in user or app. After you sign in once, your browser or app presents a token on each request, and if malware steals that token the attacker can act as you without knowing your password. Security+ objective 4.6 lists the term
sessions
An active logged-in period of communication between a user or device and a server. Once you log in to a website, the server tracks your session so you can click from page to page without retyping your password on every screen.
phishing-as-a-service
A criminal subscription platform that rents ready-made fake login pages, email templates, and relay tools. Even low-skill scammers can run sophisticated campaigns by paying a monthly fee to a phishing-as-a-service platform that handles fake login pages and steals multifactor tokens automatically.
OAuth 2.0 device authorization grant
Tricking a victim into entering a short login code that links the attacker's device to their account. Smart televisions use a short code flow to sign in without a keyboard, and attackers abuse this in device-code phishing by convincing employees to type the attacker's code into a real corporate login page.
phishing page
Tricking people into handing over passwords or money through fake messages that look real. Attackers send fake emails or messages that copy a bank, school, or login page so a reader types in their password or opens a malicious attachment. Security+ objective 2.2 lists the term
URL
The full web address used to locate a specific page, file, or resource on the internet. Security filters inspect every URL in an incoming message to see whether the domain name is a newly registered lookalike or points to a known credential-harvesting server. Security+ objective 4.5 lists the term

This page is a short description made for this site. The article itself, with its author's name and its own link, is on the KnowBe4 website. Cite the article, not this page.

Read the full article on KnowBe4 (opens in a new tab)

Course connections

Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.

How a story is connected to the course, and every objective, week and job role

Related