Answers · App rescue

Is my AI-built app secure? A checklist

In short

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?

CheckHow to test it yourselfWhy it matters
Keys in client codeOpen 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 rulesSupabase: 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 APILog 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 pagesSign in as a normal user and visit /admin or the admin URL.The tool often checks "logged in", not "is an admin".
Input validationCreate 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 verifiedFind 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 limitsSign 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.
DependenciesRun npm audit and read the high and critical lines.Old packages carry published holes that attackers scan for.
Logs with personal dataOpen 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.
BackupsFind 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.

Want a second pair of eyes on your app?

The rescue audit is a written report within 48 hours of read-only access, with a fixed price for every fix.