Stolen AI API Keys: The Incidents Hitting OpenRouter, Railway and Fireworks AI
Stolen AI API keys explained: what OpenRouter, Railway and Fireworks AI each confirmed, how the three incidents differ, and how to protect your own keys.
Stolen AI API keys were the common prize in three security stories that surfaced this fall. Railway, a cloud hosting company, says attackers decrypted customer secrets in October and ran up an estimated $740,000 in unauthorized AI spending. Fireworks AI, which runs AI models for other businesses, says intruders reached customer secrets, datasets and model files in two separate incidents. And on November 22, 2026, OpenRouter said it had dropped three of the AI hosting companies it sends requests to, after researchers found prompts leaking out of some of them.
These often get lumped together as "the AI breaches," but they aren't the same thing. Railway and Fireworks were broken into. OpenRouter says it was not. The problem there sat with companies further down the chain. The difference matters, because it changes what you need to rotate and who you need to ask for answers.
Key takeaways
- Railway was breached on October 20 and 21. It says secrets in at most 1.85% of workspaces (about 100,000) were exposed, and AI provider keys were the main target.
- Fireworks AI disclosed two incidents. Billing and account data for every account created before October 30 was accessed, plus datasets, models or secrets for a small number of customers.
- OpenRouter removed three providers and pulled the zero data retention label from 125 endpoints. It says its own systems were not breached.
- If you used any of them, rotate the keys you stored there and any password or key you ever pasted into a prompt.
- The best cheap defense is a hard spending cap on every AI key, plus a separate key for each app.
The three incidents side by side
| Railway | Fireworks AI | OpenRouter | |
|---|---|---|---|
| What it does | Hosts apps and stores their secrets | Runs and trains AI models for businesses | Routes AI requests to many model hosts through one key |
| Were its own systems breached? | Yes | Yes, in two incidents | No, according to the company |
| When | October 20 to 21, 2026 | August 3 to October 7, and October 23 to 30, 2026 | Provider leaks between late May and mid-November 2026; disclosed November 22 |
| What was exposed | Environment variables, including AI keys | Billing and account data; secrets, datasets and models for some customers | Prompts handled by certain outside providers, and any secrets inside them |
| Rotate first | Every secret stored there before October 21 | Fireworks keys and third-party keys saved as secrets, if you were notified | Any credential that appeared in a prompt |
Railway: stolen customer keys and a $740,000 AI bill
Railway published its full incident report in November, and it's unusually detailed. The company says an attacker used a previously unknown flaw in its build system on October 20, then a badly configured trust relationship with a cloud service the next day. That second step let them query the database that stores customers' environment variables and decrypt some of them.
Environment variables are where developers keep the passwords and keys an app needs to run. Railway puts the exposure at "at most" 1.85% of workspaces, or roughly 100,000, and calls that an upper limit because its logs don't show individual variables. Separately, linked-account tokens for 1,852 users were exposed, including GitHub logins. Railway says it reset them all and found no logins using them. It also says it found no sign that customer databases were accessed.
The attackers knew what they wanted. "AI provider keys were the primary target of the attack," Railway wrote, and it described the incident as one in a series against platforms that hold them. Its estimate for unauthorized spending on those keys is about $740,000.
Who pays? Railway says AWS Bedrock and Google Gemini have fraud refund policies that apply, and that OpenAI reviews cases one by one. It says it's covering costs on breached Anthropic keys while talks continue, and OpenRouter costs in full because OpenRouter is holding to its no-refund policy. Where a provider won't refund a customer, Railway says it will cover the loss. If you spotted charges you don't recognize, use the claim form linked in the report.
Fireworks AI: two breaches, and a story that grew
Fireworks AI's account changed as its investigation went on, so older headlines may be out of date. Here's how its security bulletins developed:
- October 10: Fireworks said someone had used internal credentials and captured environment variables, including API keys and tokens, from a limited number of accounts. At that point it had found no evidence that datasets or models were touched.
- November 9: It widened the scope. Account and billing information was affected, along with secrets, datasets and incomplete model files for a limited set of customers. It linked the activity to a group that sells illegal access to AI models.
- November 17: It split the events into two incidents. The first ran from August 3 to October 7. The second ran from October 23 to October 30 and began at an outside cloud company that hosted Fireworks development machines.
The latest bulletin says account and billing information was accessed for all accounts created before October 30. That covers addresses, invoice and payment history and account balances. Fireworks says it doesn't store payment card numbers, so those weren't exposed. It also says it found no impact on its inference service, which doesn't keep prompts by default, and that both incidents are contained.
The damage reached at least one well-known customer. BleepingComputer reported that Notion AI chat transcripts were exposed for what Notion says was fewer than 1% of its users. Notion said Fireworks had contractually promised zero data retention for its data. It has told affected users to change any passwords or keys they typed into those chats.
OpenRouter: prompt theft at its providers, not a breach of OpenRouter
OpenRouter is a middleman. You send it a request with one key, and it passes the request to whichever company is hosting the model you picked. That's convenient, but it means your prompt lands on servers belonging to a company you may never have heard of.
Security firm Dragos tested that chain from July to November. It sent about two million prompts to AI services, each carrying a unique link or a fake credential that would raise an alarm if anyone used it. Alarms went off. Dragos says data was exposed at three or more AI providers, that none of the three knew until Dragos told them, and that a couple hundred bait AWS keys were taken in the largest case. Stolen keys were tried within hours.
In its November 22 post, OpenRouter said it had off-boarded three providers, stripped 125 endpoints of zero data retention (ZDR) status, some purely as a precaution, and notified customers who may be affected. It added: "These findings did not show any breach or unauthorized access of OpenRouter."
Which providers were involved?
OpenRouter hasn't named the three it removed. Be careful with lists that claim to. What we do have is a set of notices published by providers themselves, and appearing here doesn't mean a company was dropped:
- Together AI says an AI coding agent exposed a credential in a public code repository, which let someone download stored prompt samples, mainly from four days in June and July. The affected models were MiniMax M3, GLM-5.2 and Kimi K2.6. Together told BleepingComputer that OpenRouter did not remove it.
- Phala says requests to one model, DeepSeek V4 Flash 0731, should be treated as exposed if sent between October 21 and November 8.
- Novita says a routing mistake forwarded some MiniMax requests to MiniMax's own API between May 28 and November 11.
- Atlas Cloud pulled its models from OpenRouter voluntarily while it runs security tests, according to BleepingComputer.
OpenRouter's post also links to notices from GMI Cloud, MiniMax, Prime Intellect and StreamLake, and the company says it will keep that list updated.
A privacy setting is a promise about what a company will do with your data. It does nothing about a thief who is already inside.
Why criminals want AI keys now
A working AI key is easy to turn into money. Security people call the scam LLMjacking: steal a key, then sell cheap access to the models behind it while the victim gets the bill. Google's threat team reported in early November that some cases produced more than $100,000 in charges in a single day, and that some organizations reached $1 million before access was cut off.
Small teams are exposed too. Google describes attackers collecting corporate AI keys from public GitHub repositories, with no break-in needed. If one of your developers (or their AI assistant) commits a key to a public repo, assume someone has it.
How to protect your AI API keys
You can't patch your vendors. You can make a stolen key worth very little. Here's the order we'd do it in.
1. Set hard spending caps today
This takes minutes and limits the worst case. Anthropic's console lets you set a monthly limit for the organization and for individual workspaces, and requests stop when it's reached. OpenRouter's guardrails can cap a user or key by day, week or month. With any other provider, check whether its "budget" actually blocks requests or just sends you an email. An email at 3 a.m. won't stop anything. Our LLM API pricing comparison can help you estimate a sensible ceiling.
2. Use one narrow key per app
Don't share a master key across production, testing and somebody's laptop. Give each app and environment its own key, limited to the models it needs. When one leaks, you can kill it without taking everything down, and the usage log tells you where the leak came from.
3. Rotate on a schedule and after every vendor incident
Create the new key, switch the app over, confirm it works, then revoke the old one. Deleting a saved secret from a hosting dashboard isn't enough. As Fireworks warns in its own guidance, that doesn't invalidate the underlying credential. You have to revoke it at the company that issued it.
4. Turn on secret scanning
GitHub's push protection blocks known types of secrets before they reach a repository. It's on by default for personal accounts pushing to public repos. Private repos need GitHub Secret Protection switched on by an admin. Keep the keys themselves in a secrets manager, not in code, chat threads or shared docs.
5. Keep secrets out of prompts
This is the lesson from the OpenRouter story. AI coding agents can read config files and send whatever they find to the model. Limit which folders an agent can open, keep production credentials off machines where agents run, and use filters that redact or block sensitive text. Dragos also suggests planting a fake credential of your own as a tripwire.
6. Choose who handles your data
If you use a router, pick the upstream hosts yourself instead of accepting the default pool. Ask each one whether it keeps prompts, for how long, and whether it forwards them to anyone else. For sensitive work, buy directly from one provider under one contract, or run a model locally.
What to do if an AI key leaks
- Revoke it now. Don't wait to find out how it happened. A short outage costs less than a night of fraud.
- Check usage and billing. Look for unfamiliar models, odd hours and sudden spikes. Save screenshots and export the logs.
- Look for anything the thief added, such as new keys, users, training jobs or datasets.
- Rotate the neighbors. If one secret in a file or workspace leaked, treat the rest as leaked: cloud, database and payment keys first.
- Open a support case and dispute the charges. Refund rules vary a lot, as Railway's customers found out.
- Work out whose data was in the prompts. If customer information was involved, you may have notification duties under state breach laws, or under GDPR in the EU and UK. Talk to a lawyer early. The FTC publishes a free breach response guide for businesses.
FAQ
Was OpenRouter hacked?
OpenRouter says no. Its November 22 statement says the research didn't show any breach or unauthorized access of OpenRouter itself. The leaks were at outside companies that host models and receive requests through it.
Do I need to rotate my OpenRouter API key?
Nothing OpenRouter has published says its customers' account keys were stolen in this incident. The bigger worry is anything secret inside your prompts, so rotate those credentials if you used an affected provider. If your OpenRouter key was stored on Railway before October 21, rotate that too.
How much did the Railway breach cost?
Railway estimates about $740,000 in unauthorized spending on stolen keys. That's an estimate of AI usage charges, not the total cost of the incident. Railway says it will cover losses that AI providers won't refund.
Did the Fireworks AI breach expose credit card numbers?
Fireworks says no, because it doesn't store card numbers. It does say billing details such as addresses, invoices and payment history were accessed for all accounts created before October 30, 2026. Watch for convincing fake invoices.
What is zero data retention, and does it protect me?
Zero data retention means a provider promises not to store your prompts or the model's answers. It's worth having, because data that was never saved can't be stolen later. It isn't a guarantee: Dragos saw bait links from prompts marked ZDR being opened anyway.
Will I get my money back if someone uses my AI key?
It depends on the provider. In the Railway case, some had fraud refund policies, some reviewed claims individually, and one declined. That's why a spending cap beats hoping for a refund.
What happens next
Expect more notices. OpenRouter says some affected providers haven't posted publicly, and Fireworks said in November that a forensic investigation into its second incident was still running. We'll update this story if the companies change their accounts.
In the meantime, our small business security checklist covers the basics around your accounts. You'll find more in cybersecurity news, LLM APIs and pricing and password and identity tools. If you'd like a hand moving secrets out of old code or locking down a server, you can hire our IT team.
Sources: Railway incident report, Fireworks AI security bulletins, OpenRouter, Dragos, Together AI, Phala, BleepingComputer on OpenRouter, BleepingComputer on Notion, CSO Online, TNW, Google Threat Intelligence, GitHub Docs