20,052 Supabase Apps Scanned. Most Were Leaking.
The widespread database configuration errors exposing live user records, and why legal compliance requires checking your backend settings before you launch.

11% of 20,052 Supabase applications had sensitive data visible to anyone who knew where to look.
They were not hacked.
They were not breached through sophisticated exploits.
They were simply left completely open to the public internet.
A security scan of thousands of live production applications revealed a massive structural blind spot.
The dataset showed that:
- 48% of critical security issues came from Row-Level Security being completely disabled on database tables
This is where a dangerous misunderstanding happens.
Many founders assume:
- If users must log in, the data must be protected
That assumption is mathematically false.
Modern AI-generated web apps package a public anonymous key inside the frontend so the browser can communicate with the backend database.
If Row-Level Security is turned off, the database is completely exposed.
An attacker does not need:
- An account
- A login
- A password
Any anonymous visitor anywhere in the world can send a direct request to the API endpoint and:
- Read data
- Modify data
- Delete data
from the entire database.
Another 27% of the failures came from service role keys exposed:
- Inside frontend client code
- Inside public repositories
This is not just an admin-permission problem.
The service role key is specifically designed to bypass Row-Level Security completely.
That means:
Even if a founder spent hours writing perfect security policies, an AI agent accidentally exposing the service role key renders every rule useless instantly.
The database protections still technically exist — they are simply bypassed entirely by the leaked master credential.
These are not subtle vulnerabilities requiring advanced engineering skill to exploit.
They are basic setup omissions.
While these configuration gaps sat live in production:
- Users could still sign up
- Features appeared to work correctly
- Data saved successfully
The application looked completely normal.
That is exactly what made the exposure dangerous.
The most important part of this problem is how it actually happens.
If a human founder creates a table manually inside the Supabase dashboard, Supabase attempts to protect them.
The:
- "Enable Row Level Security"
checkbox is enabled by default.
However, AI coding agents do not click dashboard buttons.
They generate and execute raw PostgreSQL directly.
In raw PostgreSQL, Row-Level Security is disabled by default.
Because the application compiles and visually functions perfectly with security disabled, the AI leaves it disabled.
If a non-technical builder does not explicitly request:
- Strict permission scoping
- Row-level policies
- Backend authorization logic
the AI typically never adds them.
The software works flawlessly inside a private testing window, while remaining completely exposed the moment it goes live publicly.
QwikBuild makes backend security the default operational state of the application, not a post-launch fix.
The platform does not rely on:
- Prompt wording
- Raw SQL generation
- AI assumptions about security
to protect infrastructure.
QwikBuild combines:
- Agentic AI automation
- Dev Assist engineering oversight
to close the security exposure gap before a single user account exists.
Every database table deployed through QwikBuild ships with:
- Strict Row-Level Security enabled from day one
- Permission policies scoped correctly to authenticated users
- Administrative service role keys isolated inside encrypted backend environments
Service role keys never appear:
- Inside frontend bundles
- Inside public repositories
- Inside browser-accessible environments
- Inside public AI prompts
The independent code auditor reviews the full permission matrix before deployment, ensuring the application launches with:
- Secure access controls
- Stable backend isolation
- Production-grade permission handling
Most catastrophic database leaks are not caused by sophisticated attacks.
They happen because nobody secured the backend correctly before launch.
Frequently Asked Questions
What happens if Row-Level Security is turned off in a vibe-coded app?
AI-built applications require a public anonymous key so the frontend can communicate with the backend database.
If Row-Level Security is disabled, the database becomes publicly accessible.
An attacker does not need:
- An account
- A login
- Authentication
They can directly query the API endpoint and:
- Download records
- Modify rows
- Delete user data
from the database.
Why do AI coding tools skip database security if Supabase enables it by default?
The Supabase visual dashboard enables Row-Level Security automatically.
AI coding agents bypass the dashboard entirely and generate raw PostgreSQL commands directly.
In PostgreSQL, RLS is disabled by default.
Because the application appears to function correctly without security enabled, the AI leaves it disabled unless the builder explicitly requests otherwise.
The AI optimizes for visible functionality, not hidden infrastructure protection.
What is the difference between an anonymous key and a service role key?
An anon_key
is designed to be public.
It only allows requests that obey your Row-Level Security policies.
A service_role key
is an unrestricted administrative credential.
Its entire purpose is to bypass every database security rule completely.
A service role key should only exist:
- On secure backend servers
- Inside encrypted infrastructure environments
- Outside the browser entirely
It should never appear:
- In frontend code
- Inside public repositories
- Inside AI chat prompts