Railway Breach Decrypted Some Customer Environment Variables
Railway’s preliminary investigation found that an attacker breached internal systems and decrypted some customers’ confidential environment variables, which may contain API credentials and other sensitive settings. The company estimated that about 100,000 workspaces could be affected, representing up to 1.85% of all workspaces, but could not determine exactly which keys were decrypted. Railway contacted GitHub, GitLab, Anthropic, OpenAI, OpenRouter and Stripe to request revocation of potentially exposed keys; however, some providers reportedly revoked keys they had not confirmed were affected, so a revocation does not establish that a key was stolen. By October 27, deployments for existing customers had resumed, while new-account registration remained suspended.
Railway said attacker records showed searches for API keys from specific AI providers, indicating that credentials stored in cloud deployment environments could be targeted in AI development supply chains. Railway’s request that providers revoke potentially exposed keys also highlights the need for affected users to rotate credentials and review access logs.
- Attackers exploited a zero-day in Railway’s build infrastructure to steal customer AI API keys and cloud credentials
- Stolen keys fueled roughly $740,000 in unauthorized AI usage, likely supporting large-scale model training and automation
- Railway spent 26 hours battling AI-assisted attackers before containing the intrusion and rotating credentials
US-based cloud hosting company Railway said threat actors abused a previously unknown vulnerability to break in, steal user credentials, and rake up hundreds of thousands of dollars in unauthorized AI usage.
The company managed to throw out the criminals and harden its infrastructure, but not before witnessing an epic 26-hour bot-versus-bot battle.
Railway gets attacked
At its core, Railway is a cloud hosting company, but one designed primarily for developers to build, deploy, and run applications without having to manage much of the underlying infrastructure.
Its key services include running websites and APIs, hosting databases and deploying PostgreSQL and MySQL, connecting GitHub repositories and deploying new code automatically, and handling containers, networking and resource allocation.