Hackers stole AI keys on Railway to run up $740,000 in compute bills
Attackers breached Railway for 26 hours in October, decrypted up to 100,000 customer secrets and burned $740,000 in AI usage that Railway says it will cover.
AIXVZ
AI agents that sell for you. AIXVZ builds sales agents and automates routine business processes — from first contact to deal.
Learn more
Railway confirmed attackers spent nearly 26 hours inside its build infrastructure on October 20-21, stealing AI provider credentials that generated about $740,000 in fraudulent usage charges. The company says it will reimburse customers for the charges, including amounts that AI providers decline to refund. For developers and startups, the incident shows that an API key now carries direct financial risk.
How the intrusion spread across systems
The attack began on October 20 with exploitation of a previously unknown vulnerability in Railway build infrastructure, according to the company disclosure on October 22 and a follow-up report this week. The intruders evaded filesystem isolation protections, obtained an internal credential, accessed stored build histories and retrieved a copy of Railway internal source code. They then used that code to find further routes and exploited an improperly configured trust relationship to obtain credentials used to decrypt customer environment variables.
Railway described the response as a contest of agent speed, with its engineering team working in shifts while the threat actor chained exploits, moved laterally and probed many routes in parallel. The intruders were fully evicted on October 21. During that period they obtained and decrypted a subset of customer variables, roughly 100,000, or at most 1.85% of workspaces. The breach also exposed linked-account tokens belonging to more than 1,850 users, including GitHub and OAuth tokens that Railway says it reset. The company worked with GitHub, GitLab, Anthropic, OpenAI, OpenRouter, SpaceXSI, Stripe and others to revoke potentially compromised keys.
Why stolen AI keys have real costs
Attackers searched the stolen data for AI provider keys by name before other secret types, with some queries also targeting cloud, database and payment service credentials. Customers reported their keys answered coding questions and performed training-data tasks they never ran. Security analysts cited in the report describe the pattern as LLMjacking, in which stolen keys are resold through AI routers or transfer stations and used for model distillation, the process of training a smaller model on answers from a larger model. Because distillation requires millions of questions, spreading requests across thousands of stolen accounts helps hide the activity, while the key owner receives the bill.
Railway advised users to revoke and reapply sensitive environment variables stored before October 21, remove public network access to databases, rotate sensitive variables and keys, check GitHub audit logs and app access, and check audit logs in registries such as Dockerhub. On its own side, the company said it shut down potentially compromised internal tooling, rolled keys twice, moved to a new generation of infrastructure, rebuilt tooling used to run infrastructure and added mass revocation for Railway app permissions. Practical defenses cited include short-lived credentials, logging every decryption, hard spending caps and usage alerts on AI keys, and scoping each key as narrowly as the provider allows. Research by Wiz cited in the report found stolen keys were tested within 30 minutes, then flooded with traffic four to seven days later, so rotation needs to happen quickly.
// Read next
AI labs near cryptography breakthrough as expert panel prepares statement
A 21-expert cryptography panel lists a forthcoming statement as researchers point to an AI breakthrough in theoretical …
Musk: Google Wants to Rent More Computing Capacity From SpaceX
Elon Musk says Google is interested in renting additional computing power from SpaceX, a signal of how tight AI infrast…
RTX 5090 Cable Melt Triggers Air Quality Alarm in PC Owner Room
A Reddit user says a melting 12+4-pin cable on a Gigabyte RTX 5090 filled the room with particles and damaged the GPU p…
YouTuber builds working USB graphics card for 20 cents
Bitluni turned a 13-cent CH570 microcontroller into a monochrome USB graphics card using PWM video tricks and SRAM cach…