Phishing Kit Exploits OAuth 2.0 Device Code Flow for Account Takeovers
Phishing attacks have evolved significantly, with the recent emergence of the EvilTokens phishing kit demonstrating a sophisticated method of compromising Microsoft 365 accounts without needing to steal passwords. This toolkit leverages the OAuth 2.0 device authorization flow, enabling attackers to manipulate legitimate authentication processes.
EvilTokens, noticed in active campaigns since February 2026, operates under a phishing-as-a-service model, gaining traction among cybercriminals through Telegram advertisements. The toolkit facilitates account takeovers and business email compromise by presenting victims with what appears to be legitimate login requests. After a period of reconnaissance targeting specific accounts, attackers send messages bearing enticing subject matter, such as invoices or requests for document access. When targeted users unwittingly enter an OAuth device code into a legitimate Microsoft portal, they unknowingly authorize the attacker’s device instead of their own.
The operational mechanics of EvilTokens highlight a critical vulnerability in modern authentication systems. Attackers dynamically generate device codes, which are time-sensitive, adding urgency to their deception. Microsoft’s systems then issue access and refresh tokens based on this seemingly valid authentication flow. Consequently, attackers gain access to sensitive organizational resources, including email and collaboration platforms.
Given its ability to circumvent conventional phishing safeguards, EvilTokens poses a serious threat. Attackers effectively strip away typical red flags, such as misspelled domains, and exploit even robust two-factor authentication mechanisms by ensuring victims complete authentication for the wrong session. The lure of a legitimate request makes this method particularly harmful, as it undermines the very protections users believe they have against unauthorized access.
Defensive Context
Organizations utilizing Microsoft 365, particularly those in sectors like finance, HR, and logistics, should be especially vigilant regarding potential phishing attempts utilizing the EvilTokens kit. This attack type highlights the evolving nature of phishing threats, where even trained employees may inadvertently contribute to security breaches. Stakeholders in these sectors should prioritize awareness of the methods employed in these types of attacks.
Why This Matters
This emerging tactic signals a potentially increased risk for organizations that could be exploited if users are not adequately trained to recognize deceptive authentication requests. Entities heavily reliant on the OAuth 2.0 device authorization flow are particularly vulnerable and should consider their exposure based on the evolving sophistication of phishing attacks.
Defender Considerations
Organizations should closely monitor for unexpected requests for device codes, particularly from unrecognized sources. Implementing robust access control policies may mitigate the risk, focusing on limiting the use of device code flows where not essential. Companies should also ensure that their security awareness training keeps pace with evolving threat landscapes, emphasizing that legitimate authentication processes can also be subject to exploitation.
Indicators of Compromise (IOCs)
No specific IOCs were documented in the article. However, efforts to identify unusual authentication patterns across Microsoft 365 accounts, especially those involving OAuth device codes, may indicate potential compromise.






