ShieldPack SHIELD PACK
From 1401 onwards.

Where would you like to start?

Services, updates, and ways to contact us, all in one place

Pricing and orders →

Use the bot or chat with us—whichever you prefer

ShieldPack posts

Railway Says Stolen Customer AI Keys Led to $740,000 in Estimated Unauthorized Usage Charges

About 5 min read

Railway, a platform‑as‑a‑service that builds and runs applications for developers, disclosed that a breach in October resulted in the theft of customers’ AI provider API keys, leading to an estimated $740,000 in unauthorized usage charges. The company said it will cover those charges itself after AI providers declined to issue refunds. The incident highlights the risks of storing sensitive secrets such as API keys and database credentials as environment variables on shared cloud platforms.
The attacker first gained access through Railway’s build system on 20 October 2024 at 07:28 UTC, exploiting a previously unknown vulnerability that allowed partial escape from the filesystem isolation surrounding a build container. By reading files on the host virtual machine, the intruder obtained a credential used by build servers to push finished images and communicate with internal services. The breach was not detected until an alert flagged unusual registry calls at 13:58 UTC, six and a half hours later, prompting an on‑call engineer to page the response team.
Using the compromised build credential, the attacker leveraged Railway’s internal Temporal workflow engine, which mistakenly accepted the credential as a trusted client. Through Temporal, the intruder accessed stored histories of other builds and fetched cached snapshots of code, obtaining a copy of Railway’s internal monorepo. Analysis of that code revealed the platform’s architecture and helped the attacker locate additional vulnerabilities, including a misconfigured OpenID Connect (OIDC) binding in one of Railway’s cloud environments.
At 03:26 UTC on 21 October, the attacker exploited the OIDC misconfiguration to acquire short‑lived cloud credentials. With those, two further credentials were harvested: one that could read encrypted variables from a production database when used inside the internal network, and an SSH key granting access to a machine that orchestrates tasks for Railway’s fleet. The orchestration machine stored a credential capable of decrypting customer variables, which are required to start customer workloads.
Railway encrypts each environment’s variables with a unique key, and those keys are themselves encrypted by a root key held in a cloud provider’s Key Management Service (KMS). Between 04:07 and 05:21 UTC on 21 October, the attacker queried the production database for encrypted variables whose names matched AI provider keys. Using the orchestration machine’s credentials together with the KMS, the attacker decrypted a subset of those variables between 04:42 and 05:14 UTC and again between 06:36 and 07:15 UTC. In total, the attacker succeeded in decrypting variables in at most 1.85 % of Railway’s workspaces—approximately 100,000 workspaces—though the company notes this figure is an upper bound because logs only indicate which environments were exposed, not the exact variables.
The stolen data included not only AI provider API keys but also linked‑account tokens for 1,852 users, such as Bring‑Your‑Own‑Key (BYOK) agent keys and GitHub OAuth tokens. All of those tokens were reset, and each affected user received a notification. Railway’s forensics found no evidence that customer databases were accessed, that code repositories were downloaded, or that any logins to customer accounts occurred using the stolen credentials. The attacker also read the stored histories of 353 builds, which contained the variables and secrets passed to those builds.
Railway Says Stolen Customer AI Keys Led to $740,000 in Estimated Unauthorized Usage Charges
Railway’s response included immediate revocation of the compromised credential, which rendered any data the attacker may have copied but not yet decrypted unreadable. The company patched the original filesystem‑escape vulnerability, hardened the build environment by moving each build to its own short‑lived virtual machine with a credential limited to pushing a single image, and within an hour built a second exploit to test the new defenses. All users were migrated to the new build system in a single rollout, and the company reports that every weakness exploited in the attack has now been closed.
Financially, Railway estimates that the stolen AI keys generated roughly $740,000 in unauthorized usage. The company’s October 26 update to customers clarified that Railway cannot refund charges incurred with compromised API keys and urged customers to file claims directly with the AI providers, offering to help escalate those requests. Customers are asked to submit disputed charges via a charge‑report form, which states Railway is not responsible for usage of the compromised keys but is investigating the theft. The incident report does not explain how the $740,000 figure was calculated, what time period it covers, or whether there is a cap or deadline for filing claims. Railway has pledged to pay the $740,000 itself when AI providers refuse refunds.
In addition to the financial impact, Railway issued a series of security recommendations. Customers were advised to revoke and rotate any sensitive variables stored on the platform before 21 October, to remove public network access to databases, to audit GitHub logs and application permissions, and to review audit logs in container registries such as Docker Hub. The company also warned that a revocation notice from a provider does not necessarily mean a key was exposed, as some providers were supplied with every key Railway held for their services as a precaution, leading to over 100,000 users receiving reset requests.
Law enforcement has been involved; Railway filed a complaint with the FBI’s Internet Crime Complaint Center (IC3) and is cooperating with a specialist forensics firm whose investigation continues. Indicators of compromise are being shared privately with trusted partners, and Railway plans to publish them publicly once law‑enforcement clearance is obtained.
The breach is part of a broader trend of attacks on AI developer platforms in October 2024, which researchers at Wiz identified in their “Black October” analysis. At least nine AI‑related services disclosed similar incidents, all involving attackers hunting for stored environment variables that grant access to AI models. While no single software flaw links these events, the pattern underscores the heightened value of AI API keys and the need for robust secret management practices across cloud‑based development platforms.

Source: The Hacker News · Cybersecurity

ShieldPack media