Launch and other stacks

Your AI app builder’s security scan vs an independent check

Run your builder’s security scan. It is quick and useful. An independent check adds what a scan does not set out to do: it rebuilds your database, queries it as an outsider, and re-tests the fix. Lovable’s own docs say its scans cannot guarantee complete security, and suggest an additional professional review for sensitive data.

TL;DR

  • Builder scans and Supabase’s Security Advisor are fast, free or included, and worth running on every change.
  • A scan reads configuration against rules. It does not tell you which rows a stranger actually gets back, and its docs say some findings may be intentional.
  • An independent check rebuilds the database in a copy, queries it as an anonymous visitor, a signed-in stranger and the owner, and re-tests the fix as the same three people.
  • Use both. They answer different questions.

What do builder and database scans do well?

Lovable’s scans. Lovable’s docs say the Quick scan runs when you open the publish dialog and finishes in seconds, reviewing database access rules, npm dependency vulnerabilities and MCP servers exposed without authentication. The Deep scan reviews all application code and is started on demand. Auto-fix can resolve a few eligible Critical Quick scan findings. Optional integrations add Wiz and Aikido. See PatchLabs vs Lovable’s scan.

Supabase’s Security Advisor. Supabase describes advisors as deterministic checks that ship with the platform. The Security Advisor flags tables without RLS, always-true policies, policies that reference user_metadata, views that bypass RLS and unsafe functions. You can run it in the dashboard, with supabase db advisors, or through the MCP server. It reads your live project, so it sees changes made in the dashboard. See PatchLabs vs the Advisor.

Both are sensible first checks. Run them after every round of changes.

What can a scan not tell you?

  • Intent. Supabase’s docs say some findings may be intentional, and that an always-true policy may be correct on a public read-only table. Only you know which tables are meant to be public.
  • Behaviour. A lint reads configuration. It does not run the query as a stranger and show which rows come back. Supabase notes that its sensitive-column check matches name patterns, so it can miss data with other names.
  • The fix. Lovable’s auto-fix covers a few Quick scan findings and does not apply to Deep scan findings. The Security overview page does not describe testing a fix as different users. We checked on 11 Nov 2026.

None of this is a criticism. A scan inside a tool is built to be fast and broad. Depth on one question is a different job.

Why does an independent check matter?

  1. A second party. Someone other than the builder and the database host reads the result. A second pair of eyes catches what the first set of checks did not.
  2. Observed behaviour, not policy text. PatchLabs rebuilds the database from its own supabase/migrations in a throwaway copy with fake rows, then queries it as an anonymous visitor, a signed-in stranger and the owner. It never touches the live database. The answer is “this stranger got rows back”, not “this policy looks permissive”.
  3. The fix is tested. An AI fix can hide an error without closing the leak, or close it by locking out the owner (PL-003). PatchLabs re-tests every fix as all three people. Only when the visitor and stranger are denied and the owner still reads their own rows does it count as proven.
  4. A person approves. The fix is a migration your own engineer can read. Nothing changes until they approve it.
  5. A record. Every result gets an Ed25519-signed receipt that anyone can verify. See signed receipts.
  6. It repeats. Each AI edit can change a policy. Watch re-checks on a schedule.

How do they compare side by side?

Lovable security scanSupabase Security AdvisorPatchLabs
RunsInside LovableInside Supabase (dashboard, CLI, MCP)On a copy built from your repo
ReadsDatabase access rules and settings, dependencies, MCP servers. Deep scan: all app codeYour live project’s databaseYour migrations, code and full git history
Decides byA fixed set of checksDeterministic lintsReal queries as anon, stranger and owner on fake rows
The fixAuto-fix for a few eligible Quick scan findingsDocs suggest SQL; you apply itWrites a migration, re-tests as all three, waits for your engineer
Live databaseDatabase checks run on a connected projectReads your live projectNever touched
ResultFindings marked Critical, Warning or InfoLint resultsFindings plus an Ed25519-signed receipt

Facts about Lovable and Supabase are from their public docs, read on 11 Nov 2026. They can change, so check their docs.

Which should I use, and what are the limits?

Use all of them. Run the builder scan and the Advisor on every change, because they take seconds. Run an independent check before launch and then on a schedule, especially if the app holds personal data.

PatchLabs has limits too. It reads what is in your repo. A rule changed only in the Supabase dashboard is invisible to it, which the Advisor can see. The proof covers the access rules PatchLabs tests, not the whole app, and it is not a penetration test. PatchLabs is independent and not affiliated with Lovable or Supabase.

Questions people ask

Is Lovable’s security scan enough?

It is a good first check and runs in seconds. Lovable’s docs say it cannot guarantee complete security and suggest an additional professional review for apps with sensitive data. An independent check tests who can read your data as an outsider.

Is Supabase’s Security Advisor enough?

It is free, built in and worth running. It checks your live database against documented rules, and Supabase says some findings may be intentional. It does not show which rows a stranger gets back, or test a fix.

Do I need an independent check if I use both?

Not for every app. If yours holds personal data and has real users, a second check that tests behaviour and re-tests the fix is worth having. The 1-in-4 study found 97 of 318 public apps (31%) exposing personal data on its 24 Nov 2026 re-check.

Is an independent check a penetration test?

No. It tests who can read which rows in a database rebuilt from your migrations, and reads your code and git history for keys. It does not attack your live app.

Does PatchLabs connect to my live database?

No. Lab works on a throwaway copy rebuilt from your repo’s migrations, with fake rows. Live posture only loads your public home page, on a domain your team has verified.

Sources

The checks behind this guide, each with example code, a self-check and the fix.

Free check

Check your app for this, free.

Paste your public repo. PatchLabs rebuilds your database from its migrations, tests it as a visitor, a stranger and the owner, reads the code for keys and risky patterns, and hands you the fix.

First app free, fixes includedNever touches your database

Written by Manraj Singh Dhillon. Last checked 11 Nov 2026. Code samples are synthetic and run against your own project; nothing here names a real app. Spotted a mistake? Tell us.