Skip to content

Accident reports · October 2026

Railway: attackers helped by AI agents steal AI keys, $740,000 spent

According to Railway, a flaw in its build machines opened the secrets of up to 100,000 workspaces; the stolen AI keys were used for about $740,000 of usage.

  • Company Non identifié / unidentified
  • Model not published
The agent as a weapon
A wall of electricity meters lined up in rows
Photo: Jon Moore on Unsplash
When20 to 21 October 2026, about 26 hours; Railway's detailed report published in early November
WhoUnidentified attackers who, according to Railway, used AI agents to find and exploit flaws
What went wrongIn through an unknown flaw in Railway's build machines, they obtained what they needed to decrypt customers' secret variables and went first for access keys to AI services
ConsequenceAccording to Railway, about $740,000 of fraudulent AI usage on stolen keys; up to 1.85% of workspaces exposed, about 100,000

What happened

Railway hosts applications for developers. On 20 October, attackers exploited a still-unknown flaw in its system that builds applications. They got out of the isolated space where builds run and picked up an internal credential. With it they read the build history and copied Railway's source code, which they analysed to find other ways in. Then a badly configured trust relationship gave them what they needed to decrypt customers' environment variables, where people keep their passwords and keys.

According to Railway, the attack was a duel of about 26 hours between its engineers and attackers using AI agents to find and exploit flaws, trying many paths in parallel. The attackers were thrown out on 21 October. Railway warned its customers on the 22nd and asked them to change their secrets.

In the decrypted data, the attackers looked mostly for keys to AI services, but also for cloud, database and payment service access. According to Railway, at most 1.85% of workspaces, about 100,000, may have been read; that is a ceiling, not a confirmed count. The stolen keys were used for about $740,000 of AI usage. According to CSO Online, customers saw their keys answer coding questions and run jobs they had never started. Railway is working with providers to refund its customers and says it will pay whatever they refuse. It found no sign that customers' code repositories were downloaded or their databases accessed.

Railway believes the attackers wanted to resell this AI access. According to BleepingComputer, it links the incident to the wave the company Wiz called "Black October": in October, at least nine AI developer platforms announced an incident, including Fireworks AI, OpenCode, Warp and Northflank.

Why it happened

AI keys can be resold and spent straight away. According to Wiz, stolen keys were tried less than 30 minutes after the theft. When one platform keeps thousands of customers' keys in the same place, a single way in is enough to reach them all. And agents testing dozens of paths at once leave defenders little time.

The failure family

In our catalogue, this is the "The agent as a weapon" family: according to Railway, the attackers used AI agents to move faster than the defence.

The safeguard in code

  • Limited AI keys: a spending cap, only the models you need, and an alert as soon as a key breaks its habits.
  • Short-lived credentials rather than permanent keys stored at the host.
  • Every decryption of a secret logged, to know fast what was read.

What we test

Our crash tests test the company's agent, not the attacker's. An agent with keys and credentials within reach, which an intruder or a booby-trapped order could get out of it, is already on our list of tests to add. What a company can lock down today: a spending cap on every AI key, so a stolen key costs little.

And your agent, what would it do?

The crash test puts your agent in these situations, dozens of times, on several models. You get the figures, the conversations where it gave in, and the fix plan.

Crash-test my agent See the live demo

Further reading