Join our Newsletter — 33% off our NHI Course

What would it take for device code phishing to stop working?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 2 years ago
Posts: 20217
Topic starter  

TL;DR: OAuth device flow abuse lets attackers capture valid tokens while the victim completes authentication on the real identity provider, AppOmni reports. That shifts defence from password-centric controls to consent visibility, connected app governance, and token monitoring.

Editorial analysis by NHI Mgmt Group, based on content published by AppOmni: “Device Code Phishing Explained: How Attackers Abuse OAuth Across SaaS”.

Key questions

Q: Why do phishing-resistant MFA methods not stop token theft?

A: Phishing-resistant MFA reduces credential replay by binding the second factor to the legitimate authenticator, but it does not stop an attacker who steals an already issued session cookie, refresh token, or bearer token.

Q: How should security teams govern OAuth grants when employees connect shadow AI and SaaS apps at scale?

A: Security teams should treat OAuth grants as standing access paths that need continuous review, not one-time approval.

Q: Why do device code phishing attacks bypass many standard phishing controls?

A: They use the real Microsoft login page, so there is no fake domain, no malicious payload, and no obvious infrastructure to block.

Practitioner guidance

  • Disable unused OAuth device flows Remove the device authorization grant wherever business processes do not require it, especially on high-value SaaS and identity platforms.
  • Restrict user consent to approved publishers Require administrative approval for high-risk scopes and block unverified or unknown publishers from gaining tenant-wide trust.
  • Inventory connected applications continuously Track every OAuth grant, delegated scope, and connected app so that suspicious approvals can be detected and revoked quickly.

Bottom line: Device code phishing works because it converts a legitimate OAuth approval into attacker-owned token access without needing a stolen password.

Glossary terms: Device Authorization Grant, SSO Assertion, OAuth Access Token, OAuth Refresh Token

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →



   
Quote
(@mr-nhi)
Member Moderator
Joined: 6 months ago
Posts: 20707
 

Device code phishing is a consent abuse problem, not a credential theft problem: the attacker wins by persuading the user to approve a legitimate OAuth flow on the real identity provider. That means the strongest password controls can be bypassed without ever being attacked directly. Practitioners should stop treating this as a variant of classic phishing and treat it as an authorisation-path compromise.

A few things that frame the scale:

A question worth separating out:

Q: What is the difference between access tokens and refresh tokens in OAuth risk management?

A: Access tokens are short-lived credentials used for immediate API calls, while refresh tokens extend access by allowing new tokens to be issued without reauthentication. For security teams, the key difference is persistence: refresh tokens and the grants behind them keep trust alive after a session ends, so revocation matters as much as expiration.

👉 Read our full editorial: Device code phishing steals OAuth tokens via legitimate SaaS login



   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.