Caelo › Guides
App security guides
Plain-language security guides for apps built with AI tools like Lovable, Bolt, Replit, v0, Cursor and Supabase. Check your own app, with every number sourced.
- What free tool can check a Lovable, Bolt or Cursor app for security issues before launch?
Free tools to check a Lovable, Bolt or Cursor app before launch: local code scanners, URL scanners and Supabase Security Advisor, and which run locally.
- Is there a security scanner MCP server for Cursor or Claude Code?
Yes. Caelo and ShipReady MCP scan your app's code locally for free. Semgrep, Snyk and Datadog also ship MCP servers. Compared from each tool's own docs.
- Is my Lovable app secure? A 15-minute self-check
Probably not fully, and you can check yourself: database rules, keys in the browser, server-side admin checks, payments and what signed-out visitors read.
- How to check your Supabase row level security is actually working
An RLS policy is not the same as a correct one. List tables without RLS, read every policy, then test as a signed-out visitor and as a second user.
- I leaked an API key or the Supabase service_role key. What do I do now?
Rotate the key first; deleting the commit does not un-leak it. Replace it at the provider, update your server, check usage logs, then clean git history.
- Security checklist for apps built with Lovable, Bolt, Cursor, Replit or v0
A plain-language pre-launch checklist for AI-built apps: access rules, secrets, admin checks, payments, AI features and what signed-out visitors can reach.
- Is it safe to expose the Supabase anon key in my frontend?
Yes, the Supabase anon (publishable) key is designed to be public, but only if every table has correct row level security. The service_role key never is.
- Vibe coding security statistics (2026): what the research actually says
What research says about AI-generated code security: deployed-app audits, peer-reviewed benchmarks and the studies that push back. Every number is sourced.
- Can AI write secure code? What peer-reviewed studies found
AI writes working code far more reliably than secure code, and asking for security narrows the gap only slightly. What peer-reviewed benchmarks found.
- How to check your Firebase security rules are not open (test mode)
If your Firestore or Realtime Database rules say allow read, write: if true, or a test-mode date, anyone can read and change your data. Check and fix it.
- Can users get my AI-built app's paid features for free? Checking Stripe payments
If your app marks an order as paid from the browser, or trusts a price the browser sends, users can skip payment. Confirm with a verified Stripe webhook.
- Is my Bolt.new app secure? A self-check before you launch
A Bolt app can work perfectly and still expose data. Check database rules, keys in the browser, server-side admin checks and payment confirmation.
- Is my Replit app secure? Checks to run before you publish
Replit encrypts your Secrets and scans dependencies, but it does not write your access rules. Check keys, who can open the app and server-side sign-in.
- Is my v0 app secure? A check for v0 apps on Vercel
On a v0 app, NEXT_PUBLIC_ values ship to the browser, Server Actions can be called directly and Vercel's Standard Protection leaves production public.
- Is my Cursor app secure? What Cursor protects and what it does not
Cursor's guardrails protect your machine, not your users. Check keys in code and .cursor/mcp.json, browser-exposed variables and server-side auth.
- Is my Windsurf app secure? Checks for apps built in Windsurf (now Devin Desktop)
Windsurf is now Devin Desktop. Its ignore files and command rules govern the agent, not your app. Check keys in code and MCP config, and server-side auth.
- API keys in mcp.json: are your MCP config files leaking secrets to git?
MCP config files such as .cursor/mcp.json and .mcp.json live in your repo and can hold API keys in plain text. Find them, rotate them and use references.
- AI app builder security defaults, compared from their own docs (Nov 2026)
Lovable, Bolt.new, Replit, v0, Cursor and Devin Desktop compared on secrets, database rules, scans, public publishing and sign-in, from official docs.
- Supabase service_role key exposed in the frontend: what to do now
The Supabase service_role and sb_secret_ keys bypass row level security. How to tell if yours shipped to the browser, move it to the server and revoke it.
- Are NEXT_PUBLIC_ environment variables secret? What leaks, and how to fix it
Next.js inlines every NEXT_PUBLIC_ variable into the browser bundle at build time. Which values are safe there and how to move secrets to the server.
- Are VITE_ environment variables safe for API keys?
Vite writes every VITE_ variable into the built JavaScript, and its docs say they must not hold API keys. The loadEnv trap, and where to move the secret.
- OpenAI API key exposed in client-side code: how to fix it
OpenAI says never to deploy an API key in a browser or mobile app. How the key leaks in AI-built apps, how to revoke it and how to move calls to a server.
- Firebase says your security rules are insecure: how to fix test mode rules
Got a Firebase alert about insecure Firestore rules, or an email that client access is expiring? What it means and which rules to use instead of test mode.
- Supabase storage bucket public by mistake? How to lock it down
A public Supabase bucket serves every file to anyone with its URL. How to make it private, switch to signed URLs and write per-user folder policies.
- What does USING (true) mean in a Supabase RLS policy, and is it safe?
USING (true) lets the role see every row. When that is fine, when it is a leak, how USING differs from WITH CHECK, and owner-scoped policies to replace it.
- How do you secure a Supabase Edge Function?
Authenticate the caller in code, keep keys in Supabase secrets, verify webhook signatures and do not rely on CORS. Covers the verify_jwt change.
- Supabase getSession vs getUser vs getClaims: which is safe on the server?
Supabase warns never to trust getSession() in server code. When to use getClaims() and getUser() in Next.js server components, route handlers and proxy.
- How to rotate a leaked Stripe secret key without downtime
Rotate a Stripe secret key from the Dashboard with an expiry of up to 7 days, deploy the new key, and roll the webhook signing secret if it leaked too.
- Committed your .env file to GitHub? What to do, in order
Rotate every secret first, then stop tracking .env with git rm --cached, fix .gitignore and decide whether to rewrite history with git filter-repo.
- Got a GitHub secret scanning alert? What to do next
What a GitHub secret scanning alert means, why you revoke the secret first, what the validity status tells you and how to close the alert correctly.
- Is Access-Control-Allow-Origin: * a security risk in my API?
What a CORS wildcard allows and what it does not, why reflecting any Origin with credentials is the real danger, and how to set an allowlist.
- How to rate limit API routes in an AI app, and cap your model bill
Add a per-user limit to every route that calls a paid model, with @upstash/ratelimit or a Vercel or Cloudflare WAF rule, then set a provider spend limit.
- Prompt injection in a vibe-coded app: what it is and how to limit the damage
Prompt injection lets user text or fetched content change what your model does. OWASP's 2025 guidance and how to limit what the model can reach.
1. Run the free local check
npx caelo .
Caelo is a free, open source (MIT) command line tool and MCP server from Irth Labs that checks the files of an AI-built app for exposed API keys, Supabase and Firebase misconfigurations and .env files with real values. It runs on your machine, uploads nothing and uses no AI model. Each finding comes with a plain-English fix.
2. Act on a finding
Follow the fix in your report and run Caelo again. If Git could commit an untracked file containing secrets, preview a US$19 quick fix for that file.
For findings that need an engineer, Irth Labs offers a US$490 App Health Check. You receive a written report within 48 hours and a fixed repair quote. The fee counts toward the repair if you proceed.