In an era of sophisticated identity attacks, many organizations focus on phishing awareness — yet miss one of the most dangerous and fastest-growing techniques: device code phishing. Unlike traditional phishing, this attack requires no fake password page. The victim logs in on a legitimate website — and still gets compromised. And in 2025 and 2026, this technique has gone from niche threat to mainstream weapon.
⚡ Key Takeaway Device code phishing bypasses MFA entirely. The attacker does not steal your credentials — they manipulate you into handing over a valid access token yourself. And now, thanks to AI-driven automation, it operates at industrial scale.
The Threat Is No Longer Theoretical This is not a future risk. It is happening now — and accelerating.
What was once limited to small-scale red-team exercises became widespread by September 2025. Multiple threat groups — including those affiliated with Russia and China — have been ramping up attacks using device code phishing to target Microsoft 365 users.
Most recently, Microsoft identified a new AI-enabled campaign using EvilTokens, a phishing-as-a-service toolkit that uses automation and dynamic code generation to bypass the standard 15-minute expiration window for device codes — marking a significant escalation in sophistication since the Storm-2372 campaign of early 2025.
The Problem: The Trusted Flow Turned Weapon The device code flow was designed for a legitimate purpose: allowing devices without a browser — such as smart TVs or printers — to authenticate through a separate device. Attackers have turned this into a weapon.
The attack works as follows:
- The attacker initiates a device code request with Microsoft or Google
- The victim receives a Teams message — often from a compromised colleague or external account
- The message looks legitimate: “Can you confirm access?” or “Log in to view this document”
- The victim is directed to
microsoft.com/devicelogin— a real Microsoft page - The victim logs in and completes MFA as normal
- The attacker receives a valid access token in return
- The attacker is now authenticated as the victim — without ever knowing their password
The login is real. The page is real. The damage is real.
Critically, the tokens remain valid even after the account’s password is reset — meaning a simple password change is not enough to stop the attacker.
The Problem: Microsoft Teams as an Attack Vector Teams messages feel more trusted than email. Employees are accustomed to receiving collaboration requests through Teams — making it an ideal channel for social engineering.
Storm-2372, a group Microsoft assesses with moderate confidence aligns with Russia’s interests, has targeted victims using third-party messaging services including WhatsApp, Signal, and Microsoft Teams, posing as trusted contacts since August 2024.
In November 2025, Microsoft’s Detection and Response Team uncovered a campaign built on persistent Teams voice phishing, where a threat actor impersonated IT support and targeted multiple employees — ultimately convincing a user to grant remote access through Quick Assist.
The attack succeeded not because of a technical flaw — but because the interaction felt completely normal.
The Problem: Now Automated and AI-Driven The threat has evolved significantly in 2025 and 2026.
Threat actors are now employing phishing frameworks such as SquarePhish2 and Graphish to orchestrate attacks at scale. SquarePhish2 uses QR codes and automated redirects within the Microsoft OAuth flow, making the phishing sequence appear entirely legitimate.
Graphish, a phishing kit shared freely on hacking forums, allows attackers to create convincing phishing pages by leveraging Azure App Registrations and reverse proxy setups for adversary-in-the-middle attacks.
These tools require minimal technical skill — meaning the barrier to entry for attackers has never been lower.
The Problem: MFA Does Not Help Here Organizations invest heavily in Multi-Factor Authentication, assuming it protects against account takeover. Device code phishing exposes a critical gap.
- The victim completes MFA themselves
- The authentication is fully legitimate from a technical perspective
- Security tooling sees a normal, successful login
- The attacker gains persistent access — often for days or weeks — even after a password reset
MFA is essential — but it is not a silver bullet.
The Problem: Awareness Gaps at Every Level Lures increasingly claim to involve document sharing, token reauthorization, or security verification — with one campaign using a fake shared document titled “Salary Bonus + Employer Benefit Reports 25” to direct victims to attacker-controlled sites branded to match their organization.
Common failure points include:
- Employees not recognizing unsolicited code or link requests in Teams
- IT teams not monitoring for anomalous device code flow usage
- External Teams access enabled without governance controls
- No Conditional Access policies blocking device code authentication
The Solution: Technical and Strategic Controls To defend against device code phishing, organizations need a layered response across technology, process, and people.
Key measures include:
- 🔒 Block device code flow in Conditional Access policies where not needed
- 🚫 Restrict or govern external access in Microsoft Teams
- 🔍 Monitor for unusual OAuth token issuance and sign-in patterns via
microsoft.com/devicelogin - 🧠 Train employees to never act on unsolicited authentication requests — especially via Teams
- 🛡️ Implement Continuous Access Evaluation to limit token validity
- 🔑 Revoke active tokens immediately upon suspected compromise — not just reset passwords
- 🧭 Embed identity security into governance and risk frameworks
The Solution: Independent Advisory Defending against modern identity attacks requires more than tooling. At Demiroz Consultancy B.V., we provide objective, strategic guidance based on:
- Real-world threat scenarios including Teams-based and AI-driven attack vectors
- Academic and technical depth
- No commercial bias toward specific vendors
We help organizations identify where their identity security posture falls short — before attackers do.
The Strategic Choice Multiple Russia-aligned groups — including Storm-2372, APT29, UTA0304, UTA0307, and UNK_AcademicFlare — have been attributed to device code phishing attacks targeting over 340 Microsoft 365 organizations across five countries.
Organizations face a critical decision:
- React after an identity compromise occurs
- Or proactively close the gaps that make it possible
The window to act is narrowing. The attacks are automated, AI-assisted, and arriving via the tools your employees trust most.
Ready to Strengthen Your Identity Security? Want to understand your exposure to modern identity-based attacks? Contact Demiroz Consultancy B.V. for a strategic intake.


