SecOraLens
MediumPhishing

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

Knowbe4·Source published ·1 min read

What happened?

A smart TV or a streaming box throws a short code on screen and tells us to go type it into a website on your phone to finish signing in. It feels almost quaint compared to typing a password. Microsoft built that same convenience into its own sign-in flow, for devices that cannot easily take a password, handing the user a short user_code to approve on a separate screen. Device code phishing takes that convenience and turns it into bait: phishing kits impersonate the device, get handed the code, and trick the victim into approving it on Microsoft's real site instead.

Key details

  • A new device code phishing variant hides the user code entirely and redirects victims to a genuine Microsoft login page.
  • The kit pre-stages a Microsoft sign-in session and embeds session tokens (ctx, flowToken, canary) into the phishing page before the victim interacts.
  • The victim sees a fake Microsoft Defender verification overlay and a Download Attachment button that triggers the hidden device code flow.
  • Passkeys and FIDO2 do not prevent this attack because authentication occurs on Microsoft's genuine domain, passing origin checks.

What is affected?

  • Microsoft Authentication Broker client ID (29d9ed98-a469-4536-ade2-f981bc1d605e)
  • Microsoft 365 resources including email and cloud files accessed via Microsoft Graph

How do I fix or mitigate it?

  1. Block the device code flow at the tenant level to prevent abuse.

What should defenders look for?

  • Phishing emails sent via Mandrill (Mailchimp transactional service) with NDA-themed lures
  • URLs wrapped in Mandrill click tracking, redirecting through Cloudflare Workers pages

Summarised by SecOraLens from Knowbe4. Always read the original source before acting. How SecOraLens verifies advisories.

What to do next

For CISOs and SOC leads

Brief your board. Brief your team.

Executive risk briefs for governance, technical kill-chains for the SOC — delivered as advisories publish. Critical alerts within 1 hour. No spam, unsubscribe anytime.