Railway breach exposes API keys in targeted AI attack
Railway just disclosed a security breach after attackers accessed customer environment variables and decrypted secrets like API keys and database credentials. The company believes the hack is part of a broader campaign targeting AI inference providers, and it has paused all deployments while urging users to rotate credentials immediately.

One of the worst feelings for any developer is waking up to find that the vault holding their production secrets has been cracked open.
On October 21st, deployment platform Railway issued an urgent security disclosure. The team detected anomalous activity in the systems that store customer environment variables. Their initial investigation revealed that an unauthorized third party may have accessed encrypted environment variables and successfully obtained decrypted contents for some of them.
In modern web apps, environment variables hold the keys to the kingdom: production database passwords, container registry secrets, and high-value API keys.
Hunting for AI compute
This was not your typical opportunistic data scrape.
Railway stated that it believes the breach is part of a broader campaign targeting developer platform companies with a specific goal: compromising upstream AI inference providers.
In response, Railway took extreme measures. The company reached out directly to upstream AI providers to proactively revoke API keys. It also hit the emergency brake on its own infrastructure, pausing all customer deployments and builds across the entire platform while the investigation continues.
While early signs suggest the blast radius may be limited to a subset of accounts, Railway is advising all users to immediately rotate every environment variable and private registry credential stored on the platform, and to comb through recent access logs.
Why it matters
We think this disclosure signals an alarming shift in how threat actors target the AI ecosystem.
Instead of hunting for individual leaked keys on public GitHub repos, attackers are now striking the supply chain at the platform layer. Squeezing a PaaS provider like Railway yields bulk access to high-tier AI inference keys that can run thousands of dollars in compute per day. AI tokens are the new digital currency, and draining them or reselling access is pure profit.
Railway did the right thing by aggressively freezing all deployments and looping in upstream providers immediately. Halting production for paying customers takes guts, but it prevents the bleeding.
However, the incident raises tough questions about credential isolation. If an attacker managed to pull decrypted contents from an encrypted store, the boundaries protecting decryption keys clearly failed. For developers, the takeaway is painfully clear: never assume your hosting platform is an impenetrable safe, and make secret rotation an automated habit rather than an afterthought.
Sources (1)
- blog.railway.com(opens in a new tab)Originalblog.railway.com