[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fKSiEzr8Lw8w6AYMXe_NyY76RpnlF0ldkShTVHawStJQ":3},{"lesson":4},{"id":5,"slug":6,"article_id":7,"title":8,"body":9,"prevention":10,"framework_refs":11,"framework_notes":17,"status":23,"created_at":24,"published_at":25,"article":26,"tags":30,"podcasts":43,"controls":50},"09d0456d-172d-4882-98fd-4805548a3593","eviltokens-phishing-persists-post-takedown-by-abusing-oauth-device-code-flow","9b1262ac-655b-4bcb-ada5-d1df0cee570e","EvilTokens Phishing Persists Post-Takedown by Abusing OAuth Device Code Flow","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.","**Immediate actions:**\n- 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.\n- Audit all existing OAuth application consents and revoke any tokens or permissions granted to unrecognized or suspicious applications.\n- Enable Microsoft Defender for Office 365 alerts for anomalous inbox rule creation and unusual OAuth consent grants.\n\n**Long-term improvements:**\n- Enforce Conditional Access policies that require compliant, managed devices and block legacy or unusual authentication flows including device code flow for all users.\n- 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.\n- Implement a formal OAuth application governance program that inventories, reviews, and approves all third-party application consents on a recurring schedule.\n\n**Detection measures:**\n- Monitor Microsoft 365 audit logs for suspicious inbox rule creation, forwarding rules, and OAuth token issuances outside expected device types or locations.\n- Configure SIEM alerts for high-volume or geographically anomalous token refresh activity that may indicate a stolen refresh token being actively used.\n- Subscribe to threat intelligence feeds and Microsoft security advisories to detect phishing-as-a-service infrastructure reuse even after formal takedowns.",[12,13,14,15,16],"MITRE ATT&CK T1528: Steal Application Access Token","NIS2 Article 21(2)(j)","NIST SP 800-53 AC-20: Use of External Information Systems","CIS Control 6: Access Control Management","NIST CSF 2.0 DE.CM-01: Networks and network services are monitored to find potentially adverse events",{"NIS2 Article 21(2)(j)":18,"CIS Control 6: Access Control Management":19,"MITRE ATT&CK T1528: Steal Application Access Token":20,"NIST SP 800-53 AC-20: Use of External Information Systems":21,"NIST CSF 2.0 DE.CM-01: Networks and network services are monitored to find potentially adverse events":22},"This point requires multi-factor authentication and secured communications controls, and enforcing strong Conditional Access with MFA while restricting the device code flow would have blocked the token-theft mechanism at its source.","CIS Control 6 requires managing and restricting access through least-privilege principles; limiting which authentication flows — including device code — are permitted would have reduced attackers' ability to harvest persistent tokens.","EvilTokens specifically abuses the OAuth device code flow to steal Microsoft 365 access and refresh tokens, which is exactly the technique T1528 describes.","AC-20 requires organizations to control and authorize connections made through external authentication flows, which would apply to governing whether the OAuth device code grant is permitted for external application access to Microsoft 365.","Continuous monitoring of Microsoft 365 audit logs for anomalous inbox rules, OAuth consents, and token usage would have helped detect the ongoing campaign across the 200+ active hosts that survived the takedown.","published","2026-11-24T12:20:39.270456+00:00","2026-11-24T12:20:39.252+00:00",{"id":7,"url":27,"slug":28,"title":29},"https:\u002F\u002Fcybersecuritynews.com\u002Feviltokens-phishing\u002F","hackers-continue-eviltokens-phishing-after-microsoft-takedown-to-hijack-microsof-176a9d","Hackers Continue EvilTokens Phishing After Microsoft Takedown to Hijack Microsoft 365 Accounts",[31,37],{"id":32,"name":33,"slug":34,"description":35,"color":36},"1ec88fde-2d0f-4ed8-932a-33f5ccc0fdc7","Access Control","access-control","Excessive privileges, missing MFA, weak auth","#f97316",{"id":38,"name":39,"slug":40,"description":41,"color":42},"7261eb8f-acd4-4d93-a489-7fdd652ec0ea","Security Awareness","security-awareness","Phishing, social engineering, human error","#22c55e",[44],{"id":45,"date":46,"edition":47,"title":48,"audio_url":49},"3b43bd4e-14b8-4059-819c-44253f9d20bc","2026-11-24","afternoon","ThreatNoir Afternoon Brief — November 24","https:\u002F\u002Fcdn.threatnoir.com\u002Fpodcasts\u002F2026-11-24\u002Fthreatnoir-afternoon-brief-2026-11-24.mp3",[51,55,59],{"slug":52,"name":53,"problem":54},"phishing-resistant-mfa","Phishing-resistant MFA","A stolen password, or a user who taps Approve on a push prompt, is no longer enough to log in.",{"slug":56,"name":57,"problem":58},"identity-threat-detection","Identity threat detection and response (ITDR)","Attackers who log in with real, stolen credentials get noticed.",{"slug":60,"name":61,"problem":62},"email-security","Email security","Phishing, malware and invoice fraud are filtered out before they reach inboxes."]