Seven Million Device Code Phishing Attacks Detected
Threat analysts at Barracuda have identified more than seven million device code phishing attacks in the past four weeks. The majority are powered by the recently reported EvilTokens phishing kit, which targets Microsoft 365 and Entra ID environments.
The findings appear in a detailed blog post linked below and highlight a growing threat that exploits legitimate OAuth 2.0 device code authentication flows.
Device code authentication is an OAuth 2.0 method designed for devices with limited input capabilities, such as smart TVs, printers or command-line tools. Users sign in on one device by entering a short code on another trusted device. Attackers abuse this process by requesting a genuine device code from Microsoft and then tricking victims into entering it on the official microsoft.com/devicelogin page.
Once the victim completes authentication, Microsoft issues access and refresh tokens directly to the attacker.
Advantages Over Traditional Credential Phishing
This technique offers several benefits compared with conventional phishing that relies on fake login pages. It uses only legitimate Microsoft authentication URLs, making it harder for email filters to detect suspicious links. The method bypasses multifactor authentication and conditional access policies because the victim authorises the attacker’s device themselves. Attackers gain persistent access through refresh tokens that remain valid for days or weeks, even after password changes.
The approach also exploits users’ familiarity with entering six-to-eight character codes to link devices and enables stealthier lateral movement without triggering immediate alerts.
Attack Delivery & Execution
Attacks often begin by hijacking an existing email conversation thread. The message claims an ACH payment has been issued and requires review, then includes a link that redirects first to a document on the trusted platform app.box.com and subsequently to a phishing page.
The phishing page uses an encrypted JavaScript loader that decrypts its payload on the victim’s browser. After session initialisation, the victim is redirected to the legitimate Microsoft authentication page where they enter their verification code, email address and password. The attacker’s device is thereby authorised, and the session is tracked through polling requests.
Wider Adoption & Future Risk
Barracuda has observed other threat actors combining device code phishing with Tycoon 2FA capabilities. Security researchers expect additional phishing kits to adopt the technique as its effectiveness becomes more widely known.
The EvilTokens kit has operationalised the method as phishing-as-a-service, increasing its scale and accessibility to a broader range of attackers.
Recommended Defencive Measures
Organisations can reduce exposure through layered security controls. These include advanced email filtering to identify hijacked conversation threads, identity protection mechanisms, and continuous monitoring of device authorisation activity. Strict controls on device code flows, combined with user awareness training that emphasises entering verification codes only in verified contexts, provide additional protection against this evolving threat.
The rise of device code phishing demonstrates how attackers are shifting from technical exploits to the manipulation of trusted authentication processes and user behaviour. As the technique spreads through ready-made kits, timely implementation of behavioural monitoring and policy enforcement will be essential to limit successful compromises.
Image: Ideogram
You Might Also Read:
What 4.5 Billion Emails Reveal About AI-Driven Attacks:
If you like this website and use the comprehensive 8,000-plus service supplier Directory, you can get unrestricted access, including the exclusive in-depth Directors Report series, by signing up for a Premium Subscription.
- Individual £5 per month or £50 per year. Sign Up
- Multi-User, Corporate & Library Accounts Available on Request
- Inquiries: Contact Cyber Security Intelligence
Cyber Security Intelligence: Captured Organised & Accessible






