scan_site_for_exposed_key
Scan a deployed Supabase site for an exposed service_role key and check for downloadable .env, served .git, or public source maps before attackers can bypass RLS.
Instructions
Scan a DEPLOYED website's HTML, JavaScript bundles and source maps for an exposed Supabase service_role key (a service_role JWT or an sb_secret_... key), and check whether /.env is downloadable (fail), /.git/ is served (fail) or source maps are public (warn). Needs only the public URL: no database, no credentials. A found service key bypasses ALL Row Level Security, giving anyone full read/write to the database. Also reports whether the public anon/publishable key is present, which means RLS is the only lock (follow up with audit_supabase_rls). Use right after deploying a Supabase app. Never prints a key or an .env value. Does not touch the database; for that, use audit_supabase_rls.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site_url": "<site_url>"
},
"name": "scan_site_for_exposed_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. |