Railway Says Stolen AI Keys Ran Up About $740,000, and It Will Cover What Providers Won't Refund
Railway's full incident report says an October attacker hunted for customers' AI provider keys, which were then used for an estimated $740,000 in unauthorised usage. Here is how it happened and who pays.
Railway, the app hosting platform, has published its full incident report on the October attack on its systems, and the number that stands out is about artificial intelligence. The company says AI provider keys stolen from its customers were used to run up an estimated $740,000 in unauthorised usage, and that it will cover those charges itself wherever an AI provider declines to refund them.
The report, dated 10 November 2026, says the attacker was going after AI credentials above everything else. Railway's forensic work found the attacker's database queries picked out variables whose names matched AI provider keys, and that customers with large numbers of stored variables were targeted first. Railway believes the keys were passed on to what it calls "distributed transfer stations" for use in distillation, where one model's outputs are used to train another.
How the attacker got in
According to Railway, the attack started in its build system. At 07:28 UTC on 20 October, the attacker used a previously unknown flaw to partly escape the filesystem isolation around a build and read some files on the host machine. That gave them a credential the build servers use to push finished images.
The credential was only meant for build work, but an internal Temporal service that drives parts of the build process accepted it as a trusted client. Through it, the attacker read the stored histories of 353 builds, including the variables passed to them, and retrieved a copy of Railway's internal monorepo. Railway says that copy gave the attacker a detailed view of how the platform works, which helped them find further exploits and move quickly between systems.
After scanning the code, the attacker found a wrongly configured OIDC binding in one of Railway's cloud environments and, at 03:26 UTC on 21 October, used it to obtain a short-lived cloud credential. From there they collected further internal credentials, including an SSH key that opened an orchestration machine holding a credential able to decrypt customer variables. Between 04:07 and 05:21 UTC they pulled encrypted variables from a production database, and they decrypted some of them in two windows that morning. Railway says the attacker was fully removed from its systems at 09:24 UTC on 21 October.
The report describes the defence as "a contest of agent speed" and says Railway was up against "abliterated models", meaning AI models with their safeguards stripped out.
What was exposed
- Environment variables: at most 1.85% of workspaces, about 100,000, could have had variables decrypted. Railway says its logs identify environments rather than individual variables, so that figure is an upper bound.
- Linked-account tokens: BYOK agent keys and GitHub OAuth tokens for 1,852 users. Railway says it reset every one, notified each user and found no logins to Railway accounts using the stolen credentials.
- Other credentials: one query also matched cloud, database and payment service credentials, though Railway says its forensics did not show customer databases being accessed.
Who pays for the stolen usage
Refund terms depend on the AI provider. Railway's report lists them as follows at the time of writing:
- AWS Bedrock and Google Gemini: existing fraud policies apply and account teams have started refunds.
- OpenAI: customers open a support request and pass the case ID to Railway; refunds are reviewed case by case.
- SpaceXSI: claims go through Railway support and are reviewed case by case.
- Anthropic: talks are still under way, and Railway is covering breached Anthropic key costs in the meantime.
- OpenRouter: it is keeping its no-refund policy, so Railway says it will cover all OpenRouter costs tied to the breach.
That is a shift from Railway's earlier stance. The Hacker News reports that an update on 26 October told customers "Railway is unable to refund customers for spend performed with compromised API keys." The same outlet notes that the incident report does not explain how the $740,000 figure was estimated or what period it covers, and sets no cap or deadline for claims.
Part of a wider pattern
Railway says the unauthorised usage it has seen ranges from coding agents to AI training pipelines, and that OpenCode, Warp, Fireworks AI and several others disclosed similar thefts between 6 and 23 October. It assesses the breach as one of a series of attacks on platforms that hold AI keys. The Hacker News adds that Wiz's "Black October" analysis lists this incident among those disclosed in October by at least nine AI developer platforms. Railway says it has not established whether the attacker ran the resale services that used the keys.
On the fixes, Railway says every weakness the attacker used is now closed. Each build now runs in its own short-lived virtual machine, decryption operations are centrally logged, and only its secrets service can reach the keys needed to decrypt customer data. It has filed a complaint with the FBI's IC3 and is working with a specialist forensics firm whose investigation continues.
What to take from it
If you deployed on Railway, the practical steps from the report and The Hacker News coverage are to revoke and replace any sensitive variable stored there before 21 October, rotate keys with the provider that issued them (filing a charge report does not revoke a key), and report any charges you did not make through Railway's form.
For everyone else, the lesson is that AI keys stored as environment variables on a host are now a prime target, because they can be turned straight into money. Giving each key its own project and a spending limit, where your provider offers one, keeps the damage small if a key ever leaks.