Pilot preview. Entries marked Sample are illustrative and haven’t been technically reviewed or signed off yet.
Threat dossier

What is device code phishing?

Short answer

The attacker starts a real Microsoft sign-in, then persuades you to enter their code on Microsoft's genuine device-login page. You finish MFA, but for their session. The address is real, so checking it won't help; admins should block device-code flow where it isn't needed.

Mechanism

Device-code sign-in exists for things without a keyboard, like a TV or a conference-room device: the device shows a short code, and you enter it on another device to approve. In the attack:

  1. The attacker starts a sign-in and gets a code.
  2. They send it to you with a reason: join this meeting, view this document, "verify" your account.
  3. You enter it on Microsoft's real page and complete MFA as normal.
  4. The attacker's device now holds valid tokens for your account.

MFA wasn't broken. You passed it, for the wrong session.

Why it's hard to spot

Every page involved is genuine Microsoft, so "check the address" and "look for a fake page" both come back clean. Microsoft itself treats the flow as high-risk for this reason.

Tells

  • Being asked to type a code you didn't generate yourself.
  • A code that arrives in an email, chat or Wi-Fi portal rather than on a device in front of you.
  • "Enter this code to see the file."

Admin controls

  1. Find real dependencies in sign-in logs first.
  2. Create a Conditional Access policy blocking device-code flow, in report-only mode, then enforce it with narrow exceptions.
  3. Alert on device-code sign-ins that remain.
  4. Use phishing-resistant MFA and token protection for high-value accounts.

Haven's role

Haven does not flag device-code phishing that runs entirely on Microsoft's genuine sign-in pages, because there is no fake page to detect.

How Haven handles this

  • Haven does not flag device-code phishing that runs entirely on Microsoft's genuine sign-in pages, because there is no fake page to detect. That variant is handled with identity controls, such as blocking device-code flow in Conditional Access, and phishing-resistant MFA.Verified by engineering October 28, 2026
Signed off by Miluse Najmr (November 26, 2026, via admin console). Last reviewed November 26, 2026. Spotted something wrong? Tell us.
What is device code phishing? | Haven Field Guide