Supabase Extract Service Key
Detects a Supabase service_role key leaked into client-side code, a P0 exposure that bypasses all RLS.
- CCM score
- 49 of 100
- skills.sh installs
- 524
- GitHub stars
- 77
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers JWT payload checks for
"role": "service_role", variable-name patterns, and accidental key pairs in client bundles - Scans HTML, JavaScript bundles, inline scripts, and exposed source maps, and writes findings to
.sb-pentest-context.json - Enforces progressive logging to
.sb-pentest-audit.logand.sb-pentest-context.jsonso findings survive interruptions - Designed for security audits and pre-production reviews of applications that use Supabase
Install
$ npx -y skills add yoanbernabeu/supabase-pentest-skills --skill supabase-extract-service-key -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Supabase Service Key Detection
🔴 CRITICAL: PROGRESSIVE FILE UPDATES REQUIRED
You MUST write to context files AS YOU GO, not just at the end.
- Write to
.sb-pentest-context.jsonIMMEDIATELY after each discovery- Log to
.sb-pentest-audit.logBEFORE and AFTER each action- DO NOT wait until the skill completes to update files
- If the skill crashes or is interrupted, all prior findings must already be saved
This is not optional. Failure to write progressively is a critical error.
This skill detects if the service_role key (admin key) is accidentally exposed in client-side code.
When to Use This Skill
- As part of every security audit (this is critical)
- When reviewing code before production deployment
- After detecting Supabase usage to check for this common mistake
Prerequisites
- Target application accessible
- Supabase detection completed (auto-invokes if needed)
Why This Is Critical
The service_role key bypasses ALL Row Level Security (RLS) policies. If exposed:
Details
- Repository
- github.com/yoanbernabeu/supabase-pentest-skills
- Categories
- Security, Backend & APIs
- First seen
- Jun 3, 2026
Questions
What does the supabase-extract-service-key skill check for?
supabase-extract-service-key looks for a Supabase service_role key leaked into client-side code, such as JavaScript bundles, inline scripts and source maps. It treats a leaked service_role key as a P0 critical finding, since that key bypasses all Row Level Security policies.
Who should run the supabase-extract-service-key skill?
supabase-extract-service-key is meant for authorized development teams auditing their own Supabase application before production deployment. Its checks are read-only and run against the public URL of the target app.
How do I install the supabase-extract-service-key skill?
Run npx -y skills add yoanbernabeu/supabase-pentest-skills --skill supabase-extract-service-key -y in a project to install it. Once installed, the agent can scan the target site for a service_role key exposed in client code and report its location and remediation steps.
Where does supabase-extract-service-key stand in the Security category?
supabase-extract-service-key is listed in the Security category on Claude Marketplaces next to azure-compliance, entra-agent-id, firebase-security-rules-auditor, security-audit and cloudflare-one. Its focus is narrow: detecting one specific, critical key exposure in Supabase apps.
More from yoanbernabeu/supabase-pentest-skills
All 23- Supabase Audit Buckets List523
- Supabase Audit Auth Signup522
- Supabase Audit Buckets Read521
- Supabase Report Compare514
- Supabase Extract Url511
- Supabase Extract Jwt510
- Supabase Audit Authenticated467
- Supabase Audit Functions1.4K
- Supabase Audit Rls1.3K
- Supabase Pentest755
- Supabase Audit Auth Config604
- Supabase Audit Rpc581
- Supabase Audit Realtime570
- Supabase Help549
- Supabase Report542
- Supabase Audit Tables Read538
- Supabase Audit Buckets Public535
- Supabase Audit Auth Users531
- Supabase Audit Tables List529
- Supabase Extract Anon Key526
- Supabase Detect525
- Supabase Extract Db String524
Similar to Supabase Extract Service Key
More Securitysupabase-extract-anon-keyyoanbernabeu/supabase-pentest-skills526 installsLocate and decode the Supabase anon key from client-side code, then validate its role and project match.
supabase-extract-jwtyoanbernabeu/supabase-pentest-skills510 installsExtracts and decodes Supabase JWTs from client code, cookies, and storage, flagging hardcoded user tokens.
supabasesupabase/agent-skills374.4K installsComprehensive Supabase skill covering products, client SSR integrations, auth, migrations, security audits, and debugging with logs.
ghost-scan-secretsghostsecurity/skills5K installsScans codebases for leaked credentials via a poltergeist-driven pipeline with per-candidate analysis and severity-rated findings.
pii-detectruvnet/ruflo763 installsDetects PII and secrets in text, code, and configs through a quick check, detailed scan, and full analysis.