Rotate every secret you stored in Northflank and revoke the old AI keys at the provider

Northflank breach: assume every environment variable was decrypted, AI keys already abused · Security incident · Northflank status page · northflank · Oct 30, 2026

What happened

Northflank opened a security incident on 30 Oct after a Wiz threat alert and told all users to assume their environment variables had been decrypted and to rotate every secret, including workload secrets, secret groups and global secrets. Later that day it said multiple users had confirmed unauthorised use of AI API keys stored on the platform, and linked the activity to the IP addresses in Wiz's 'Black October' report. It has since added secret rotation for Postgres, MongoDB, MySQL, Redis, Minio and RabbitMQ add-ons and turned on audit logs for all customers.

How to prevent it

Give each hosting platform its own AI key with a hard spend cap and usage alerts, so one platform breach exposes one capped key. Keep a written list of where every key lives so you can rotate within the hour when a provider posts a notice, and turn off public access to database add-ons you don't need exposed.

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 Northflank 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

More on this: every leaked secrets & api keys story and our related guide.

Tools involved

Northflank stories

Related stories

Source: original post on Northflank status page ↗. Summarised in our own words; numbers are as stated by the source. Browse all stories.

The Honest Build. Real stories, not hype.

Every week: real stories of what building with AI actually took, the one lesson worth keeping, and the security slip-ups to avoid. Free, unsubscribe anytime. Weekly, every Friday.