OAuth Phishing Turns MFA Into a Bypass

Unit 42 · High sophistication
Last updated October 23, 2026

Attackers are using real OAuth sign-in and consent flows to steal access tokens or trick users into authorizing malicious apps. Because the victim signs in through a legitimate identity provider and completes MFA, attackers can gain durable access that may survive password resets. The article describes device-code phishing, consent-screen impersonation, and malicious redirects as practical attack paths.

How the attack works

OAuth phishing does not try to steal a password directly. Instead, it abuses legitimate sign-in and consent flows so the victim authenticates through a real identity provider while the attacker ends up with the resulting access token or consent grant. Because the sign-in itself is genuine and MFA is completed normally, the attacker gains durable access that can survive a password reset unless the underlying refresh token is explicitly revoked.

Three practical paths show up in this attack pattern:

  • Device authorization abuse, where an attacker requests a device sign-in code and persuades the victim to enter it on the real device-login page, unknowingly authenticating the attacker's session.
  • Permission hijacking, where an application is registered with a vague or innocuous name and then requests permissions far beyond what that name implies.
  • Malicious redirects, where an authorization URL is crafted to deliberately trigger an authentication error, causing the identity provider to append error parameters to the redirect URI and send the browser to an attacker-controlled page.

Why it succeeds

Each of these techniques relies on a trusted surface that users have learned to trust by default. A device-login page is real. A consent screen comes from a legitimate identity provider. A familiar brand name appears on the authorization request. None of these details actually verify that the requesting application or the person initiating the sign-in is legitimate, since the consent screen only shows the name provided at registration, not a verified identity.

What to watch for

  • A device-login code that was not initiated by your own device or action.
  • An application name that is vague, generic, or gives no real signal about its purpose, such as a security or privacy-sounding extension.
  • A consent request asking for permissions that exceed what the application should reasonably need.
  • A sign-in flow that produces an unexpected error, or a final destination that differs from the identity provider you started with.

Building resistance

Awareness should focus on treating the consent screen itself as the attack surface, not just the login page. Employees should be trained to never enter a device-login code or approve a sign-in unless they personally started that sign-in on a device they control, and to read consent screens carefully rather than clicking Allow by habit. A familiar brand name or a legitimate identity provider URL should not be treated as proof of legitimacy on its own. On the organizational side, restricting end-user application consent, requiring administrator approval for new app permissions, and regularly auditing redirect URIs and granted permissions can reduce the chance that one approved click leads to lasting account access. See the related techniques: T1528, T1550.001, and T1656 for more detail on how these token-based access methods are classified.

Key findings

  • OAuth phishing can bypass MFA because the victim completes authentication through a legitimate identity provider before the attacker obtains the resulting token or consent grant.
  • Refresh tokens can provide lasting access and may survive password resets unless they are explicitly revoked.
  • Device authorization abuse persuades a victim to enter an attacker-generated code at a legitimate device-login page.
  • Permission hijacking uses vague application names or trusted-brand impersonation to persuade victims to approve excessive permissions.
  • Malicious redirect campaigns abuse trusted identity-provider flows to send victims to attacker-controlled phishing or malware pages.
  • Organizations should restrict end-user application consent, require administrator approval, and audit redirect URIs and granted permissions.

Who’s being targeted

  • Commonly targeted roles: All employees, Microsoft 365 users, SaaS application users, IT administrators, Identity and access management teams, Application owners.
  • Affected industries: Cross-industry enterprises, Organizations using cloud identity providers, Organizations using third-party SaaS applications.
  • Attack channels: email, website.
  • Impersonated: Microsoft device sign-in, A trusted brand or innocuous security/privacy application, A legitimate identity provider or trusted service.

