Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
Back to intelligence
phishing-campaign-intelligenceidentity-authentication-vulnerabilitycybercrime-service-ecosystemai-enabled-threat-activity

AI-Driven Microsoft 365 Device Code Phishing Abused Railway to Steal OAuth Tokens

Updated 3mo agoFirst seen Mar 23, 20267 sources

Huntress reported a large phishing operation that used Railway cloud infrastructure to compromise Microsoft 365 accounts at hundreds of organizations by abusing Microsoft's legitimate device authorization flow. The campaign harvested and replayed OAuth access and refresh tokens, allowing attackers to maintain access for up to 90 days without needing victims' passwords and in many cases without being stopped by MFA. Researchers identified at least 344-350 victim organizations across the U.S., Canada, Australia, New Zealand, and Germany, with activity accelerating sharply in early March and continuing at a rate of more than 50 compromises per day even after initial disruption efforts.

The operation used highly varied, likely AI-generated lures delivered through email, QR codes, file-share themes, compromised websites, multi-hop redirects, and workers.dev pages to evade filtering and scale quickly. Huntress linked the activity to the EvilTokens phishing-as-a-service platform, which advertised Office 365 capture links, SMTP delivery, B2B sender services, AI-assisted phishing workflows, and open redirects. In response, Huntress pushed Conditional Access protections to about 60,000 Microsoft cloud tenants, blocked additional attack attempts, and urged defenders to prioritize identity-layer monitoring, token revocation, blocking Railway-owned infrastructure, restricting device code authentication, and enabling Continuous Access Evaluation.

Share:
AI-Driven Microsoft 365 Device Code Phishing Abused Railway to Steal OAuth Tokens
Stay ahead

Get ahead of threats like this

Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.

EVENT TIMELINE

How this story unfolded

8 events from the most recent confirmed update back to the earliest known activity.

8 EVENTS
Apr 6, 20263mo ago

Microsoft publishes technical analysis of AI-enabled device code phishing

Microsoft Defender Security Research published a detailed report on the widespread device code phishing campaign, linking it to the EvilToken ecosystem and describing AI-generated lures, dynamic device code generation, and Railway-backed automation. The report also revealed post-compromise activity including Microsoft Graph reconnaissance, malicious inbox rules, email exfiltration, and in some cases registration of new devices to obtain Primary Refresh Tokens for persistence.

Inside an AI‑enabled device code phishing campaign | Microsoft Security Blog
Mar 23, 20263mo ago

Huntress says campaign continues despite Railway takedowns

By March 23, 2026, Huntress said it had identified 344 victims and was still seeing more than 50 compromises per day tied to Railway phishing domains. It also reported blocking 113 additional attempted compromises on top of roughly 350 compromises observed over the prior two weeks, indicating the campaign remained active after Railway's response.

Mar 20, 20263mo ago

Huntress publishes report on hundreds of compromised organizations

On March 20, 2026, Huntress publicly disclosed that the campaign had compromised more than 340 organizations across the U.S., Canada, Australia, New Zealand, and Germany. The report detailed how attackers used device code phishing to obtain long-lived access and refresh tokens that can persist beyond password resets and are not stopped by MFA alone.

Huntress links campaign to EvilTokens phishing-as-a-service

Huntress later attributed the Railway-based attack activity to the EvilTokens phishing-as-a-service platform. The service was described as offering Office 365 capture links, SMTP sending, open redirects, B2B sender features, and AI-assisted phishing workflows.

Mar 6, 20264mo ago

Huntress deploys tenant protections against Railway phishing domains

As the campaign expanded, Huntress pushed Conditional Access policy protections to eligible Microsoft 365 tenants, including updates sent to about 60,000 cloud tenants to block emails or access tied to Railway-owned infrastructure. The mitigations were intended to disrupt token theft and replay from the observed Railway IPs and domains.

Huntress notifies Railway about malicious infrastructure

Railway said Huntress first contacted the company on March 6, 2026 about attacker abuse of its platform. After the notification, Railway banned associated accounts and blocked domains tied to the phishing activity.

Mar 2, 20264mo ago

Phishing activity surges across organizations

Huntress reported a sharp increase in campaign activity beginning around March 2-3, 2026, as the attackers scaled highly varied phishing lures including email, QR code, and file-share themed content. The surge marked the start of widespread compromises affecting organizations in multiple countries.

Feb 19, 20264mo ago

Railway-based Microsoft 365 phishing campaign begins with isolated cases

Huntress observed the first isolated cases of a Microsoft 365 device code phishing campaign on February 19 and 24, 2026. The operation used Railway-hosted infrastructure to harvest and replay OAuth tokens obtained through Microsoft's legitimate device authorization flow.

LINKED ENTITIES

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

48 LINKEDOpen in app
Malware
1 linked
Affected products
10 linked
Microsoft Entra IdCopilot StudioMicrosoft 365 CopilotMicrosoft AuthenticatorExchange OnlineDocusignVercelSharepointTelegramHubspot
Organizations
30 linked
Microsoft CorporationHuntressRailwayDocuSignAmazon Web ServicesCloudflareVercelGoogleDigitaloceanTrend MicroCisco SystemsMimecastArctic WolfVolexityPalo Alto NetworksHubspotTP-LinkProofpointHerokuRedditAny.RunTelegramMailchimpCyberScoopRenderFlare.ioWix.comTaskadeWhaleDocSend
The operational view lives in Mallory

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t — which of your assets are affected, which threat actors are using it right now, which detections to deploy, and what to do next.
Exposure mapping

Map indicators from this story to your assets and identify affected systems in minutes.

Threat actor evidence

Every observed campaign, victim, and pivot linked to actors named in this story.

Associated malware

Malware, exploits, and IOCs connected to the activity described here.

Detection signatures

YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.

Scheduled alerts

Get matching new stories delivered to your team as they break — not the next morning.

AI threads

Ask questions about this story and take action on the answers.