Railway Breach: Stolen AI Keys Ran Up $740,000 Bill

Stolen AI keys cost Railway and its customers an estimated $740,000. The cloud hosting platform said in its final incident report, published on 10 November 2026, that attackers who broke into its systems in October stole customer API keys and used them to run up unauthorised AI usage charges — and that it will cover the charges AI providers refuse to refund.
The intrusion lasted about 26 hours, from 20 to 21 October 2026. Railway says the attackers exploited a previously unknown flaw in its build system to partly escape the filesystem isolation around a build and read files on the host virtual machine. A second failure then opened the way in: an incorrect OpenID Connect trust configuration exposed a short-lived cloud credential at 03:26 UTC on 21 October. From there the attackers reached an orchestration machine holding a credential that could decrypt customer environment variables, and between 04:07 and 05:21 UTC they pulled encrypted variables from Railway's production database, searching specifically for names matching AI provider keys. Engineers spotted unusual registry API calls at 13:58 UTC on 20 October, and the attackers were fully evicted at 09:24 UTC on 21 October.
What was taken, and what was not
Railway estimates that environment variables in up to 1.85 percent of workspaces were exposed — an upper bound of about 100,000 workspaces. The company says its logs show which environments were exposed but not which individual variables inside them were decrypted, which is why the figure is a maximum rather than a confirmed count. Linked-account tokens belonging to 1,852 users were also accessed, including bring-your-own-key agent credentials and GitHub OAuth tokens; Railway reset all of them. Customer databases were not accessed, and no Railway account was logged into with stolen credentials. The attackers were not after data, Railway says — they wanted the keys, and the company believes the keys reached services that relay or resell AI access, possibly to feed model distillation.
The $740,000 figure is the estimated unauthorised AI usage run up on the stolen keys. Railway first told customers on 26 October that it could not refund spend performed with compromised keys, then reversed that position in its final report: it will now cover charges that AI providers decline. Red Side Security's report on the incident, which follows the original Hacker News coverage, notes that Railway coordinated revocations with GitHub, GitLab, Anthropic, OpenAI, OpenRouter and Stripe, among others.
An attack run by AI agents
Railway describes the incident as a contest of agent speed: the attackers used AI models with their safety limits removed, run through an agent harness similar to ARTEX, to search copied code for flaws and to work through the intrusion far faster than a person typing commands could. The company has filed a complaint with the FBI and is working with a specialist forensics firm, whose investigation is ongoing. It has told every customer to revoke and replace any sensitive variable stored on the platform before 21 October, and to check AI provider bills and usage logs for traffic they did not generate.
The episode is part of a wider October pattern in which AI developer platforms were targeted for the secrets they hold. Railway's business is running applications on behalf of its users, so its platform stores API keys and database connection strings for them — a concentration of secrets that makes it an attractive target, and a reminder that a stolen AI key is now a direct route to cash.
Frequently asked questions
What happened in the Railway breach? Attackers broke into Railway's build system on 20 October 2026, decrypted some customer environment variables, and used stolen AI provider keys to run up an estimated $740,000 in unauthorised AI usage charges before being evicted on 21 October.
How many customers were affected? Railway says up to 100,000 workspaces may have had environment variables exposed, as an upper bound, and 1,852 users had linked-account tokens accessed and reset.
Will affected customers be refunded? Railway says it will cover unauthorised AI usage charges that AI providers decline to refund, reversing its earlier position.
Source: HackerNoon, reporting Railway's 10 November 2026 incident report. Second source: Red Side Security.