Is my AI-built app secure? A checklist
Maybe. The tools write working screens, but security lives in settings they often leave open: database rules, server-side auth, signed payment webhooks. Run the ten checks below. If any check fails, fix it before real customers sign up. Broken access control is the first risk on OWASP's 2025 Top 10.
What are the ten checks?
| Check | How to test it yourself | Why it matters |
|---|---|---|
| Keys in client code | Open the live site, view source and the browser's network tab, search for "secret", "service_role", "sk_live". | A Supabase secret key bypasses every row level security policy, and a leaked key works from any tool. |
| Database access rules | Supabase: Security Advisor. Firebase: look for if true in your rules. | A table without rules is open to anyone with the project URL. |
| Auth on every route and API | Log out, then paste a private page or API URL into the browser. | Hiding a button is not access control. The server has to refuse. |
| Admin pages | Sign in as a normal user and visit /admin or the admin URL. | The tool often checks "logged in", not "is an admin". |
| Input validation | Create a second account. Change an ID in a URL or form to one that belongs to the first account. | If you can see or edit another user's record, everyone can. |
| Payment webhooks verified | Find the webhook code and look for the Stripe-Signature check. | Without it, anyone can post a fake "paid" event and get the product free. |
| Email sending limits | Sign up five test accounts in an hour and count the emails that arrive. | Supabase's built-in email sends 2 per hour until you set up your own SMTP. |
| Dependencies | Run npm audit and read the high and critical lines. | Old packages carry published holes that attackers scan for. |
| Logs with personal data | Open your hosting logs and search for an email address or a token. | OWASP lists passwords, tokens, payment data and sensitive personal data as things not to log directly. |
| Backups | Find the backup page for your database and when the last one ran. Try a restore into a copy. | Supabase does not offer downloadable backups on its Free plan. |
Which failures are most serious?
The first three. A secret key in the browser, an open database table, or an API that answers without checking who is asking can each expose every customer record at once. Firebase's own docs warn that open rules let anyone who guesses your project ID steal, modify, or delete the data. Fix these first.
Payments come next. Stripe says to verify every webhook signature, and also to expect the same event more than once, so a retry does not grant two months or send two receipts.
Why do AI tools miss these?
The tools build what you can see and click. Most of this list is invisible: a rule in the database, a check on the server, a setting in a dashboard. The gap shows up when a second user, or a stranger, arrives.
When should you get help?
If a check fails and you are not sure how to fix it, or if the app holds payments, health details or other people's private data. Our rescue audit is $500 fixed: we read the code and settings with read-only access and send a written report within 48 hours, with a fixed price for each fix. If every check passes and the app is small, you may not need us yet; repeat the list before each big release.
Questions owners ask
Is the Supabase anon key in my browser code a leak?
No. Supabase says the publishable (anon) key is safe to expose, because it only reaches what row level security allows. The secret or service role key is the one that must never ship.
Does the tool's built-in security scan cover this?
It helps, but it is a starting point. A scan finds common patterns; it does not know which user should see which record in your business.
I am not technical. Can I run these checks?
Most of them, yes: they need a browser, a second account and the dashboards you already log into. The webhook and dependency checks are easier with a developer.
Sources
- OWASP Top 10:2025: A01 Broken Access Control is the first category
- Supabase docs, API keys: publishable keys are safe to expose, secret keys bypass row level security
- Supabase docs, production checklist: RLS on all tables, custom SMTP, auth email limit of 2 per hour, backups
- Firebase docs, avoid insecure rules: open rules let anyone who guesses the project ID read, change or delete data
- Stripe docs, manage webhook endpoints: verify the Stripe-Signature header, handle duplicate events
- OWASP Logging Cheat Sheet: data that should not be recorded directly in logs