Supabase Row Level Security
Check RLS from the URL, then from the policies
Three different checks, and they are not the same thing. A free scan looks for a secret key in the JavaScript. A deep scan asks the REST API whether common tables return rows to the anon key. Reading the actual policy SQL needs a database password you provide on that deep scan.
Free scan. Pre-Launch Audit is $39 once. Continuous Pro is $24/month billed annually ($288/year), or $29/month billed monthly.
What the checker reports
Free scan
Secret Supabase key in the shipped JavaScript
The secrets check flags a service_role JWT and an sb_secret_ key in the HTML or JavaScript the browser downloads. It does not flag sb_publishable_ or the anon JWT. Those are public. A secret in the bundle bypasses row level security for anyone who views source.
Deep scan
Tables the publishable key can read
If the page contains a https://<project>.supabase.co URL and an anon JWT, the deep scan sends a read (limit 1) to a fixed list of common table names on /rest/v1 using that key. HTTP 200 with row data is a critical finding. It does not write.
Deep scan, optional database password
RLS off, or a policy whose expression is true
Policy SQL is read only when you attach a Supabase integration and a database password. That path queries pg_policies and flags tables with row security disabled and policies whose expression is true, including USING (true). Without the password, Sekrd does not claim to have read the policy text. A default project does not expose pg_catalog through PostgREST.
Deep scan
Storage that lists private objects
The deep scan reports a public cloud bucket that lists sensitive object names. A connected Supabase integration can also review storage rules. A public bucket of marketing images is not, by itself, the same finding as a bucket of user uploads.
What 'RLS enabled' does not prove
A policy of USING (true) still has row security turned on, and still returns every row to the publishable key. The write-up is USING (true) is not safe. The SQL to list open tables is in the RLS checklist. New tables after the 30 October 2026 Data API change are not granted to the API until you add GRANTs. A GRANT to anon without a policy recreates the old bug.
What a scan does not do
A free scan reads the public URL: headers, HTML, and JavaScript. Supabase policy SQL, Firebase rules, TLS and DNS email checks, network ports, and the read-only active probes run on a deep scan. Deep scan is included with the $39 Pre-Launch Audit and with Continuous Pro. See pricing.
Active probes are reads and unsigned requests against known paths. Sekrd does not guarantee the app is safe, and a clean result is not a pentest. Findings the scanner could not observe are not listed.
Related reading
- Supabase RLS checklist
Per-command policies that mention auth.uid().
- Legacy API keys
sb_publishable_ and sb_secret_ versus the anon and service_role JWTs.
- UpGuard's 16,326 exposed databases
What that September 2026 study found, and how to check your project.
- Storage RLS bypass via role none
November 6, 2026. Hosted platform patched. Self-hosted needs 1.89.9.
- Supabase audit landing
The $39 audit aimed at Supabase apps.
Frequently asked questions
Can I check RLS without a database password?
Partly. The deep scan can call the REST API with the anon key it finds in the page and see whether common tables return rows. That does not list every table, and it does not show the policy text. Policy text requires the database password on a deep scan.
Will this change my database?
No. The URL probes are reads. The policy query is a SELECT against pg_policies and pg_tables. Sekrd does not apply migrations.
Does a free scan include the RLS probe?
No. The Supabase provider and the active probes, including the REST read, run on deep scans only. The free scan can still report sb_secret_ or a service_role JWT sitting in the bundle, which bypasses RLS entirely.
How much does a deep scan cost?
Deep scan is included with the $39 Pre-Launch Audit and with Continuous Pro at $24/month billed annually or $29/month billed monthly. The free URL scan does not include it.