EvilTokens Phishing Persists Post-Takedown by Abusing OAuth Device Code Flow
Written by AI from the linked story. Not reviewed by an editor. How this works
Even after law enforcement action dismantled the EvilTokens infrastructure, over 200 active phishing hosts continued operating in the months that followed, demonstrating that takedowns alone cannot stop a widely distributed phishing-as-a-service ecosystem. The attack's core technique — abusing the legitimate OAuth device code flow — bypasses traditional phishing defenses because it never presents a fake login page, instead tricking users into authorizing a device that grants attackers persistent tokens. Once access and refresh tokens are stolen, attackers can maintain long-term access to Microsoft 365 environments, read emails, and silently create inbox rules without needing the victim's credentials again. This matters because organizations relying solely on perimeter defenses and password hygiene remain fully exposed to token-based persistent access attacks.
Tactical Insight
Immediate actions
- Disable or restrict the OAuth device code flow authentication method in Microsoft Entra ID (Azure AD) Conditional Access policies unless it is explicitly required for specific devices.
- Audit all existing OAuth application consents and revoke any tokens or permissions granted to unrecognized or suspicious applications.
- Enable Microsoft Defender for Office 365 alerts for anomalous inbox rule creation and unusual OAuth consent grants.
Long-term improvements
- Enforce Conditional Access policies that require compliant, managed devices and block legacy or unusual authentication flows including device code flow for all users.
- Train users to recognize device code phishing lures — particularly unexpected prompts asking them to visit a URL and enter a code — through regular, scenario-based security awareness exercises.
- Implement a formal OAuth application governance program that inventories, reviews, and approves all third-party application consents on a recurring schedule.
Detection measures
- Monitor Microsoft 365 audit logs for suspicious inbox rule creation, forwarding rules, and OAuth token issuances outside expected device types or locations.
- Configure SIEM alerts for high-volume or geographically anomalous token refresh activity that may indicate a stolen refresh token being actively used.
- Subscribe to threat intelligence feeds and Microsoft security advisories to detect phishing-as-a-service infrastructure reuse even after formal takedowns.