Railway, a platform-as-a-service host used by startups to deploy apps, said Monday that API keys for artificial-intelligence vendors stolen in an October breach were abused for an estimated $740,000 in unauthorized usage, and the company pledged to pay customers when providers will not issue refunds on their own.
How the keys leaked
In incident reports posted over the past two weeks, Railway said an attacker decrypted environment variables in a slice of customer workspaces — at most 1.85 percent of the total, which the company described as an upper bound of about 100,000 projects. Environment variables are where developers store secrets such as database passwords, payment tokens and third-party AI credentials. Railway's forensics showed database queries hunting specifically for keys tied to OpenAI, Anthropic, Google Gemini, AWS Bedrock and other model hosts.
The attacker also accessed linked-account tokens for 1,852 users, including bring-your-own-key agent credentials and GitHub OAuth tokens, according to the company. Railway said it reset those tokens, notified affected accounts, and found no evidence that stolen login credentials were used to access customer dashboards. Build histories for 353 deployments were readable, which can expose commands that accidentally echo secrets into logs.
What victims should do today
Railway's guidance has not changed since the initial October disclosure: revoke and replace any sensitive variable stored on the platform before Oct. 21, rotate keys at the provider that issued them, and file a charge report through the company's web form if a cloud bill spiked. Filing the form does not automatically revoke a key; rotation has to happen on OpenAI or Anthropic consoles separately.
Developers should also remove public network access from databases that do not need it, review GitHub audit logs for unexpected OAuth grants, and scan container registries for tokens embedded in image layers. CISA's public advisories on credential theft emphasize that environment-variable leaks are increasingly targeted because AI usage meters bill in near real time.
Refund policy by provider
According to Railway's incident appendix, refund treatment depends on each AI vendor's unauthorized billing policy. AWS Bedrock and Google Gemini routes were already processing unauthorized billing refunds through account teams. OpenAI and SpaceX's xAI evaluate claims case by case, with customers obtaining a case ID and forwarding it to Railway support. Anthropic talks were still active as of this week; Railway said it would front costs tied to breached Anthropic keys in the meantime. OpenRouter, an aggregator, maintains a no-refund clause in its terms, so Railway committed to absorbing those charges directly.
The company did not specify the time window behind the $740,000 estimate or whether customers must pay disputed invoices while claims are pending. That ambiguity matters for startups on thin cash cushions: a five-figure cloud bill can trigger card holds or vendor shutoffs within days.
Who is exposed in the U.S.
Railway's user base skews toward U.S. and European indie developers shipping side projects and agent demos. Unlike a retailer breach that exposes consumer Social Security numbers, this incident hits builders who pasted production keys into hosting dashboards. The downstream risk is supply-chain: a compromised key can fine-tune a model on proprietary code, run inference for phishing campaigns, or spin up crypto miners if the provider's abuse desk is slow.
Enterprise teams usually route AI spend through corporate contracts with invoicing and rate limits. Railway's event is a reminder that hobby-tier hosting still sits in the blast radius when keys are treated like disposable config.
Legal and insurance angles
Cyber insurance policies for small companies often exclude unsecured API keys left in plaintext repositories. Railway's promise to cover certain charges is a commercial decision, not a legal admission of liability; terms of service on the platform still warn customers they are responsible for usage billed through their keys. If you are negotiating with investors or enterprise buyers, document rotation timestamps and provider case numbers — procurement teams increasingly ask for that paper trail after high-profile AI bills.
Prevention checklist
Use short-lived tokens where vendors offer them, keep production keys off developer laptops via secret managers, and separate staging and production projects on the host. Enable spend alerts at the AI provider, not just at the card issuer. Railway said every attack vector it identified is now patched, but secrets copied before rotation may still work until explicitly revoked.
If you receive a Railway email rating you as high risk, treat it as mandatory, not informational. The $740,000 figure is the company's estimate of unauthorized run-rate, not a cap on what attackers attempted. Your actual exposure ends the moment keys are rotated and old credentials are deleted from build logs and Slack snippets — a cleanup that often takes longer than the hack itself.
