How to check an AI-built app for leaked keys before you buy it (10 minutes, no login)
If you are about to buy an app built with Lovable, Bolt, Replit, Cursor or v0, you can learn a lot about it from the outside in about ten minutes. You do not need the code and you do not need the seller's password. A pu
If you are about to buy an app built with Lovable, Bolt, Replit, Cursor or v0, you can learn a lot about it from the outside in about ten minutes. You do not need the code and you do not need the seller's password.
A public check cannot tell you if the app is safe. It can tell you if it is obviously not. Here is what to look at.
1. Keys in the JavaScript bundle
Open the live app, open DevTools, go to Sources, and search the main JavaScript files for sk-, service_role, AKIA, sk_live. A Supabase "anon" key in the bundle is normal. A service_role key is not. It bypasses Row Level Security. Paid AI keys (OpenAI, Anthropic) and Stripe secret keys in client code are also red flags. Ask the seller which keys have ever been public and when they were rotated.
2. Files that should not be public
Try /.env, /.env.production and /.git/HEAD on the live domain. If any returns real content, treat every secret in that file as leaked.
3. Source maps
If the bundle ends with a sourceMappingURL and the map file loads, the original source is public. That is not always a leak, but ask why.
4. Open database tables
If the app uses Supabase, check whether the anon key can read tables without logging in. A table that answers without a login needs a reason. Ask for the Row Level Security policies for each table, and for a test with an anonymous user, the owner and an unrelated user. A screenshot of the editor is not proof.
5. CORS and headers
A wildcard CORS rule on a JSON API, or a reflected origin together with credentials, can expose logged-in responses. Missing HSTS and CSP are lower risk but worth a line in the contract.
What this does not tell you
It cannot show who owns the domain, whether the repo is complete, whether the seller can transfer third-party accounts, or whether the login and payment logic is sound. Treat it as a way to ask better questions, not as an audit.
Do it in one click
ProofForge runs these public checks read-only (no login, no writing, no using any key it finds) and gives a graded report with fixes. The $79 buyer report is signed so you can share it with a broker or lawyer. Database and file probes run only after the seller verifies the domain. Free first look: https://proofforge.live
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.