Black October: Stolen AI API Keys and How to Lock Yours

On this page
Stolen AI API keys became a business in October 2026. Wiz counted at least nine AI developer platforms that disclosed incidents in one month, with attackers hunting stored keys.[1] If your site uses an AI chatbot, writing tool or automation, its key is worth money to them. A few settings limit the damage.
What happened
Wiz calls it “Black October.” Between October 6 and October 30, Fireworks AI, Andromeda, Zeabur, Lightning AI, OpenCode, Railway, Warp, CommandCode and Northflank all disclosed incidents.[1] Wiz also lists two more reported publicly: NVIDIA’s Brev and Trigger.dev.[1] These are services developers use to build, host and run AI apps.
The causes differed, but the target was the same. Wiz says every public report describes attackers hunting stored environment variables. Those are the settings where apps keep passwords and API keys.[1] Fireworks, OpenCode and Warp reported signs of an “agent swarm” attack, meaning many automated AI agents working at once.[1] One platform, Zeabur, is shutting down because of its breach.[1]
Northflank, the latest case
Northflank, a cloud hosting platform, got a Wiz alert at 11:43 UTC on October 30.[2] Within hours it told customers to assume their environment variables had been decrypted and to rotate every key. Later that day, users reported that AI API keys they had stored there had been used without permission.[2] On November 2, Northflank said the attack was contained within an hour of the first alert and that running workloads weren’t touched. It hasn’t published a root cause yet.[2]
Why it matters for your site
An AI API key is like a prepaid card for an AI service. Whoever holds it can run requests, and you get the bill. Wiz found stolen keys feeding two resale operations, one of which advertises discounted access to top AI models and takes payment in cryptocurrency.[1] Wiz says the use of the keys by multiple attackers points to a robust market for them.[1]
The abuse starts fast and adds up quickly. In two cases Wiz studied, enterprise keys for Amazon Bedrock, Amazon’s AI model service, were first misused within 30 minutes of the reported theft.[1] One key made about 800,000 calls over 30 hours before it was shut off. A single address made about 1.7 million calls with the other.[1]
“these two cases alone likely ran up over $100k in usage.”
Wiz Research [1]
You don’t need to be a developer to have one of these keys. Did you paste an OpenAI, Anthropic or Google key into a chatbot plugin, AI writer, form automation or no-code app? Then you have one. If that service is breached, or the key ends up somewhere public, it’s the same risk. Attackers also scan websites for files that hold keys, as we covered in fake AI crawlers hunting for .env files.[6]
How stolen AI API keys leak from websites
Start with an inventory. This table is our checklist, not a list from Wiz.
| Where the key is stored | What could expose it | What to check |
|---|---|---|
| A WordPress plugin’s settings (chatbot, AI writer, SEO assistant) | A hacked admin account, plugin flaw or leaked database backup | Who has admin access, and whether the plugin is still maintained |
| A no-code or automation tool (Zapier-style workflows, form tools) | A breach at that vendor | Whether the vendor has reported an incident, and who in your team can see the key |
| A hosting or app platform’s environment variables | A breach at the platform, as with Northflank[2] | The platform’s status page and security notices |
| A .env or config file on your server | A file left reachable from the web, or a server break-in[6] | That the file sits outside the public web folder |
| JavaScript that runs in visitors’ browsers | Anyone who views the page source | Move the call to your server. Google says never to expose keys client-side.[5] |
6 steps to protect your AI API keys
- List every key and where it’s stored. Use the table above. Delete keys you no longer use in your AI provider’s dashboard, not just in the tool.
- Give each tool its own key and project. OpenAI lets you set custom rate and spend limits per project.[3] Anthropic lets you scope a key to a single workspace, so it can only reach that workspace.[4] If one tool leaks, you replace one key, and the others keep working.
- Set a hard spending cap, not just an alert. OpenAI’s spend alerts only send notifications, while its hard spend limits stop the affected API traffic once spending reaches the limit.[3] Anthropic workspaces can cap monthly spending and send alerts at thresholds you choose, though not on the Default Workspace.[4]
- Keep keys out of browser code. Google says never to put keys in web or mobile app code in production, and to make the calls from a backend server instead.[5] Add key restrictions where your provider offers them, so a leaked key can do less.[5]
- Rotate keys on a schedule. OpenAI recommends an expiration date on project keys and a regular rotation. Create and test the new key before you revoke the old one.[3]
- Watch usage, and act fast on a breach notice. Check your provider’s usage page for spikes.[3] If a service that holds your key reports a breach, replace the key, revoke the old one, and review billing and usage logs for activity you don’t recognize.[2][5]
If you use one of the breached platforms
Follow that platform’s own notice. Northflank tells customers to rotate all secrets, starting with AI provider keys, cloud credentials, payment keys and database passwords, and to contact their AI providers about unexpected usage or spend.[2] Rotating means replacing the old key, not just changing where it’s stored.
The bigger picture
Black October is part of a wider shift we described in AI is finding critical bugs fast: attackers now use AI to move faster, and AI access itself has become something to steal.[7][1] Our reading: treat an AI key like a company credit card. Give it a limit, give it to one tool, and know how to cancel it.
Where Zero Spam fits
Zero Spam doesn’t store or protect your AI API keys, and it can’t stop a breach at an AI platform. What the free Zero Spam WordPress plugin does is block known spam bots and bad IPs before they reach your forms and sign-ups. You can start on the free Explorer plan.
FAQ
Frequently Asked Questions
Wiz’s name for a run of security incidents at AI developer platforms in October 2026. At least nine platforms disclosed incidents, and attackers went after stored environment variables such as AI API keys.[1]
They use them or sell access. Wiz tied stolen keys to two resale operations, one advertising discounted access to top AI models.[1] The key owner pays for the usage.
Set a hard spend limit. OpenAI says spend alerts only notify you, while hard spend limits stop the affected traffic when spending reaches the limit. You can also set limits per project.[3]
No. Anyone can read code that runs in the browser. Google says never to expose keys client-side in production and to call the API from a backend server.[5]
Create a new key, switch your tools to it, then disable the old one and check billing and usage logs for activity you don’t recognize.[5]
Sources & References
- Wiz: Black October for AI developer platforms, nine disclosed incidents, stolen keys tied to resale sites, Bedrock abuse cases (Oct 30, 2026)
- Northflank: Security incident timeline and customer guidance to rotate all secrets (Nov 2, 2026)
- OpenAI: Production best practices, API keys, key expiry and rotation, spend alerts and hard spend limits (accessed Nov 3, 2026)
- Anthropic: Claude Console workspaces, workspace spend limits and workspace-scoped API keys (accessed Nov 3, 2026)
- Google: Using Gemini API keys, keeping keys off the client, key restrictions and what to do if a key leaks (Oct 27, 2026)
- Zero Spam: Fake AI crawlers are hunting for your .env files (Oct 29, 2026)
- Zero Spam: AI is finding critical bugs fast, is your website ready? (Oct 23, 2026)
