In November 2026, Hornetsecurity reported payment-themed phishing campaigns against Microsoft 365 that used device-code authorization to send tokens to an attacker-controlled client—even when the targeted person completed MFA. The person could sign in on Microsoft’s genuine page, but the client that initiated the request received the tokens. (Hornetsecurity)

How the payment lure became an authorization request

Four stages connect a payment lure and fake SharePoint page to Microsoft authorization and tokens received by the requesting client.

The reported lures posed as payment documents. In one analyzed path, a ZIP attachment contained a file presented as HTML that was actually an interactive SVG/XML document; clicking its apparent security-check area redirected the browser. A counterfeit SharePoint-style workspace then displayed payment documents and a code. The victim entered that code on Microsoft’s genuine device-authorization page.

Device-code sign-in is a legitimate flow intended for devices with limited input, such as shared devices or digital signage. A requesting client obtains a code for the person to enter, while it polls separately for tokens. In the reported campaign, the attacker controlled that requesting client, which received tokens for the permissions the user granted. (Microsoft’s explanation of authentication flows)

Why a real sign-in page can still send tokens to an attacker

The page’s authenticity does not establish who initiated the authorization request. In the reported flow, the person could complete MFA normally, while the tokens went to the attacker-controlled client that had started the request. MFA could verify the person without changing the destination of those tokens.

A genuine sign-in page can authenticate you while authorizing the wrong client.

What administrators should check before blocking device-code flow

Ru Campbell’s January 2025 tutorial walks through device-code attacks and Microsoft Entra Conditional Access, including Report-only testing.

Microsoft recommends auditing legitimate device-code use and blocking the flow where possible. Administrators can create a Conditional Access policy for Authentication flows > Device code flow, choose Block access, and first assess its impact in Report-only mode. Microsoft also advises reviewing exclusions, including those for emergency-access accounts. (Microsoft’s Conditional Access policy guidance)

For a policy that targets all resources, check whether the organization uses device-code flow for device registration. Microsoft says the Device Registration Service may need to be excluded in that situation. (Microsoft’s authentication-flow guidance)

Microsoft Entra sign-in logs can help investigate activity: filter by Authentication protocol and inspect Original transfer method. That detail can preserve the device-code origin through later token refreshes, even when subsequent activity uses another flow. (Microsoft’s authentication-flow guidance)