Skip to the stories
Microsoft 365 & SharePoint

Railway Breach Exposed Up to 100,000 Workspaces and Ran Up $740,000 in AI Charges

  • Christopher Rodriguez
  • 888 views

Attackers stole Railway secrets to resell AI access. Customers should rotate stored keys and check usage, while platforms tighten secret handling.

Railway Breach Exposed Up to 100,000 Workspaces and Ran Up $740,000 in AI Charges

Stolen AI credentials turned Railway’s infrastructure breach into a direct bill: attackers generated about $740,000 in fraudulent AI usage charges, while potentially accessing sensitive variables from up to 100,000 customer workspaces. The incident shows why teams need to treat stored machine credentials as spending authority and rotate them quickly when a hosting platform is compromised.

Railway said the attackers were fully removed on October 21, after nearly 26 hours of activity that began the day before. The company disclosed the incident on October 22 and later published a follow-up report. Its investigation is ongoing, and Railway said it could not yet share the full details or scale of the exploits.

How the attackers reached customer secrets

The intrusion started with a previously unknown flaw in Railway’s build infrastructure. Attackers bypassed filesystem isolation, obtained an internal credential and used it to access stored build histories. They retrieved a copy of Railway’s internal source code and examined it for further ways in.

A second vulnerability involved a trust relationship that Railway said was configured improperly. Exploiting it gave the attackers more access to company infrastructure, including credentials that could decrypt customer environment variables. Railway described the incident as a chain of exploits and parallel probes across multiple systems, rather than a single intrusion followed by one fix. Its engineering team worked in shifts to block routes as the attackers tested them.

During that period, the attackers obtained and decrypted a subset of customer variables: roughly 100,000, or at most 1.85% of workspaces, according to Railway. They also accessed linked-account tokens belonging to more than 1,850 users. Railway said those tokens included GitHub and OAuth credentials, which it reset.

Database searches by the attackers looked first for AI provider keys by name. Some searches also targeted credentials for cloud, database and payment services. Customers reported that stolen AI keys were used to answer coding questions and carry out training-data tasks they had not requested.

Customer checks and Railway’s response

Railway advised customers to revoke and reapply sensitive environment variables stored on its platform before October 21. It also recommended removing public network access to databases, rotating sensitive variables and keys, reviewing GitHub account audit logs and app access, and checking audit logs in registries such as Docker Hub.

For a practical first pass, teams should prioritize AI provider keys, then rotate cloud, database and payment credentials. They should review provider bills and usage logs for activity their teams did not generate, report unauthorized charges to Railway and alert on calls from unfamiliar addresses. Railway said it is working to reimburse customers, including where AI providers refuse to refund the charges.

The company said it worked with GitHub, GitLab, Anthropic, OpenAI, OpenRouter, SpaceXSI, Stripe and others to revoke keys that might have been compromised. Within its own environment, Railway shut down potentially affected internal tools, rolled its keys and rolled them again after checking that intruders were out. It also moved to a new generation of infrastructure, rebuilt tools used to run that infrastructure and added a way to revoke Railway app permissions in bulk if suspicious activity appears.

Why stolen AI keys can be profitable

David Shipley of Beauceron Security said attackers can target a platform holding many customers’ credentials instead of breaking into companies one at a time. They can then resell access through AI routers, services that connect users to models they might otherwise be unable to afford or access. Shipley said he expects this form of AI account abuse, sometimes called LLMjacking, to displace cryptojacking as a low-cost way to make money.

The demand is tied partly to model distillation, which uses the answers from a larger model to train a smaller one. Frank Dickson of Dickson Research said training a model on millions of responses requires enough questions to attract attention if they all come from one account. Stolen keys let an operator spread those requests across thousands of legitimate customer accounts. The thief gets compute while the credential owner receives the bill.

Railway is moving to short-lived credentials and logging each decryption. Dickson called those steps appropriate for platforms that store customer secrets. He also urged Railway customers to assume every secret stored on the service was exposed until it has been rotated.

Speed matters. An investigation by Wiz found that stolen keys were tested within 30 minutes of theft, then hit with heavier traffic four to seven days later. Teams can reduce the potential cost by setting hard spending caps and usage alerts for AI keys and limiting each key to the narrowest scope the provider permits. Wiz also found a case where a key restricted to a limited set of model profiles caused most of an attacker’s traffic to be throttled.

Teams using other hosting platforms should ask how secrets are stored and who can decrypt them. Issuing fewer keys also limits the number that need rotation after an incident. With machines holding more of the credentials that connect services and spend money, key storage, access logs and usage limits deserve the same close attention as other systems that can create direct costs.

Source: Christopher Rodriguez · www.computerworld.com

Neighbouring cells