Railway hosting hack: keys leak from environment variables, about $371,000 drained from wallets
On October 21, Railway, a cloud platform where developers run websites, bots and app backends, disclosed that an outsider had gained access to customers' environment variables and decrypted some of them. These variables hold API keys and database passwords, and for some users, private keys to crypto wallets. By researcher Taylor Monahan's count, about $371,000 was drained from such wallets across 19-plus chains, and the first theft took place more than two hours before the public warning. Here is what we know, and what to do if your keys are stored on a server.

What happened in the Railway breach
Railway is a cloud platform where developers deploy applications without having to set up servers themselves. The company says millions of developers use it. App secrets such as keys, passwords and tokens are usually stored there in environment variables, which the platform keeps encrypted.
On the morning of October 21, the platform started having outages, and by evening Railway announced that this was more than an outage. CEO Jake Cooper wrote on the company blog that Railway had "detected anomalous activity involving systems that store customer environment variables" and that "an unauthorized third party may have accessed encrypted environment variables and, for some of them, obtained the decrypted contents."
| Time, UTC | What happened |
|---|---|
| October 21, 07:24 | first outage notice on Railway's status page |
| October 21, 09:28 | the dashboard, API and command-line tool are down, and builds are halted in all regions |
| October 21, 19:36 | first known crypto theft, according to Monahan |
| October 21, around 22:00 | Railway publishes a warning and asks everyone to rotate their secrets |
| October 22, 04:17 | Railway revokes all API tokens on its platform |
| October 22, evening | builds are back for Enterprise and Pro plans, the rest are still waiting |
Railway hasn't said how the attacker got in. The company believes this is "part of a series of attacks recently targeting platform companies with the aim of compromising AI inference providers" and has asked them to revoke all their keys in advance. It hasn't disclosed how many customers were affected either: preliminary findings point to only a subset, but Railway recommends that everyone rotate all of their secrets. The company has promised to email affected customers and to publish a full incident report on its blog.
How much was stolen in the Railway hack, and how
The crypto connection was first shown by Taylor Monahan, a security researcher known for her investigations into thefts. Overnight into October 22, she wrote that wallets whose keys were stored on Railway had indeed been drained. By her count:
- about $371,000 was stolen;
- the first theft happened at 19:36 UTC on October 21;
- there were more than 500 transactions, with more than 200 addresses affected;
- the thefts hit 19-plus Ethereum-compatible chains.
Monahan called the attacker's tool "an okay sweeper script," meaning ready-made software rather than something built for a single operation. A sweeper takes each stolen key and empties the address on every chain at once, so an empty balance on Ethereum mainnet doesn't mean the key was left alone. Railway has not confirmed any link to the thefts, and no new figures had emerged as of the evening of October 22.
According to Onchain Lens data cited by crypto media, at least $369,000 went from the attacker's address to the HitBTC exchange and other addresses. We could not confirm this. On the Ethereum network, our own check shows that about 55,000 USDC, 1,500 USDT and 14.3 ETH left the address around midnight UTC. The address itself is already receiving a stream of transfers from lookalike addresses: scammers are trying to "poison" the history of the thief too.
Monahan made a point of stressing that the Railgun protocol has nothing to do with this story: the names are similar, and people mix them up.
Why a private key on a server is a hot wallet
Environment variables are convenient, but they are a weak spot for secrets. The OWASP Secrets Management Cheat Sheet says plainly that "environment variables are generally accessible to all processes and may be included in logs or system dumps." That is why OWASP advises against storing secrets in them when there is another option, and recommends a dedicated secrets store and, where possible, short-lived keys.
This has happened before. In January 2023, CircleCI had its customers' environment variables, tokens and keys stolen: the data was encrypted, but the attacker pulled the encryption keys from a running process. And after the LastPass vault breach in 2022, money kept vanishing from wallets for years: in March 2025, the US Secret Service seized $23.6 million of the $150 million stolen in January 2024, and investigators believe the keys came from those very vaults. LastPass says it has not been shown convincing evidence of that link.
The takeaway is simple: a private key in a server variable is a hot wallet with one more weak link, the hosting platform. For an ordinary holder, the rule is even simpler: your coins should sit on an address whose seed phrase is written down on paper, not in the cloud, in notes or in server settings. Even a crypto exchange with no sign-up sends coins straight to an address like that and doesn't hold them itself.
Who else the Railway breach may have hit
No crypto service has said yet that it was hit because of Railway. There is one possible case: overnight into October 22, researcher Spreek reported that the Swell restaking admin keys for the swETH and rswETH tokens appeared to have been compromised, and asked whether this was connected to Railway. According to Spreek, four malicious contracts were deployed with the hijacked keys and could have drained about 2,500 ETH, but nothing had been stolen at the time of the report. The link to the Railway hack remains a guess: by the same report, someone was already controlling the Swell keys from 14:25 UTC, before the first known theft.
AI bills may have taken a hit too. Railway published guides on checking for unexpected charges in Stripe, OpenAI, Anthropic, Grok and OpenRouter: leaked API keys can be used not only to steal money but also to run expensive requests at someone else's expense.
Hosting platforms in general have become a target. On October 20, another platform, Zeabur, announced it was shutting down after its second breach in two months: 3.2 million environment variable records were taken from it. No one has claimed a link between these incidents.
What to do if your keys were stored on Railway
- Private key or seed phrase. These can't be "rotated." Create a new wallet on a clean device and move everything from the old address to it, checking every chain, not just Ethereum mainnet.
- Exchange API keys. Delete the old ones and create new ones without withdrawal permissions, with IP and withdrawal address whitelists. Check orders and withdrawals from October 21 onward.
- Other secrets. Rotate all environment variables, database passwords and registry tokens, then redeploy your services: otherwise they won't pick up the new values. Revoke GitHub tokens yourself, since a reset on Railway's side doesn't disable them on GitHub's side.
- Logs. Railway advises checking the audit log for variable reads during the breach window and checking service logs for unusual activity.
- Bills. Review your spending in payment and AI services: a leaked key quickly turns into someone else's bill on your card.
If you simply hold coins in your own wallet and haven't run anything on Railway, this doesn't affect you. But it's a good reason to check whether your seed phrase is sitting somewhere someone else could read it: we covered how to keep it safe in our guide on how to store a seed phrase so you never lose access to your wallet.
How to move coins to a new address and swap them in one go
Moving off a compromised address can be combined with switching to a different coin. On VertEXchange, you don't need an account, email or phone number to swap: you pick a pair, paste your new wallet address and see the rate and the amount you will receive before you send anything. The coins go straight to your new address, and the service doesn't hold them.
For example, if your old address holds ether, you can exchange ETH to bitcoin without registration, and if it holds stablecoins, you can move USDT from Ethereum to TRON by swapping USDT ERC20 to TRC20 and receive them at your new address.
- The fixed rate holds for about 15 minutes.
- You can set a refund address where the coins go back if the swap doesn't go through. Enter your new address, not the old one.
- Personal fields of each transaction are deleted 24 hours after it completes, and your swap history is stored only in your browser.
- Support chat is available on every page, and issues are sorted out using your exchange ID.
FAQ
What happened to Railway on October 21, 2026?
The Railway cloud platform detected anomalous activity in systems that store customer environment variables. An outsider may have accessed encrypted variables and, for some of them, their decrypted contents. Railway asked all customers to rotate their secrets, halted builds and revoked API tokens.
How much crypto was stolen after the Railway hack?
By researcher Taylor Monahan's count, about $371,000: more than 500 transactions and more than 200 affected addresses across 19-plus Ethereum-compatible chains. The first theft happened at 19:36 UTC on October 21.
Has Railway confirmed the crypto thefts?
No. Railway confirmed the environment variable leak but has not commented on any link to crypto thefts. Monahan established that link from blockchain data.
What should I do if my private key was stored in Railway environment variables?
Treat it as compromised: create a new wallet on a clean device and move everything from the old address to it, on every chain. There is no way to change the private key of an existing address.
Is this related to Railgun?
No. Railgun is a different project with a similar name. Monahan made a point of stressing that this story has nothing to do with it.
Does this affect ordinary crypto wallet holders?
If you haven't run anything on Railway or stored keys there, your coins are not affected. Either way, though, your seed phrase shouldn't be kept in the cloud, in notes or on a server.
No email, no account: enter your wallet address, send your coins and get the new ones straight to it.
Exchange ETH to BTC

