Saturday, April 19, 2025
Homeaccount takeoversWhat is device code phishing, and why are Russian spies so successful...

What is device code phishing, and why are Russian spies so successful at it?

Share

Researchers have uncovered a sustained and ongoing campaign by Russian spies that uses a clever phishing technique to hijack Microsoft 365 accounts belonging to a wide range of targets, researchers warned.

The technique is known as device code phishing. It exploits “device code flow,” a form of authentication formalized in the industry-wide OAuth standard. Authentication through device code flow is designed for logging printers, smart TVs, and similar devices into accounts. These devices typically don’t support browsers, making it difficult to sign in using more standard forms of authentication, such as entering user names, passwords, and two-factor mechanisms.

Rather than authenticating the user directly, the input-constrained device displays an alphabetic or alphanumeric device code along with a link associated with the user account. The user opens the link on a computer or other device that’s easier to sign in with and enters the code. The remote server then sends a token to the input-constrained device that logs it into the account.

Device authorization relies on two paths: one from an app or code running on the input-constrained device seeking permission to log in and the other from the browser of the device the user normally uses for signing in.

A concerted effort

Advisories from both security firm Volexity and Microsoft are warning that threat actors working on behalf of the Russian government have been abusing this flow since at least last August to take over Microsoft 365 accounts. The threat actors masquerade as trusted, high-ranking officials and initiate conversations with a targeted user on a messenger app such as Signal, WhatsApp, and Microsoft Teams. Organizations impersonated include:

  • United States Department of State
  • Ukrainian Ministry of Defence
  • European Union Parliament
  • Prominent research institutions
Messages sent by threat actors impersonating high-profile organizations. Credit: Microsoft

After building a rapport, the attackers ask the user to join a Microsoft Teams meeting, give access to applications and data as an external Microsoft 365 user, or join a chatroom on a secure chat application. The request includes a link to and an access code, which the threat actor generated using a device they control.

A phishing lure that requests target click a link and enter a device authorization code. Credit: Microsoft

When the target visits the link with a browser authorized to access the Microsoft 365 account and enters the code, the attacker device gains access that will last as long as the authentication tokens remain valid.

Attack chain of the device authorization phishing campaign. Credit: Microsoft

“While Device Code Authentication attacks are not new, they appear to have been rarely leveraged by nation-state threat actors,” Volexity CEO Steven Adair wrote Thursday afternoon. He said that “this particular method has been far more effective than the combined effort of years of other social-engineering and spear-phishing attacks conducted by the same (or similar) threat actors. It appears that these Russian threat actors have made a concerted effort to launch several campaigns against organizations with a goal of simultaneously abusing this method before the targets catch on and implement countermeasures.”

The effectiveness of the attacks is, in large part, the result of the ambiguity in the user interface of the device code authorization process. That means it’s important for people to pay close attention to links and the pages they lead to. Microsoft Azure prompts users to confirm they’re signing into the app they expect. People should look for it and be suspicious of messages where this option is missing.

Microsoft and Volexity provide various other steps people can take to avoid falling prey to this campaign.

Popular

Related Articles

ChatGPT is referring to users by their names unprompted, and some find it creepy

Some ChatGPT users have noticed a strange phenomenon recently: occasionally, the chatbot refers...

The Nintendo Switch 2 will still cost $450 in the US, despite tariffs

Nintendo announced on Friday that it will open Switch 2 pre-orders in the...

Ramp is trying to get the US government as a customer after seeing a tweet from DOGE

Expense management startup Ramp is being considered for a charge card pilot program...

OpenAI pursued Cursor maker before entering into talks to buy Windsurf for $3B

When news broke that OpenAI was in talks to acquire AI coding company Windsurf...

Defense tech Theseus landed Y Combinator, the US Special Forces, and $4.3M from a tweet

On February 18, 2024, Ian Laffey posted on X that he and two...

Florida draft law mandating encryption backdoors for social media accounts billed dangerous and dumb

A Florida draft bill that would require social media companies to provide encryption...

Chapter, a Medicare startup with links to Vance, Thiel, and Ramaswamy, just raised a round at $1.5B valuation

Chapter, a Medicare advisory startup co-founded by former Republican presidential hopeful Vivek Ramaswamy,...

Life Beyond Earth and Manipulation of Spacetime

Avi Loeb is the head of the Galileo Project, founding director of Harvard University’s — Black...