⚠️

سلب مسئولیت و اخلاق حرفه‌ای

این مطالب صرفاً برای اهداف آموزشی، پژوهشی و افزایش آگاهی امنیتی ارائه شده‌اند. هرگونه استفاده غیرمجاز، غیرقانونی یا سوءاستفاده از اطلاعات، ابزارها و روش‌های مطرح‌شده، کاملاً بر عهده مخاطب است. نویسنده و منتشرکننده هیچ مسئولیتی در قبال خسارات، آسیب‌ها یا پیامدهای ناشی از استفاده نادرست از این مطالب نخواهند داشت.

EvilTokens Phishing Survives Microsoft Takedown Through OAuth Device Code Abuse | Alireza Bolbolabadi - Red Team Security
LOADING

EvilTokens Phishing Survives Microsoft Takedown Through OAuth Device Code Abuse

A legitimate authentication flow became the attack vector

The continuing EvilTokens campaign is not a software vulnerability requiring a patch. It is a credential-theft operation that weaponizes the legitimate OAuth 2.0 device authorization flow in Microsoft Entra ID. Because authorization takes place at the genuine microsoft.com/devicelogin endpoint, users who rely on URL inspection may see no suspicious sign-in domain.

Microsoft reportedly disabled the EvilTokens service on September 22, 2026, while London's Metropolitan Police had arrested two men connected to the kit 11 days earlier. VMRay researchers nevertheless found new phishing infrastructure through October and November. Confirmed hosts fell sharply from 237 in March and 200 in April to four in the final days of September and 25 in October, but the decline did not eliminate the operation. A lure scanned on October 28, 2026 was still producing live device codes.

How the phishing chain works

The kit's operation involves several connected steps:

  1. The attacker's backend requests a short-lived device code from Microsoft. According to the report, the code remains valid for 15 minutes.

  1. A lure page displays that code through a document-themed interface, including Adobe, DocuSign, OneDrive, or SharePoint branding.

  1. The victim is directed to the real microsoft.com/devicelogin page and enters the code.

  1. The attacker polls Microsoft while the victim reviews and approves the request.

  1. Following approval, the backend obtains an access token and a refresh token.

This design removes the familiar warning signs associated with a credential-harvesting page. The page presenting the code may be malicious, but the approval occurs on a legitimate Microsoft domain. The kit was sold through Telegram as phishing-as-a-service, lowering the technical barrier for affiliates. Microsoft tracks its developer and support operator as Storm-2992.

Infrastructure is adapting faster than it is disappearing

The post-takedown infrastructure did not simply vanish. Many newer hosts moved from Workers.dev to Bunny CDN, although their device-code requests continued to rely on a Workers.dev backend. This indicates that changing the front-end delivery layer did not break the underlying authentication mechanism.

VMRay identified one cluster of four hosts that shared an e-signing link and used French business names containing “portail.” Another cluster used the disposable email domains dropoffs.org and dropons.com to register Cloudflare accounts serving OneDrive-style lures. The researchers also warned that some legitimate domains may have been compromised and repurposed to distribute the kit.

The discovery process illustrates how defenders can hunt for related infrastructure. Researchers searched urlscan for the backend paths /api/device/start and /status/. A separate search through FOFA used the unusual X-Antibot-Token HTTP header. Candidate infrastructure was then checked through VirusTotal, urlscan, and passive DNS before being classified as EvilTokens.

Token theft creates persistence beyond the initial login

Password resets alone are unlikely to remove an attacker who already holds valid tokens. Microsoft says stolen tokens have been used to read email, create hidden inbox rules, and register new devices for lasting access. Hidden inbox rules can suppress messages from security notifications or other senders, allowing an attacker to continue business email compromise with reduced visibility.

The kit's advertised AI features add another layer. Researchers report that EvilTokens can read a victim's mailbox to identify targets and draft business email compromise messages. This does not represent an AI vulnerability; rather, it shows how automated phishing services can use stolen mailbox context to make follow-on fraud more plausible and targeted.

The reported scale is substantial. EvilTokens has been linked to more than 12,000 compromised inboxes across over 10,000 organizations. In a separate Huntress case, stolen login tokens helped criminals compromise accounts at 79 organizations. Those figures come from VMRay and Microsoft reporting and were not independently verified in the available source.

Why a service takedown did not end the threat

The persistence of EvilTokens illustrates the difference between shutting down a named service and removing the criminal ecosystem around it. The kit remains easy to acquire through established phishing-as-a-service channels, affiliates can deploy it without significant development work, and the core technique depends on a supported Microsoft authentication flow rather than exploitable software.

Infrastructure migration also reduces the effectiveness of domain-based blocking. Moving front ends to Bunny CDN, registering Cloudflare accounts with disposable email addresses, or serving lures from compromised legitimate sites can quickly alter the observable indicators. Conversely, the backend behavior remains more stable than the hosting layer, making request paths, headers, and authentication telemetry valuable for threat hunting.

Defensive priorities

Microsoft's recommended primary control is a Microsoft Entra ID Conditional Access policy under Conditions > Authentication Flows that blocks device code flow for all users and all resources. The policy can initially run in report-only mode to identify legitimate dependencies before enforcement. Break-glass accounts should be excluded so an overly broad policy does not remove administrative access.

Where blocking the flow is not immediately practical, organizations can search Microsoft Entra sign-in logs for the authentication protocol Device Code. That telemetry identifies activity directly associated with the mechanism abused by EvilTokens. A password reset by itself does not negate already-issued tokens, making session revocation, refresh-token invalidation, device review, and hidden inbox rule inspection important parts of incident response.

The available reporting does not state the current infrastructure count after November 2026, identify the compromised legitimate domains, or provide further details about the individuals arrested. Those uncertainties limit conclusions about the operation's present size, but they do not alter the demonstrated ability of the kit to operate through infrastructure changes.

منابع

·
← اخبار