Run · founder · 5 min read
Attackers Are Scanning Live Apps for AI Keys. Here's Where They Look
VulnCheck logged 1,756 attempts to steal AI provider keys from exposed apps since May. Where attackers look, and a short checklist for your app.
Most of this year’s AI key stories were about someone else getting breached: a host, a router, a model provider. A report VulnCheck published on November 23 is about something closer to home. Attackers are scanning ordinary web apps, one after another, and asking each one to hand over its secrets. AI keys are now on the shopping list by name.
If your app calls OpenAI, Anthropic or Gemini, it holds a key that somebody else can spend. This is how that key gets taken, and what to check this week.
What VulnCheck measured
VulnCheck runs decoy servers, which it calls canaries, that look like vulnerable software and record what attackers try against them. The report covers January to November 2026.
The headline numbers:
- Of 694 vulnerabilities attackers tried, 127 (18%) were used to grab credentials rather than to break in further.
- The volume grew about sixfold in three months, from roughly 17,000 recorded attempts in July to 99,000 in October.
- 61% of those 127 vulnerabilities were in open source software, AI products and developer tools. That’s the stuff AI-built apps are made of.
Attempts aimed specifically at AI credentials first showed up in May 2026. Since then VulnCheck has counted 1,756 attempts from 406 different addresses. OpenAI keys were the most wanted (1,085 attempts), then Anthropic (778), Hugging Face (317) and Google Gemini (271). OpenRouter, Groq, DeepSeek and Mistral keys all appear further down.
These are VulnCheck’s own sensors, so read the numbers as a sample, not a census. The direction is the point.
How the theft works
Nobody is guessing your key. The attacker finds a known bug in a common framework that lets them read a file off your server, then asks for the files where secrets usually live.
The most requested is .env, the plain text settings file where most AI-built apps keep their keys. Others on the list include server log files, cloud provider credential files, and the memory of the running app itself, where settings sit once the app has loaded them.
The bugs doing the work are not new. Two that VulnCheck names:
- A Next.js flaw (CVE-2025-29927) that lets a request skip the app’s login check. It accounted for about 68,000 of October’s 99,000 recorded attempts. A fix has been out since early 2025.
- A Vite flaw (CVE-2025-30208) that lets anyone read files from a development server that’s reachable from the internet.
Langflow, a popular tool for building AI workflows, shows up three times.
So the pattern is old bug, automated scan, new prize. An app built in a weekend and never updated is exactly what these scans find.
They want your coding agent’s login too
The report also recorded requests for the files where coding tools store their own sign-in: Claude Code’s credentials file, OpenAI Codex’s auth.json, and Cline’s settings for connected tools. Each came from five or fewer addresses, so this is early. But it means someone has already added “is a coding agent logged in on this machine?” to their script.
That matters if you run an agent on a server, a cloud workspace or an always-on box at home. The agent’s login is usually your subscription, with whatever access you gave it.
Why AI keys are worth stealing
A stolen AI key is cash. It can be used immediately, resold, and the bill goes to you. When Railway was breached in October, attackers ran up about $740,000 on customers’ AI keys in days.
Unlike a stolen password, there’s usually no second step. No code sent to your phone, no login alert. The key is the whole door.
What to do this week
None of this needs a developer, though a couple of items are easier with one.
1. Set a spending cap on every AI key
OpenAI, Anthropic and Google all let you set a monthly limit and an email alert. Do this first. It turns a stolen key from an open-ended bill into a fixed, small one.
2. Give each app its own key
One key per app, named after the app. If one leaks, you revoke one key and nothing else breaks. If your provider lets you restrict a key to certain models, do that too.
3. Ask your builder where the secrets live
Paste this into Lovable, Bolt, Replit, Cursor or whatever you built with:
List every secret this app uses and where each one is stored. Confirm that no secret is in a file that ships with the app or can be requested from a browser, and that no development server is exposed to the internet.
The answer you want: secrets are in the host’s environment settings (Vercel, Netlify, Railway and Supabase all have a screen for this), not in a file inside the project.
4. Update the framework
Ask your tool to update Next.js, Vite and your other dependencies to current versions, then republish. Most of the bugs in this report were fixed long ago. They work because apps don’t get updated. If you’re on Lovable, its security checks now flag known-vulnerable dependencies for free.
5. If a bug could read files, rotate everything
This is VulnCheck’s bluntest advice and the easiest to skip. If you find your app was running a version with a file-reading bug, assume every key it could reach was read. Make new keys, delete the old ones. Patching closes the door but doesn’t un-steal anything.
6. Look at your usage page
Check your AI provider’s usage dashboard for activity at hours you weren’t working, or for models you don’t use. It takes two minutes and it’s often how people find out.
What this doesn’t mean
It doesn’t mean Lovable, Bolt or any specific builder is leaking keys. The report is about frameworks and deployment habits, not about a vendor. It also doesn’t mean your app is being targeted personally. These are scans of the whole internet. You are in the queue like everyone else.
The fair summary is that AI keys have joined cloud passwords and payment keys as things criminals collect in bulk. If you’ve already worked through our guide to secrets and coding agents, you’ve done half of this. The other half is the cap, the update, and the two-minute look at your usage page.
Related guides
founder · 8 min read
Researchers put a virus in an agent's memory file. It spread to the next agent.
New Anthropic/EPFL research says AI agents can pass self-replicating instructions through files like CLAUDE.md. The fix is one paragraph.
founder · 9 min read
Your Agent Can Now Spend Your Money. Nobody Can Prove You Said Yes.
AWS shipped autonomous agent payments this month. The infrastructure works. The paper trail that would settle a disputed charge doesn't exist yet.
founder · 8 min read
35 Security Holes in One Month: Why Vibe-Coded Apps Are Getting Riskier in 2026
35 new CVEs in March 2026 were traced to AI-generated code. Here's what happened and what founders need to do about it.
Enjoying this guide?
Get weekly practical guides, plus tool updates and implementation playbooks.