AI-App Security Audit Kit (Supabase, Firebase, Lovable, Bolt, Cursor)
Apps built fast with Lovable, Bolt, Cursor or Replit on Supabase or Firebase ship with the same handful of holes: a secret key in the frontend, row-level security left off, a policy of using(true), an unverified payment webhook, an API route that trusts an id from the browser. Any one of them leaks user data or money.
This kit gives you a repeatable security review you can run before launch:
- scan.py: a zero-dependency Python scanner that flags those issues as leads (secret keys in frontend code, RLS off, open Firebase rules, wildcard CORS, SQL string-concat, eval, raw HTML sinks, unverified webhooks, debug on). Needs only Python 3.9+, no install.
- NEW in 1.1: legacy_keys.py: Supabase is deprecating the legacy anon and service_role keys in early 2027. This checker finds every place they still hide (JWTs in code and .env files, legacy env var names, Edge Functions, Authorization: Bearer calls, HS256 checks with the shared JWT secret, and cron jobs, pg_net calls and Database Webhooks from a SQL dump you make) and prints an ordered migration plan. Keys are always masked. 10 tests included.
- CHECKLIST.md: an 8-part manual checklist for the bugs a scanner can't find (IDOR, auth gaps, ownership checks), with PASS/FAIL and evidence.
- report-template.md: a clean, client-ready report, ranked by risk.
Read-only: nothing here edits, runs or deploys your app. Every scan hit is a lead you verify by hand, not a confirmed bug.
Who it's for: founders about to launch an AI-built app, and freelancers who sell pre-launch security reviews and want a process they can repeat.
Honest note: a first-pass scanner finds patterns, not every vulnerability; the checklist covers the rest. Run it only on code you own or are authorized to review. MIT licensed.