Open Server Exposes M365 Phishing Playbooks

Infosecurity Magazine · High sophistication
Last updated July 30, 2026

Researchers found a misconfigured server exposing the tools and logs of multiple active phishing operators targeting corporate Microsoft 365 accounts. The exposed data included phishing configurations, stolen credentials/tokens, and tooling for maintaining access, including a campaign abusing Microsoft’s OAuth Device Code Flow to keep refreshing access in the background.

What Researchers Found

An open, misconfigured server left the operational tooling of multiple active phishing operators exposed to anyone who found it. The exposed data included phishing configurations, stolen credentials and tokens, remote management installers, and even the operators' own Telegram session files. This gave defenders an unusually clear window into how corporate Microsoft 365 accounts were being targeted at scale.

How the Attacks Worked

Two distinct techniques stood out among the exposed tooling:

  • One operator ran an Evilginx-based adversary-in-the-middle (AiTM) platform, proxying real Microsoft 365 sign-in pages to capture credentials and session cookies, effectively bypassing MFA by stealing an already-authenticated session.
  • A separate operation abused Microsoft's OAuth Device Code Flow. In this scheme, the victim completes a legitimate sign-in on a real Microsoft page using a device code, while the attacker's backend silently claims the resulting access token. This campaign ran for over a year and collected 218 confirmed victims across 12 countries, with tokens set to refresh automatically to maintain long-term access.

Researchers also noted signs that generative AI may have been used to help build parts of the phishing tooling and code.

Why It Succeeded

Both techniques succeeded because they exploit trust in legitimate Microsoft infrastructure rather than obviously fake login pages. A device code prompt looks like a normal Microsoft authentication step, and an AiTM proxy presents a real-looking sign-in flow. Victims have little reason to suspect anything is wrong because the page they interact with is genuinely Microsoft's, even though the session or token is being intercepted behind the scenes. This is why MFA alone did not prevent account compromise: attackers were not guessing passwords, they were hijacking sessions and tokens after authentication occurred.

What to Watch For

Employees, executives, finance, HR, and IT teams should treat these signals as red flags:

  • An unexpected request to enter a device code to complete a Microsoft sign-in
  • Pressure to complete an authentication step you did not initiate
  • Sign-in links that arrive unexpectedly, asking you to "re-authenticate" without a clear reason
  • Any login flow that feels off, such as repeated prompts or unusual timing, even if the page looks legitimate

Building Resistance

Organizations can reduce exposure by disabling Device Code authentication where it isn't operationally needed and limiting how long tokens and sessions persist without re-verification. Just as important is training staff to recognize that a legitimate-looking Microsoft page does not guarantee a legitimate request behind it. Encourage employees to report unsolicited sign-in or re-authentication prompts immediately rather than completing them, and reinforce that MFA is one layer of defense, not a guarantee against session hijacking or Device Code Flow abuse.

Key findings

  • A misconfigured open directory exposed phishing configs, credential logs, RMM installers, and even Telegram session files.
  • One operator ran an Evilginx adversary-in-the-middle (AiTM) platform targeting corporate Microsoft 365 accounts.
  • A separate operation abused Microsoft OAuth Device Code Flow, allowing victims to authenticate on a real Microsoft page while the attacker’s system captured tokens.
  • The Device Code campaign ran for over a year and collected 218 confirmed victims across 12 countries, with tokens refreshed automatically to maintain access.
  • Researchers observed signs that generative AI was used to help build phishing tooling and code.

Who’s being targeted

  • Commonly targeted roles: All employees, Executives, Finance, HR, IT administrators, Identity & Access Management teams.
  • Affected industries: Cross-industry (organizations using Microsoft 365), Corporate users (multiple countries).
  • Attack channels: email, website.
  • Impersonated: Microsoft (sign-in/identity prompt), Microsoft 365 / corporate sign-in page.

Red flags to watch for

  • Unexpected request to use a 'device code' to log in
  • Pressure to complete an authentication step you did not initiate
  • Login is legitimate-looking, but the request originated from an unsolicited message
  • A login link that arrives unexpectedly
  • Being asked to re-authenticate without a clear reason
  • Signs the login flow is being proxied (odd URL, repeated prompts, timing issues)
Try Mirage

Mirage safely runs attacks like this one against your own team, so you find out what happens before a real adversary does.

Get a demo

Frequently asked questions

What is OAuth Device Code Flow phishing?

It abuses a legitimate Microsoft feature where the victim signs in on a real Microsoft page using a device code, while the attacker's backend claims the resulting access token in the background.

Can MFA stop this type of attack?

Not on its own. Because attackers capture session tokens or use AiTM proxies, they can bypass MFA entirely by hijacking an already-authenticated session.

How many victims were affected by the Device Code campaign?

The campaign ran for over a year and collected 218 confirmed victims across 12 countries, with roughly 94% of them corporate accounts.

What should organizations do to reduce this risk?

Disable Device Code authentication where it is not needed, limit token and session persistence, and train employees to treat unexpected sign-in or re-authentication requests as suspicious.

Read the video transcript

Imagine this: an open server leaking live Microsoft 365 phishing playbooks, configs, stolen passwords, even tools to stay logged into your account forever. One playbook: an Evilginx adversary-in-the-middle rig to hijack Microsoft 365 sessions. Another: a framework abusing Microsoft’s OAuth Device Code Flow, victims sign in on a real Microsoft page while the attacker quietly grabs and refreshes their access token in the background. Here’s the trap: you get an email, 'Action required: complete Microsoft sign-in using the provided device code.' You go to a legit Microsoft page, enter the code, it all looks normal. Aha: the only fake part was the request itself, that unsolicited device code email. If you ever get a Microsoft 365 device-code or re-auth email you weren’t expecting, stop: don’t use the code or link, report it to IT and sign in only by going to portal.office.com or office.com yourself.

Similar attacks

Device Code Phishing: MFA Bypass at Scale

Device Code Phishing: MFA Bypass at Scale

This article describes real-world “device code phishing” campaigns where victims are tricked into approving an OAuth device login, granting attackers access…

July 31, 2026