2026-07-10

Is my AI-built app secure? The Supabase and Firebase risks nobody checks

Most AI-built apps are insecure in the same three places: database rules that do not restrict access, secret keys shipped to the browser, and server logic that trusts whatever the client sends. None of these stop the app from working in a demo, which is exactly why AI tools produce them and why founders discover them only after real users arrive.

Why AI tools generate insecure defaults

The AI's job is to make your request work on screen. Security is invisible in a demo: an app with wide open database rules looks identical to a secured one, right up until someone hostile shows up. When a generated rule blocks the feature you asked for, the common "fix" the AI reaches for is loosening the rule, and now the feature works and the data is public. Multiply that by fifty prompts and you get the typical vibe coded security posture.

The ten minute self-check

Supabase apps:

Firebase apps:

Any app that charges money:

What data exposure actually costs

For a Canadian business, a breach of customer personal information triggers PIPEDA reporting obligations, and in Quebec, Law 25 adds its own notification duties and penalties. The practical cost is smaller but sharper: one screenshot of exposed customer data on social media ends a small product's reputation the week it launches.

If you found a problem

Do not paste your rules into a public forum asking for help, because the post itself maps your attack surface. Lock the table or collection down completely first, even if it breaks features, then fix properly. Broken features lose you a day. Leaked data loses you the company.

A professional audit covers all of the above plus the parts you cannot self-check: schema drift, injection paths in edge functions, webhook verification, and the query patterns that fail under load. Fixed price, written report, about a week.

We run a fixed price security audit on AI-built apps: rules, keys, payments, and data exposure, with a written report and the fixes applied.

Learn more

Related answers