Red flags to watch for

  • The code was initiated by someone else rather than by the employee's own device.
  • The request asks the employee to authenticate a device they did not set up.
  • A legitimate Microsoft page does not make the unsolicited code safe.
  • The app name is vague, such as "Security App" or "Privacy Policy Extension."
  • Requested permissions exceed what the app's stated purpose needs.
  • A familiar brand name on the consent screen does not prove that the underlying application is legitimate.
  • The final destination changes from the identity provider to an unexpected domain.
  • The sign-in flow produces an unexpected error or redirect.
  • The URL contains an unfamiliar destination or suspicious error parameters.
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

Can OAuth phishing really bypass MFA?

Yes. The victim completes authentication through a legitimate identity provider and satisfies MFA, but the attacker ends up with the resulting token or consent grant, giving them access without ever needing the password or MFA code directly.

Why doesn't a password reset stop this attack?

Refresh tokens can provide lasting access and may survive password resets unless an administrator explicitly revokes them.

What is device-code phishing?

An attacker requests a device sign-in code from a legitimate identity provider, then tricks the victim into entering that code on the real login page, unknowingly authenticating the attacker's session.

How can organizations reduce this risk?

Organizations should restrict end-user application consent, require administrator approval for new app permissions, and audit redirect URIs and granted permissions.

Read the video transcript

A real Microsoft sign-in page can still be a trap. An email says, ‘Go to microsoft.com/devicelogin and enter this code.’ You sign in and pass MFA, but that code links your account to a device you never set up. That’s device-code OAuth phishing. The same trick can hide behind ‘Security App’: click Allow on excessive permissions, and a token may keep access even after a password reset. Your move: approve sign-ins or app access only when you started the request yourself.

MITRE ATT&CK techniques

T1566.002 - Phishing: Spearphishing Link · PhishingT1204.001 - User Execution: Malicious Link · User ExecutionT1528 - Steal Application Access TokenT1550.001 - Use Alternate Authentication Material: Application Access TokenT1656 - Impersonation

Categories

Similar attacks

Fake Bid Emails Abuse Microsoft Device Codes

Fake Bid Emails Abuse Microsoft Device Codes

Cofense analyzed real phishing emails disguised as bidding invitations. The emails send recipients to fake, branded login and device-enrollment pages, then trick them into entering a device code in a genuine Microsoft prompt. Doing so can authorize an attacker’s session without giving them the…

October 20, 2026
Attackers Hide Malware in Trusted Email Threads

Attackers Hide Malware in Trusted Email Threads

Threat actors are hijacking existing email conversations, or patiently starting new ones, to build trust before sending a malicious reply. The final message commonly poses as a meeting invitation, secure message, shared file, or important document and leads to credential theft or remote-access…

October 21, 2026
AI-Crafted Emails Hide the Usual Warning Signs

AI-Crafted Emails Hide the Usual Warning Signs

Proofpoint described real campaigns where attackers used highly tailored, AI-style messages to make phishing and payment fraud requests appear routine. Examples included property enquiries that led to malicious meeting invitations, device-code phishing pages disguised as business services, and fake…

October 21, 2026
Antidetect Browsers Fuel Stealth Phishing Fraud

Antidetect Browsers Fuel Stealth Phishing Fraud

The report documents how criminals use antidetect browsers to make stolen sessions and phishing logins appear to come from legitimate, local devices. A commercially available Browser-in-the-Middle workflow can relay a victim’s login details to real services such as Google, Microsoft, Facebook, and…

October 20, 2026
Fake Calendar Invites Steal Microsoft Logins

Fake Calendar Invites Steal Microsoft Logins

Check Point researchers identified a large credential-phishing campaign that used counterfeit calendar invitations to send people to fake Microsoft sign-in pages. The campaign used calendar attachments and deceptive meeting links, and targeted more than 40,000 organizations with over 302,000…

October 19, 2026
Hijacked CDU Mailbox Sends 6,500 Phishing Emails

Hijacked CDU Mailbox Sends 6,500 Phishing Emails

Attackers broke into the email account of a CDU Heilbronn district executive and used the trusted mailbox to send roughly 6,500 fake messages. The emails used an event invitation as a lure and directed recipients to a link for a supposed document, making this a credible internal-email phishing…

October 17, 2026