If you sent DeepSeek V4 Flash 0731 requests through OpenRouter between 21 Oct and 1 Nov 2026, rotate every key, token or password that was in those prompts
Phala: an attacker read OpenRouter requests to its DeepSeek V4 Flash server for 11 days, starting with a default Grafana password · Security incident · Phala blog · PhalaNetwork · Nov 23, 2026
What happened
Phala's final incident report, published 23 Nov 2026, says an attacker could read requests sent to its DeepSeek V4 Flash 0731 backend on OpenRouter from 21 Oct 02:25 to 1 Nov 02:03 UTC. The server was an experimental deployment that took live OpenRouter traffic before it had production controls. The attacker logged into its Grafana monitoring box with the default admin password, then reached a host management service that trusted any request from the local machine. On 5 Nov the same attacker obtained the root key of Phala Cloud's legacy key management service. Phala closed both paths by 6 Nov, rebuilt the affected infrastructure with a new root key, and says it did not detect either attack itself.
How to prevent it
Never put live keys, passwords or .env contents in prompts; pass them to tools server-side instead. Change default passwords on every monitoring and admin tool, and don't let test servers handle real user traffic.
Fix prompt for your own AI tool
Copy this into your own AI tool (Cursor, Lovable, Claude Code, Bolt…). It's general guidance written by us. Review what the AI suggests before applying it.
I'm a beginner and want to make sure my API keys are safe in my OpenRouter project. 1) Search the code for hardcoded keys or tokens and for secrets in variables that ship to the browser (NEXT_PUBLIC_, VITE_, REACT_APP_). List the file and line, but don't print the values. 2) For each one, tell me whether it's meant to be public (like a Supabase anon key) or secret. 3) For secret ones, show me how to move them to server-side env vars and call the provider through a server route. 4) Give me the steps to rotate each exposed key in the provider's dashboard and set a spending limit. 5) Make sure .env is in .gitignore and in my AI tool's ignore file. Don't change anything until I've approved your plan. Never ask me to paste API keys, passwords or .env contents; tell me where to check them myself.
Why this keeps happening: leaked secrets & api keys
Secret keys placed in front-end code, mobile bundles or public repositories can be found by automated scanners and abused, often running up large bills on AI or cloud accounts before anyone notices.
A quick checklist before you ship
- Keep secret keys only in server-side environment variables, never in browser or app code.
- Set spend limits and usage alerts with every AI and cloud provider.
- Turn on secret scanning and push protection for your repositories.
- If a key leaks, revoke and replace it first; deleting the file is not enough.
More on this: every leaked secrets & api keys story and our related guide.
Tools involved
OpenRouter stories, Phala stories, DeepSeek stories
Related stories
- If you used MiniMax models through Novita or OpenRouter between 28 May and 11 Nov 2026, rotate any secrets those requests contained
Novita: MiniMax requests, including OpenRouter traffic, were quietly forwarded to MiniMax's own API for five and a half months - Treat anything you put in a prompt as something a provider, reseller or attacker can read: keep real keys, passwords and customer data out of prompts
Dragos planted canary keys in about two million AI prompts and caught attackers inside three AI hosting providers - Keep secrets out of what your AI agent can read
GitGuardian: real leaked API keys recovered from three LLMs; Claude Code commits leak more
Source: original post on Phala blog ↗. Summarised in our own words; numbers are as stated by the source. Browse all stories.