13 rules ยท migration-aware ยท free ยท no signup
Paste your migration SQL below and get an instant Row Level Security audit โ missing RLS, always-true policies, leaky views, dangerous grants, and the exact SQL to fix each one.
The same classes of misconfiguration behind most real-world Supabase data leaks.
| Rule | Detects | Severity |
|---|---|---|
| RLS-001 | Table in an exposed schema without RLS enabled | Critical |
| RLS-002 | RLS enabled but zero policies (silent lockout) | Medium |
| RLS-003 | Always-true policy conditions like USING (true) | High / Critical |
| RLS-004 | INSERT policy missing WITH CHECK | High |
| RLS-005 | Owner/tenant column never referenced by any policy | High |
| RLS-006 | Write policies applied to the PUBLIC role | High |
| RLS-007 | Policies with no row condition (defaults to TRUE) | High / Critical |
| STORAGE-001 | Storage write policies without a bucket_id boundary | High |
| GRANT-001 | Write privileges granted to anon/public | High |
| ROLE-001 | Database roles with SUPERUSER or BYPASSRLS | Critical |
| FUNC-001 | SECURITY DEFINER functions with unpinned search_path | High |
| VIEW-001 | Views without security_invoker (RLS bypass) | High |
| SECRET-001 | Service keys / connection strings pasted into SQL | Critical |
The browser scanner and CLI use the same engine. Scan ordered migration files, choose a severity threshold, and emit JSON, Markdown, or SARIF for GitHub Code Scanning.
# Fail on Critical findings (default)
node cli.js supabase/migrations/*.sql
# Use a stricter threshold
node cli.js --fail-on high \
supabase/migrations/*.sql
# Machine-readable output
cat migration.sql | node cli.js --json
node cli.js --format markdown --output rls-report.md supabase/migrations/*.sql
node cli.js --format sarif --output rls-guard.sarif supabase/migrations/*.sql
Finding RLS risks is free. Prove real role access and prevent regressions with the Security Kit.
The free scanner diagnoses supplied SQL. The paid kit connects the result to an explicit access contract, live role tests, CI blocking, and remote schema drift detection.