Railway Breach: $740,000 in Stolen AI Keys, and How the Attack Chain Started from a Build VM

By Carlos Montiel | Enterprise AI Specialist
Leer en español →
Published: 2026-11-30 | By: Carlos Montiel | Reading time: ~5 minutes
Railway: the breach that cost $740,000 in stolen AI keys, and how the chain worked from a build VM

A flaw in a hosting platform's build infrastructure ended in $740,000 of fraudulent AI model usage: the Railway case shows why LLM keys are the new loot.

What Happened at Railway

Railway, the application hosting platform, published its incident report after an intrusion that, by its own calculation, left roughly $740,000 in fraudulent AI usage. The attackers didn't come for Railway's servers: they came for the AI provider keys (OpenAI, Anthropic, and similar) that customers store as environment variables in their projects.

According to coverage from BleepingComputer, CSO Online, The Hacker News, and iTnews, the attacker decrypted variables in at most 1.85% of workspaces (around 100,000), and their database queries specifically hunted for AI provider keys. Linked-account tokens for 1,852 users were also exposed: BYOK agent keys and GitHub OAuth tokens.

Estimated fraudulent spend: ~$740,000 Workspaces affected: up to ~100,000 (max. 1.85%) Users with exposed tokens: 1,852 (BYOK keys + GitHub OAuth) Containment fight: ~26 hours against attackers using AI agents

How the Chain Worked: From a Build VM to AI Keys

According to the reports, initial access began on October 20, when the attacker exploited an unknown flaw in Railway's build infrastructure to read files on a host virtual machine and grab a build credential. That credential worked on internal systems, and from there the attacker reached encrypted customer data.

The pattern is the familiar one, not a new AI trick: weak isolation between customer builds, a credential with more reach than necessary, and a long-lived decryption key. What changes is the loot. An LLM API key is direct money: it gets resold or routed through services that relay access to models.

The Offensive-Agent Angle

Railway described a roughly 26-hour standoff between its engineers and attackers using AI agents, and said there is evidence, which it did not publish, that the attacker used "abliterated" models (with their safety restrictions removed). The company believes the keys were channeled to services that relay or resell model access, and suspects some of it fed model distillation. It has not established whether the attacker operated those services, nor has it identified the attacker.

Figures with caveats: the disclosure date varies between outlets (one mentions October 22; the final report with the $740,000 figure was updated on November 10). Railway said it will cover charges that AI providers do not refund.

What This Means for a Company Using AI

Your AI keys are credit cards with an open limit. If they live as environment variables on a hosting platform, a provider incident becomes your bill.

If you want to review how AI credentials are managed in your company, write to us at info@guatemalia.com.

Carlos Montiel
Enterprise AI Solutions Architect
Specialist in LLMs, Agents, and Orchestration
guatemalia.com/#contacto · info@guatemalia.com

Need to implement AI in your company?

Carlos Montiel is an enterprise AI solutions architect. He implements LLMs, Agents, RAG, and orchestrators for companies across Guatemala and Latin America. Reach out for a consultation.

Contact Carlos Montiel

info@guatemalia.com