Skip to content
EventPast event

Railway discloses that attackers used AI agents to steal API keys

6 reports5 reporting sourcesplus 4 outlets covering itLatest report

Start here

AI overview

Railway released an incident report on the October 21 security attack: on October 20, attackers exploited a previously unknown vulnerability in its build infrastructure to partially escape filesystem isolation, steal build credentials and obtain a copy of the internal monorepo; the next day, they also obtained cloud credentials through a misconfigured OIDC binding, decrypting the environment variables of up to 1.85% (about 100,000) of workspaces, and were fully eradicated at 09:24 UTC on October 21. Forensics showed that the attackers used regular expressions to preferentially match AI provider keys, and Railway believes these keys were resold to distributed relay stations for distillation; unauthorized consumption of the stolen keys is estimated at about $740,000, and the BYOK proxy keys and GitHub OAuth tokens of 1,852 users were read and have all been reset. On refunds, AWS and Google have begun refunding under their fraud policies, providers such as OpenAI review case by case, OpenRouter does not refund under its terms of service, Anthropic was still in negotiations when the report was published, and Railway says it will bear the losses that providers do not refund.

Generated by AI from reports · Updated 14 days ago

Storyline

Developments on the same subject and issue, from earliest to latest

2 events
  1. · 7 reports· Attention36
    Railway environment variables decrypted, about 100,000 workspaces possibly affected
  2. · 6 reports· Attention44

    Railway discloses that attackers used AI agents to steal API keysThis event

Progress timeline

Nov 12
Nov 11
  1. Meteora Web
    Railway build system breached; stolen customer AI keys used, incurring approximately $740,000 in charges

    Railway stated in a report that attackers exploited an unknown vulnerability in its build system to steal customer AI keys, incurring approximately $740,000 in unauthorized usage charges. At 07:28 UTC on October 20, attackers partially breached the file system isolation of the build environment and read host files to obtain build server credentials; that credential was treated as a trusted client by the internal Temporal system, through which the attackers read build history and obtained the internal monorepo, discovered a misconfigured OIDC link and obtained cloud credentials, then used an SSH key to enter a machine where customer variables could be decrypted, extracting variables between 04:07 and 05:21 on October 21 and filtering for AI provider keys. Railway said variables in at most 1.85% of workspaces (about 100,000) were decrypted, tokens for 1,852 users' linked accounts were revoked, 353 build histories were read, and reset requests were sent to more than 100,000 users.

  2. The Hacker NewsSelected
    Railway says stolen customer AI keys caused an estimated $740,000 in unauthorized usage charges

    PaaS platform Railway disclosed that customer AI provider keys stolen in an October intrusion generated an estimated $740,000 in unauthorized usage charges, and the portion the providers would not refund is being borne by Railway itself. According to its incident report, on October 20 attackers used a previously unknown flaw to partially escape the build system's filesystem isolation, used obtained build credentials to read build history and code snapshots through the internal Temporal system, then obtained cloud credentials and SSH keys via a misconfigured OIDC binding, and then used decryption credentials on the orchestration machine together with KMS to decrypt encrypted variables in the production database. The decryption affected at most about 1.85% of workspaces (about 100,000, an upper bound), and also read 353 build histories and the BYOK proxy keys and GitHub OAuth tokens of 1,852 users; the relevant credentials have all been reset, and no stolen credentials were found to have been used to log into customer accounts.

  3. iTnewsSelected
    Application hosting platform Railway was breached, and the attacker used stolen AI keys to run up $740,000 in usage

    An incident retrospective from application hosting platform Railway shows that attackers who breached its platform last month used stolen customer AI provider keys to generate about $740,000 in unauthorized usage. The attackers decrypted environment variables stored in up to 1.85% of workspaces (about 100,000) and obtained linked account tokens for 1,852 users (including GitHub OAuth tokens). The intrusion began on October 20, when attackers exploited a previously unknown flaw in the build infrastructure to obtain build credentials; that credential was treated as a trusted client by the internal workflow system, exposing 353 build histories and a copy of source code, and then, through a misconfigured identity binding in the deployment pipeline, reaching credentials that could decrypt customer variables. Railway removed the intruders on October 21. On refunds, AWS and Google have begun refunding under their fraud policies, providers such as OpenAI review case by case, OpenRouter does not refund under its terms of service, Anthropic was still in negotiations when the report was published, and Railway said it will bear losses that providers do not refund.

Nov 10
  1. RailwaySelected
    Railway incident report: October 21 security attack

    Railway published a detailed incident report on the October 21 security attack: on October 20 the attacker exploited a previously unknown vulnerability in the build infrastructure to partially escape filesystem isolation, steal build credentials and obtain a copy of the internal monorepo; the next day they obtained cloud credentials through a misconfigured OIDC binding and decrypted the environment variables of up to 1.85% (about 100,000) of workspaces, and were fully evicted at 09:24 UTC on October 21. Forensics show the attacker used regular expressions to prioritize matching AI provider keys, and Railway believes these keys were resold to distributed relay stations for distillation; unauthorized consumption of the stolen keys is estimated at about $740,000, and the BYOK proxy keys and GitHub OAuth tokens of 1,852 users were read and have all been reset.

  2. CybersecuritynewsSelected
    Railway discloses how hackers used AI agents to steal API keys and incur $740,000 in charges

    Railway disclosed that attackers used AI agents, build system flaws and misconfigured cloud trust to steal customer keys, causing an estimated about $740,000 in unauthorized charges. A build system vulnerability on October 20 let attackers partially escape file isolation and read host files; the stolen credentials were accepted by the Temporal task system, allowing access to the history of 353 builds; the next day a misconfigured OIDC trust exposed short-term cloud credentials, through which attackers entered a machine with access to the production database and used Railway's key management service to decrypt some environment variables. Environment variables in at most 1.85% of workspaces (about 100,000) may have been decrypted; this is an upper bound, not a confirmed figure. The attackers used a model with safety restrictions removed via an ARTEX-like agent framework, and the database queries specifically searched for AI provider key names; Railway believes the stolen keys may have flowed to services reselling AI access or supporting model distillation, but has not confirmed whether the intruders operate them.

  3. CybersecuritynewsSelected
    Railway discloses how hackers used AI agents to steal API keys and incur $740,000 in charges

    Railway disclosed that attackers exploited a build system isolation flaw, a misconfigured OIDC trust configuration and an AI agent to steal customer keys, with estimated unauthorized charges of about $740,000. An unknown flaw let the attackers partially escape the build system's file isolation; the credentials obtained were accepted by the Temporal task system, reading the history of 353 builds; a misconfigured OIDC trust configuration then exposed short-term cloud credentials, and the attackers entered a machine with access to the production database, using Railway's key management service to decrypt some environment variables, with up to 1.85% of workspaces (about 100,000) potentially affected (upper-bound estimate); the queries also specifically searched for AI provider key names, and Railway stressed this was credential abuse rather than a cryptographic break. Railway said the attackers used a model with safety restrictions removed via an agent framework similar to ARTEX, and that the stolen keys may have flowed to services reselling AI access or supporting model distillation, but it has not confirmed whether the intruders operate those services.

Related discussion

Total 105 items