What it is
Your app talks to other services, such as OpenAI, Stripe or a database, using keys. Some keys are designed to be public. Others are passwords to your account and must only ever live on a server.
AI tools sometimes put a secret key in the part of your app that runs in the visitor's browser. The app works perfectly, so nothing looks wrong. But everything sent to the browser can be read by anyone who opens the page's source.
Why it matters
A stranger who copies an OpenAI key can run up your bill. A Stripe secret key lets them see payments and issue refunds. A database service key skips every access rule you have.
Automated tools search public websites for keys all day, so a key is often found within hours of going live, not months.
How VibeMonitor checks it
We read the JavaScript files your site sends to visitors and look for the known shapes of secret keys from common services. We report the first and last few characters only, never the whole key.
This runs on the full scan, which needs a free account and proof the site is yours. We only look this deep at sites their owner has verified. What our scanner does and doesn't touch.
How to fix it
- Treat the key as stolen. Create a new one in that service's dashboard and delete the old one. Moving the key without replacing it does not help, because it has already been public.
- Move the call that uses the key to the server side of your app (an API route, a server function or an edge function), and keep the key in your host's environment settings.
- Have the browser call your own server route, which then calls the service.
- Deploy, then check again to confirm the key no longer appears.
A prompt to paste into your AI tool
Works in Lovable, Cursor, Replit, Bolt or Claude Code. When VibeMonitor finds this problem on your site, the report gives you a version with your own details filled in.
My app has a secret API key in code that runs in the browser. Find every place a secret key is used on the client. Move each call to a server-side route or function, read the key from an environment variable there, and have the browser call that route instead. Do not put the new key in any file that is sent to the browser or committed to the repository. List the environment variables I need to set on my host.
Passing this check means we didn't find this particular problem. It isn't a guarantee, and it isn't legal advice. What a clean result means.