<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/device-code-phishing-nskg6ca6c" -->

---
title: Device Code Phishing | daily.dev
description: Device code phishing abuses a legitimate Microsoft authentication flow meant for devices without browsers. Attackers trick victims into entering an...
canonical: https://daily.dev/posts/device-code-phishing-nskg6ca6c
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Device Code Phishing | daily.dev
og:description: Device code phishing abuses a legitimate Microsoft authentication flow meant for devices without browsers. Attackers trick victims into entering an...
og:url: https://daily.dev/posts/device-code-phishing-nskg6ca6c
og:image: https://api.daily.dev/og/posts/NsKg6CA6c.png
og:image:alt: Device Code Phishing
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Device Code Phishing

**[John Hammond](https://daily.dev/sources/johnhammond)** · 1 min read · 0 upvotes · 0 comments

## Summary

Device code phishing abuses a legitimate Microsoft authentication flow meant for devices without browsers. Attackers trick victims into entering an attacker-generated device code on Microsoft's real login page. The victim completes login with their real credentials and MFA, but the attacker intercepts the resulting OAuth token, gaining persistent account access without ever needing the password or MFA code themselves.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=QSCFW4up5Co>

## Questions this post answers

### What is device code phishing and how does it steal Microsoft account access?

Device code phishing abuses Microsoft's legitimate device authorization login flow, which lets devices without browsers sign in using a short code. Attackers generate this code and trick victims into entering it on Microsoft's real sign-in page. The victim's password and MFA go to Microsoft as normal, but the attacker intercepts the resulting OAuth token, giving them account access without ever needing the actual credentials.

_Security teams tracking evolving phishing techniques like this follow identity threat research on daily.dev._

### Why can attackers bypass MFA using a device code phishing attack?

Attackers bypass MFA because the victim performs a completely real login, including entering their password and completing multi-factor authentication, directly with Microsoft. The attacker never sees any of these credentials. Instead, the attacker sits in the middle of the legitimate device authorization flow and captures the OAuth token issued at the end, which functions like a session cookie granting account access.

_Anyone hardening identity systems against token theft can follow this kind of security analysis on daily.dev._

## Similar posts on daily.dev

- [Device Code Phishing: Turning a Convenience Feature Into an MFA Bypass](https://daily.dev/posts/device-code-phishing-turning-a-convenience-feature-into-an-mfa-bypass-ahmi9uip7) · Trend Micro · 0 upvotes · 0 comments
- [We Need to Talk About Device Code Phishing](https://daily.dev/posts/we-need-to-talk-about-device-code-phishing-x88bpk5tq) · Huntress Blog · 0 upvotes · 0 comments
- [When checking the URL isn't enough: phishing via the Microsoft identity platform](https://daily.dev/posts/when-checking-the-url-isn-t-enough-phishing-via-the-microsoft-identity-platform-wtxnir48k) · Securelist · 0 upvotes · 0 comments
- [New phishing campaign tricks employees into bypassing Microsoft 365 MFA](https://daily.dev/posts/new-phishing-campaign-tricks-employees-into-bypassing-microsoft-365-mfa-2reed6azp) · CSO Online · 0 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#microsoft](https://daily.dev/tags/microsoft), [#authentication](https://daily.dev/tags/authentication), [#phishing](https://daily.dev/tags/phishing), [#oauth](https://daily.dev/tags/oauth)

[View this post on daily.dev](https://daily.dev/posts/device-code-phishing-nskg6ca6c)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Device Code Phishing","url":"https://daily.dev/posts/device-code-phishing-nskg6ca6c","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/device-code-phishing-nskg6ca6c"},"datePublished":"2026-08-26T14:19:19.184Z","dateModified":"2026-08-26T14:19:39.202Z","description":"Device code phishing abuses a legitimate Microsoft authentication flow meant for devices without browsers. Attackers trick victims into entering an...","image":"https://i.ytimg.com/vi/QSCFW4up5Co/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/QSCFW4up5Co/sddefault.jpg","isAccessibleForFree":true,"articleSection":"John Hammond","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"John Hammond","logo":"https://media.daily.dev/image/upload/s--Oh7b_KW---/f_auto/v1729363281/logos/johnhammond","url":"https://daily.dev/sources/johnhammond"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/device-code-phishing-nskg6ca6c","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,microsoft,authentication,phishing,oauth","timeRequired":"PT1M","video":{"@type":"VideoObject","name":"Device Code Phishing","description":"Device code phishing abuses a legitimate Microsoft authentication flow meant for devices without browsers. Attackers trick victims into entering an...","thumbnailUrl":"https://i.ytimg.com/vi/QSCFW4up5Co/sddefault.jpg","uploadDate":"2026-08-26T14:19:19.184Z","duration":"PT1M","url":"https://api.daily.dev/r/NsKg6CA6c","embedUrl":"https://www.youtube.com/embed/QSCFW4up5Co"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"John Hammond","item":"https://daily.dev/sources/johnhammond"},{"@type":"ListItem","position":3,"name":"Device Code Phishing"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/device-code-phishing-nskg6ca6c#faq","mainEntity":[{"@type":"Question","name":"What is device code phishing and how does it steal Microsoft account access?","acceptedAnswer":{"@type":"Answer","text":"Device code phishing abuses Microsoft's legitimate device authorization login flow, which lets devices without browsers sign in using a short code. Attackers generate this code and trick victims into entering it on Microsoft's real sign-in page. The victim's password and MFA go to Microsoft as normal, but the attacker intercepts the resulting OAuth token, giving them account access without ever needing the actual credentials. Security teams tracking evolving phishing techniques like this follow identity threat research on daily.dev."}},{"@type":"Question","name":"Why can attackers bypass MFA using a device code phishing attack?","acceptedAnswer":{"@type":"Answer","text":"Attackers bypass MFA because the victim performs a completely real login, including entering their password and completing multi-factor authentication, directly with Microsoft. The attacker never sees any of these credentials. Instead, the attacker sits in the middle of the legitimate device authorization flow and captures the OAuth token issued at the end, which functions like a session cookie granting account access. Anyone hardening identity systems against token theft can follow this kind of security analysis on daily.dev."}}]}
```

