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.

Barracuda   |  Sekoia

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

Cyber Security Intelligence: Captured Organised & Accessible


 

« YouTube Grants Hollywood Deepfake Detection Access
The Potential £Multimillion Blind Spot In UK Dealmaking »

ManageEngine
CyberSecurity Jobsite
Check Point

Directory of Suppliers

Lunar

Lunar

Lunar is a free, enterprise-grade, compromised-credentials monitoring platform, available to every company, everywhere.

ManageEngine

ManageEngine

As the IT management division of Zoho Corporation, ManageEngine prioritizes flexible solutions that work for all businesses, regardless of size or budget.

Jooble

Jooble

Jooble is a job search aggregator operating in 71 countries worldwide. We simplify the job search process by displaying active job ads from major job boards and career sites across the internet.

IT Governance

IT Governance

IT Governance is a leading global provider of information security solutions. Download our free guide and find out how ISO 27001 can help protect your organisation's information.

Keygraph

Keygraph

Keygraph builds AI penetration testing for application security teams. Keygraph also builds Shannon, a leading open-source AI pentester

Spirion

Spirion

Spirion offers data discovery, classification, and protection tools for your business's privacy, security, and compliance program to avoid gaps and risks.

Seceon

Seceon

Seceon OTM, is a cyber security advanced threat management platform that visualizes, detects, and eliminates threats in real time.

HelseCERT

HelseCERT

HelseCERT is the health and care sector's national information security center for Norway.

Digital Law

Digital Law

Digital Law is the only UK law firm to specialise solely in online, data and cyber law.

Cord3

Cord3

Cord3 delivers data protection, even from trusted administrators – or hackers posing as administrators – with high privilege.

Stairwell

Stairwell

Stairwell is building a new approach to cybersecurity around a vision that all security teams should be able to determine what’s good, what’s bad, and why.

SightGain

SightGain

SightGain is the only integrated risk management solution focused on cybersecurity readiness using real-world attack simulations in your live environment.

Cyber Dacians

Cyber Dacians

Cyber Dacians offers Information and Cyber Security Consulting Services. We help you to test the effectiveness of your security defenses and build a secure infrastructure.

US Fleet Cyber Command (FLTCYBER)

US Fleet Cyber Command (FLTCYBER)

US Fleet Cyber Command is responsible for Navy information network operations, offensive and defensive cyberspace operations, space operations and signals intelligence.

Purism

Purism

Purism works with hardware component manufactures and the free software community to build high quality hardware that respects your digital life.

GM Sectec

GM Sectec

GM Sectec is the world's largest independent Cyber Defense and Fraud Prevention firm laser focused on payment security.

Plex IT

Plex IT

Plex IT provides managed IT services to organisations along with managed security services.

AWARE7

AWARE7

IT security for human and machine. With the help of our products and services, we work with you to increase the IT security level of your organization.

Complete Cyber

Complete Cyber

Complete Cyber provide professional cybersecurity services and products to help secure your infrastructure, systems and data.

Defend-OT

Defend-OT

Defend-OT is a Belgium-based cybersecurity firm specializing in OT environments.

Veracity Trust Network

Veracity Trust Network

Veracity Trust Network safeguards organisations from the threat of bot attacks on their public facing platforms.