scan_site_for_exposed_key
Scan a deployed website's HTML and JS bundles for an exposed Supabase service_role key. Detects critical leaks that bypass Row Level Security.
Instructions
Scan a DEPLOYED website's HTML and JavaScript bundles for an exposed Supabase service_role key (a service_role JWT or an sb_secret_... key). Needs only the public URL — no database, no credentials. A found key is a critical leak: it bypasses ALL Row Level Security, giving anyone who reads it full read/write to the database. Use this right after deploying a Supabase app, or whenever an AI-generated app might have bundled a secret into the frontend. Never prints the full key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_url | Yes | Public https URL of the deployed site to scan (e.g. https://myapp.com). Only public http(s) hosts are allowed. | |
| max_scripts | No | How many JS bundles to read (default 50). If the site has more, the result says how many went unscanned instead of implying it looked at all. |