Threat reportPhishingTL-2026-1793
Device Code Phishing: OAuth Device Authorization Grant Abuse Bypasses All MFA Forms, Including Passkeys
Device code phishing abuses the OAuth 2.0 Device Authorization Grant (RFC 8628) to steal post-authentication access and refresh tokens, defeating every MFA form including FIDO2 passkeys because it targets the authorization layer rather than login.
Key facts
| Identifiers | TL-2026-1793 |
|---|---|
| Also known as | Device Code Phishing, OAuth Device Code Attack, Device Authorization Grant Phishing, Device Code Flow Abuse |
| Severity | HIGH |
| Affected products | IETF / OAuth Working Group OAuth 2.0 Device Authorization Grant (RFC 8628); Microsoft Entra ID / Microsoft 365 device code authentication flow; Salesforce Salesforce Setup / Connect App device authorization flow; GitHub GitHub OAuth Device Flow; Amazon Web Services AWS IAM Identity Center / CLI device authorization grant |
| Attribution | Storm-2372, ShinyHunters (medium confidence) |
| Nation-state nexus | Russia |
| Tools | ARTSender, ARToken, Data Loader (spoofed), EvilTokens, Kali365, Tycoon2FA |
| MITRE ATT&CK techniques | T1027 Obfuscated Files or Information, T1078 Valid Accounts, T1098 Account Manipulation, T1110 Brute Force, T1114 Email Collection, T1199 Trusted Relationship, T1497 Virtualization/Sandbox Evasion, T1528 Steal Application Access Token, T1530 Data from Cloud Storage, T1531 Account Access Removal, T1534 Internal Spearphishing, T1539 Steal Web Session Cookie and 5 more in the attack flow |
| Motivation | FINANCIAL |
| Target sectors | government administration, ngo, itservices, technology, defense, telecoms, health, higher education, energy, oilandgas, retail, education |
| Target regions | North America, Europe, Africa, Middle East, Global |
| Detection rules | 9 (1 shown free) |
| Sources | 14 cited sources |
Detection coverage
As of 2026-07-31, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-1793 across Splunk SPL, Microsoft KQL and Sigma, covering 25 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.
Free detection: Device Code Phishing — AADSTS50199 Pending Sign-In Followed by Rapid Success
Detects the Microsoft-published core hunting signal for OAuth 2.0 Device Authorization Grant (RFC 8628) phishing: an Entra ID sign-in error 50199 (device-code pending / not yet approved) for a user, followed by a successful sign-in (ResultType 0) for the same UPN within 5 minutes. This pattern is consistent with Storm-2372, ShinyHunters/Scattered LAPSUS$ Hunters, and commodity EvilTokens/ARToken/Tycoon2FA/Kali365 kit activity where a victim approves an attacker-supplied device code on the IdP's own legitimate login page.
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1528, T1078.004, T1566.002, T1598.001
- Data sources: azure_ad_signin_logs, office365_management_activity
- Severity: high
- Confidence: high
Splunk SPL
index=azuread sourcetype="azure:monitor:aad:signinlogs" ResultType=50199
| eval pending_time=_time
| rename UserPrincipalName as upn, CorrelationId as pending_corr
| join type=inner upn
[ search index=azuread sourcetype="azure:monitor:aad:signinlogs" ResultType=0
| eval success_time=_time
| rename UserPrincipalName as upn
| fields upn success_time IPAddress AppDisplayName CorrelationId ]
| eval time_to_success_sec=success_time-pending_time
| where time_to_success_sec>=0 AND time_to_success_sec<=300
| table pending_time success_time upn IPAddress AppDisplayName pending_corr CorrelationId time_to_success_sec
| sort - success_timeMicrosoft KQL
let pending = SigninLogs
| where TimeGenerated > ago(24h)
| where ResultType == "50199"
| project UserPrincipalName, PendingTime = TimeGenerated, PendingCorrelationId = CorrelationId;
let success = SigninLogs
| where TimeGenerated > ago(24h)
| where ResultType == "0"
| project UserPrincipalName, SuccessTime = TimeGenerated, IPAddress, AppDisplayName, CorrelationId;
pending
| join kind=inner (success) on UserPrincipalName
| extend TimeToSuccessSeconds = datetime_diff('second', SuccessTime, PendingTime)
| where TimeToSuccessSeconds >= 0 and TimeToSuccessSeconds <= 300
| project PendingTime, SuccessTime, UserPrincipalName, IPAddress, AppDisplayName, PendingCorrelationId, CorrelationId, TimeToSuccessSeconds
| order by SuccessTime descSigma
title: Device Code Phishing - Rapid Sign-In Success Following AADSTS50199
id: 7a1c9e2f-4b3d-4a1e-9c6f-2e8b5d1a7f01
status: experimental
description: Detects the Microsoft-published hunting pattern for device code phishing - a device-code-pending sign-in error (50199) followed by a successful sign-in for the same account within 5 minutes, consistent with Storm-2372 and commodity PhaaS kit (EvilTokens/ARToken/Tycoon2FA/Kali365) tradecraft.
references:
- https://www.microsoft.com/en-us/security/blog/2025/02/13/storm-2372-conducts-device-code-phishing-campaign/
- https://thehackernews.com/2026/07/6-reasons-why-device-code-phishing-is.html
author: Threadlinqs Team
date: 2026-07-31
tags:
- attack.credential-access
- attack.initial-access
- attack.t1528
- attack.t1078.004
- attack.t1566.002
- attack.tool.eviltokens
- attack.tool.artoken
logsource:
product: azure
service: signinlogs
detection:
error_event:
ResultType: '50199'
success_event:
ResultType: '0'
timeframe: 5m
condition: error_event followed by success_event within timeframe
falsepositives:
- Legitimate device-code sign-ins for input-constrained devices (smart TVs, CLI tools, IoT) where the user approves within the normal polling window
- Users on slow or intermittent networks retrying an authentication prompt
level: highKnown false positives:
- Legitimate use of the OAuth device code flow for CLI tools, smart TVs, or IoT devices where the approval falls inside the normal 5-minute polling window
- Users retrying sign-in on high-latency or unreliable networks producing a benign pending-then-success pattern
Tuning notes: Start the 5-minute window at Microsoft's published default and narrow to 2-3 minutes if false-positive volume is high; correlate IPAddress/AppDisplayName change between the pending and success events (a mismatch strengthens the signal since the attacker's polling client and the victim's browser are on different IPs); exclude service accounts and break-glass accounts with documented device-code use cases.
- Device Code Phishing — AADSTS50199 Pending Sign-In Followed by Rapid Success · unlock with TL Creds
- Primary Refresh Token Persistence — Microsoft Authentication Broker Abuse & Lookalike Connected-App Registration · unlock with TL Creds
- ARTSender-Style BEC Automation & Callback to ARToken/EvilTokens PhaaS Infrastructure · unlock with TL Creds
- Device Code Phishing — AADSTS50199 Pending Sign-In Followed by Rapid Success · unlock with TL Creds
- Primary Refresh Token Persistence — Microsoft Authentication Broker Abuse & Lookalike Connected-App Registration · unlock with TL Creds
- ARTSender-Style BEC Automation & Callback to ARToken/EvilTokens PhaaS Infrastructure · unlock with TL Creds
- Primary Refresh Token Persistence — Microsoft Authentication Broker Abuse & Lookalike Connected-App Registration · unlock with TL Creds
- ARTSender-Style BEC Automation & Callback to ARToken/EvilTokens PhaaS Infrastructure · unlock with TL Creds
Indicators of compromise
As of 2026-07-31, Threadlinqs Intelligence tracks 25 indicators of compromise for TL-2026-1793.
Sample indicators (3 of 25)
- Domain:
dashboard-bl[.]pamconj[.]com - URL:
hxxps://microsoft[.]com/devicelogin - Domain:
spx[.]pamconj[.]com
Defanged, TLP:CLEAR. Full set of 25 indicators: unlock with TL Creds.
Technical analysis
The technique moved from a 2020 research curiosity to nation-state tradecraft (Storm-2372, since August 2024) to a fully industrialized criminal commodity in 2025-2026 via phishing-as-a-service kits (EvilTokens, ARToken, Tycoon2FA, Kali365, and 25+ others tracked by Push Security), with Microsoft observing 10-15 new campaigns every 24 hours and Barracuda logging 7 million attacks in four weeks (April 2026).
Device code phishing exploits the OAuth 2.0 Device Authorization Grant, a flow designed for input-constrained devices (smart TVs, CLIs, IoT) where a user visits a verification URL on a separate, trusted device and enters a short code to authorize a session. Because the flow is entirely spec-compliant and occurs on the identity provider's own legitimate domain, it structurally bypasses every authentication-layer defense: passwords, OTPs, push MFA, and even phishing-resistant FIDO2/passkey authentication, since "proving your identity and granting access to an application are two different things" and this attack targets only the latter.
The canonical attack chain: an attacker requests a real device code from the identity provider (Microsoft, Salesforce, GitHub, AWS, etc.), then delivers a lure — a fake Teams meeting invite, an IT-helpdesk vishing call, a Telegram-distributed phishing kit lure, or a spoofed verification/CAPTCHA page — that instructs the victim to visit the provider's own legitimate device-login page and enter the attacker-supplied code. The victim authenticates normally and clicks "approve," and the identity provider issues an OAuth access token and refresh token directly to the attacker's polling client. No credentials or MFA codes are ever exposed to the attacker, and no authentication-layer control (conditional access risk scoring aimed at sign-in behavior, MFA fatigue, phishing-resistant hardware keys) fires, because the victim did, in fact, authenticate themselves.
The technique was first described by researchers in 2020 but remained a curiosity until Microsoft's Threat Intelligence Center identified Storm-2372, a threat actor assessed with medium confidence to align with Russian state interests, running an active device code phishing campaign since August 2024 against government, NGO, IT services, defense, telecom, healthcare, higher education, and energy/oil-and-gas targets across Europe, North America, Africa, and the Middle East. Storm-2372 impersonated prominent individuals over WhatsApp, Signal, and Teams to build rapport before sending fake meeting invitations; in February 2025 Microsoft observed the group evolve to abuse the Microsoft Authentication Broker client ID specifically to mint Primary Refresh Tokens (PRTs) and register attacker-controlled devices, extending persistence beyond simple token theft into full device-bound identity compromise that survives password resets.
In 2025-2026 the technique was industrialized as a criminal commodity. ShinyHunters (operating within the Scattered LAPSUS$ Hunters alliance alongside Scattered Spider and LAPSUS$, tracked separately as UNC6040 for the vishing cluster) combined voice phishing — cold-calling victims as fake IT support citing a "mandatory passkey rollout" or compliance issue — with device code phishing against Salesforce's /setup/connect flow, registering attacker-controlled "DataLoader" connected apps that impersonate Salesforce's legitimate Data Loader integration and request broad, refresh-token-capable API scopes. This campaign compromised over 1,000 organizations and produced roughly 1.5 billion stolen records, and was a contributing vector (via a September 2025 Salesforce tenant compromise) to the May 2026 Instructure/Canvas breach affecting approximately 275 million individuals across ~330 school Free-For-Teacher portals. Push Security separately tracked a 37.5x increase in device code phishing activity since the start of 2026 across 12+ distinct kits.
Commercial phishing-as-a-service platforms accelerated adoption further: Sekoia first documented EvilTokens in March 2026 ($1,500 one-time plus $500/month), after which Microsoft VP Tanmay Ganacharya reported 10-15 distinct new campaigns launching every 24 hours. Cisco Talos subsequently exposed ARToken, a React SPA operator panel sharing EvilTokens' API contracts and PRT lifecycle, exposing 80+ API endpoints for device code phishing, PRT persistence (setup/refresh/renew/reacquire/cookie), full Outlook mailbox and SharePoint/OneDrive access, and an automated BEC module ("ARTSender") that sends as the victim, creates evidence-suppressing inbox rules, and monitors compromised mailboxes for keywords in real time — Talos characterized it as "a complete BEC operations environment." ARToken layers a seven-stage client-side anti-bot/anti-analysis system (headless-browser and navigator.webdriver detection, mouse-trajectory validation, 800ms interaction gating) atop a server-side X-Antibot-Token (SHA-256, 5-minute window) and XOR-encrypts delivered payloads to evade static URL scanners. Tycoon2FA — previously the dominant Adversary-in-the-Middle credential-phishing kit, disrupted by a Microsoft/Europol takedown in March 2026 — resurfaced in May 2026 with device code phishing bolted onto its largely intact core kit. The FBI/IC3 issued PSA I-052126-PSA on 21 May 2026, its first advisory naming a specific phishing kit (Kali365), warning that the Telegram-distributed, subscription-based platform lowers the skill barrier via AI-generated lures and real-time victim-tracking dashboards. Barracuda's April 2026 Threat Spotlight logged over 7 million device code attacks in four weeks, describing the technique as fully industrialized under a PhaaS model. A related browser-native technique, ConsentFix (Push Security's Browser & Identity Attacks Matrix ID SAT1051, disclosed December 2025 and initially linked to Russian state-affiliated APT29), abuses trusted first-party OAuth applications and consent-grant flows via a spoofed verification/CAPTCHA page to achieve the same passkey-defeating, post-authentication token theft — evidence that the underlying weakness (authorization-layer trust divorced from authentication-layer defenses) is being exploited through multiple, converging techniques rather than one isolated kit.
Across observed campaigns, Microsoft 365/Entra ID accounts for roughly 99% of detected device code phishing targets, with Salesforce, GitHub, and AWS also confirmed as targeted OAuth 2.0 implementers. Because the flow is a legitimate, spec-compliant protocol feature rather than a software defect, there is no vendor patch; the only effective controls are blocking or conditionally restricting the device authorization grant itself, and behavioral/browser-native detection of the phishing kits' delivery infrastructure rather than IOC-based blocking alone.
MITRE ATT&CK techniques by tactic:
Defense Evasion
T1027 Obfuscated Files or Information; T1078 Valid Accounts; T1497 Virtualization/Sandbox Evasion
Persistence
Credential Access
T1110 Brute Force; T1528 Steal Application Access Token; T1539 Steal Web Session Cookie
Collection
T1114 Email Collection; T1530 Data from Cloud Storage
Initial Access
T1199 Trusted Relationship; T1566 Phishing
Impact
Lateral Movement
T1534 Internal Spearphishing; T1550 Use Alternate Authentication Material
defense-impairment
T1556 Modify Authentication Process
Resource Development
Reconnaissance
Remediation
Patches
- No vendor patch applies — device code phishing abuses a legitimate, spec-compliant OAuth 2.0 feature (RFC 8628 Device Authorization Grant), not a software vulnerability
Immediate actions
- Block or restrict the OAuth 2.0 device authorization grant via Conditional Access / device-code policies where the flow is not operationally required, across Entra ID, Salesforce Setup/Connect, GitHub, and AWS IAM Identity Center
- Deploy hunting queries for clicks on microsoft.com/devicelogin and login.microsoftonline.com/common/oauth2/deviceauth correlated with Entra ID sign-in error code 50199 followed by a successful sign-in within 5 minutes
- Revoke active refresh tokens and Primary Refresh Tokens (revokeSignInSessions) for any account suspected of completing an unsolicited device code prompt, and force re-registration of any device enrolled via the Microsoft Authentication Broker client ID during the suspected window
- Audit and remove unfamiliar 'Data Loader' or lookalike connected/OAuth apps granted broad, refresh-token-capable API scopes in Salesforce, Microsoft 365, and other SaaS tenants
- Brief users and helpdesk staff that legitimate IT support will never ask a user to read back, relay, or enter a device code over a phone call, chat, or unsolicited meeting invite
Workarounds
- Disable the device authorization grant entirely for tenants/organizations with no genuine input-constrained (smart TV/CLI/IoT) use case
- Where the flow cannot be disabled, restrict it via Conditional Access named-location, compliant-device, and sign-in-risk requirements to shrink the exploitable population
Longer-term hardening
- Recognize that phishing-resistant MFA (FIDO2/passkeys) does not stop device-code or OAuth-consent (ConsentFix-style) phishing, since both attack the authorization layer post-authentication; layer authorization-time controls (Conditional Access, continuous access evaluation, sign-in risk policies) on top of authentication-time MFA
- Deploy browser-native/in-browser detection capable of identifying device-code and OAuth-consent phishing pages behaviorally, independent of URL/domain reputation, given the rapid domain and Cloudflare Workers churn used by kits like ARToken
- Establish continuous OAuth/connected-app governance reviewing consent grants, requested scopes, and third-party integrator trust relationships (e.g., Salesloft/Drift-style supply-chain OAuth abuse)
- Build persistent hunting content for Primary Refresh Token persistence patterns (setup/refresh/renew/reacquire/cookie cycles) and anomalous device registration events in Entra ID
Affected and fixed versions
- IETF / OAuth Working Group — OAuth 2.0 Device Authorization Grant (RFC 8628)
Vulnerable versions: all conformant implementations by design
Fixed in: N/A — protocol behaves as specified; mitigation is deployment-level restriction, not a spec fix - Microsoft — Entra ID / Microsoft 365 device code authentication flow
Vulnerable versions: all tenants with device code flow enabled and unrestricted
Fixed in: N/A — mitigated via Conditional Access device-code restriction policies, not a patch - Salesforce — Salesforce Setup / Connect App device authorization flow
Vulnerable versions: all orgs with device flow enabled for connected apps
Fixed in: N/A — mitigated via connected-app scope review and device-flow restriction - GitHub — GitHub OAuth Device Flow
Vulnerable versions: all OAuth Apps/organizations using device flow
Fixed in: N/A — mitigated via org-level OAuth app policy restriction - Amazon Web Services — AWS IAM Identity Center / CLI device authorization grant
Vulnerable versions: all accounts using CLI/SSO device authorization
Fixed in: N/A — mitigated via IAM Identity Center session policy restriction
Timeline
- Security researchers first publicly describe device code phishing as an abuse path for the OAuth 2.0 Device Authorization Grant.
- Microsoft Threat Intelligence Center observes Storm-2372, a threat actor assessed with medium confidence to align with Russian state interests, begin an active device code phishing campaign against government, NGO, IT, defense, telecom, healthcare, higher-education, and energy targets across Europe, North America, Africa, and the Middle East.
- Microsoft publishes a public advisory on the Storm-2372 device code phishing campaign, including tactical evolution toward abusing the Microsoft Authentication Broker client ID to mint Primary Refresh Tokens and register attacker-controlled devices.
- Push Security discloses ConsentFix, a browser-native OAuth consent-phishing technique (Browser & Identity Attacks Matrix ID SAT1051) that similarly defeats passkeys by exploiting the authorization layer; initial activity linked to Russian state-affiliated APT29.
- French cybersecurity firm Sekoia documents EvilTokens, a commercial phishing-as-a-service device code phishing kit priced at $1,500 one-time plus $500/month, marking industrialization of the technique as a criminal commodity.
- Microsoft observes device code phishing campaign volume scale to 10-15 entirely new campaigns launching every 24 hours, per Microsoft VP Tanmay Ganacharya.
- Barracuda's Threat Spotlight reports over 7 million device code phishing attacks detected in the preceding four weeks, describing the technique as fully industrialized under a PhaaS model.
- The Instructure/Canvas breach, tracing back to a September 2025 Salesforce tenant compromise, is disclosed as affecting approximately 275 million individuals across roughly 330 Free-For-Teacher school portals.
- ShinyHunters / Scattered LAPSUS$ Hunters' device-code-plus-vishing campaign against Salesforce tenants is confirmed to have compromised over 1,000 organizations and produced approximately 1.5 billion stolen records, with attacker-registered lookalike 'DataLoader' connected apps as the OAuth abuse vector.
- The FBI/IC3 issues Public Service Alert I-052126-PSA on the Kali365 phishing-as-a-service kit, its first advisory naming a specific device code phishing kit; Kali365 was first observed in April 2026 and is distributed via Telegram.
- Tycoon2FA, previously the dominant Adversary-in-the-Middle credential phishing kit disrupted by a March 2026 Microsoft/Europol takedown, resurfaces with device code phishing capability added atop its largely intact core kit (hardcoded expiry timestamp of 2026-05-29T00:00:00Z observed in kit lure pages).
- Cisco Talos publishes analysis of ARToken, a React SPA phishing-as-a-service operator panel sharing EvilTokens' API contracts, exposing 80+ endpoints for device code phishing, Primary Refresh Token persistence, mailbox/SharePoint access, and automated BEC operations.
- Microsoft publishes guidance for defending SaaS-based applications against ShinyHunters' OAuth abuse techniques, including device code phishing.
- The Hacker News publishes '6 Reasons Why Device Code Phishing Is Exploding,' synthesizing the technique's rapid escalation and citing Push Security's tracking of 25+ distinct device code phishing kits.
Sources cited
- Kali365 Phishing-as-a-Service Kit Hijacks Microsoft 365 Access Tokens (PSA I-052126-PSA) ic3.gov · Advisory · 2026-05-21
- Storm-2372 conducts device code phishing campaign Microsoft · Vendor report · 2025-02-13
- Defending SaaS-based applications against ShinyHunters OAuth abuse Microsoft · Vendor report · 2026-07-13
- Inside Tycoon2FA: How a leading AiTM phishing kit operated at scale Microsoft · Vendor report · 2026-03-04
- ARToken: Inside an EvilTokens affiliate panel targeting Microsoft 365 Cisco Talos · Vendor report · 2026-07-01
- Threat Spotlight: Device code phishing is on the rise with 7 million attacks in four weeks blog.barracuda.com · Vendor report · 2026-04-23
- ConsentFix (SAT1051) — Browser & Identity Attacks Matrix pushsecurity.com · Research · 2025-12-11
- How three techniques are behind ShinyHunters' 2026 campaigns (Instructure breach analysis) pushsecurity.com · Blog · 2026-05-01
- Push Security Uncovers "ConsentFix": A New Class of Browser-Native Phishing Attack pushsecurity.com · Blog · 2025-12-11
- Tycoon 2FA Operators Adopt OAuth Device Code Phishing to Bypass MFA esentire.com · Blog · 2026-05-15
- Analyzing the rise in device code phishing attacks in 2026 pushsecurity.com · Blog · 2026-06-01
- How we built an agentic threat hunting pipeline at Push pushsecurity.com · Blog · 2026-05-12
- 6 Reasons Why Device Code Phishing Is Exploding The Hacker News · News · 2026-07-31
- EvilTokens device-code phishing kit totally more evil than we all thought The Register · News · 2026-07-01
More from Storm-2372
Previous and next in phishing
Drafted by the Threadlinqs research pipeline from 14 sources; published ; last updated —.