Threat Actors Abuse Railway.com PaaS as Microsoft 365 Token Attack Infrastructure
Huntress details a device-code phishing campaign hitting 340+ Microsoft 365 tenants across the US, Canada, Australia, New Zealand, and Germany since February 2026, in which attackers abuse Railway.com's clean-IP PaaS infrastructure to run OAuth device-code token replay at scale, bypassing MFA entirely. The campaign chains vendor URL-rewriter abuse (Cisco, Trend Micro, Mimecast), compromised sites, Cloudflare workers.dev phishing pages, and AI-assisted lure generation, and Huntress has attributed it to the EvilTokens Phishing-as-a-Service platform advertised via Telegram. The post includes IOCs (Railway CIDR ranges), Sentinel KQL hunting queries, and mitigation guidance (block Railway IPs, revoke refresh tokens, restrict device code flow, enable CAE).
What it is
An active (as of March 2026) device code phishing campaign against Microsoft 365 identities, run through Railway.com PaaS IP infrastructure and attributed to the EvilTokens PhaaS platform. This document focuses on the operational takeaways an engineer needs, since the campaign's novelty is less the technique than the infrastructure choice and the remediation trap it creates.
How it works
The attack abuses the OAuth device authorization flow. A victim is lured into completing a legitimate-looking device code sign-in, which hands the attacker access and refresh tokens that remain valid even after a password reset. Auth originates from a narrow block of Railway.com IPs — a PaaS "built for vibe coding" that lets adversaries stand up and tear down internet-facing token-harvesting services at machine speed. Because Railway is a clean, rarely-blocked provider, this traffic evades Microsoft's risk scoring. Lures are AI-generated and individually tailored (Huntress observed no identical lures or initial domains), which defeats signature/duplicate-based email filtering.
Preconditions / Affected
- Microsoft 365 tenants that permit the OAuth device code flow.
- Organizations of any size/sector (law firms to construction) in the US, Canada, Australia, New Zealand, Germany. 340+ orgs, ~350 compromises, plus 113 further attempts blocked by March 23.
What to do
The page's own fetched text is truncated before its full mitigation list, but two actions are grounded in what it states:
- Do not rely on password resets to remediate. Stolen device-flow tokens survive a reset — revoke the affected sessions/tokens explicitly.
- Treat Railway.com IP space as suspect for M365 authentication. Huntress is blocking auth from Railway infrastructure to protected identities; most teams "have never had a reason to block" this provider, so it is likely unmonitored in your environment.
- Consider disabling the OAuth device code flow via Conditional Access if you have no legitimate use for it (implied by the technique, not a verbatim page instruction — verify before applying).
Caveats
- Huntress did not directly observe the actors using Railway's AI deployment features; they built a prototype to confirm the workflow is feasible even on the free tier. The "AI-accelerated infrastructure" angle is demonstrated capability, not observed TTP.
- Attribution to EvilTokens (first advertised on the NOIRLEGACY GROUP Telegram channel; first public post Feb 16, 2026) came in a March 23 update, in partnership with Flare.io.
- Open question the authors leave unresolved: whether this is one actor with a broad toolset (construction bids, DocuSign, voicemail, Microsoft Forms abuse all hitting the same victim pool via the same IPs) or multiple actors sharing the EvilTokens backend.
Organisations named here
- BAV2ROPC
Technologies named here
- Microsoft 365
- Railway.com
- Cloudflare workers.dev
- Microsoft Entra ID
- Huntress
- Azure AD
- Flare.io
- Google Cloud
- Microsoft Sentinel
- Microsoft Dynamics 365 Customer Voice
- Cisco Secure Email
- SharePoint
- Exchange Online
- Trend Micro URL Protection
- Mimecast URL Protection
- Windows 11
- iPhone/iOS
- Vercel
- AWS Amplify
- Google App Engine
- AWS S3
- Wix
- Taskade
- usewhale.io
- brandreward.com
- 2nco.com
- tec35.com
- hits2babi.com
- Railway
- OAuth
- Cloudflare Workers
Techniques named here
- OAuth device code phishing
- Token replay via clean cloud infrastructure
- Abuse of email security vendor URL rewriters
- Multi-hop redirect chains
- Landing page rendered device codes
- Abuse of Microsoft Dynamics 365 Customer Voice forms
- File-download lure pages
- User agent rotation/spoofing
- BAV2ROPC programmatic authentication
- T1111-adjacent OAuth abuse
Threat actors named here
- EvilTokens
- NOIRLEGACY GROUP
- Unattributed device code phishing campaign actor
Related in Threat Intel
Reverse Engineering the Six Stages of MacSync Stealer and RAT
AI-Coded Malware | Analyzing Vibe-Coded AD Enumeration | Huntress
