Skip to content
yoanbernabeu avatar

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
View on GitHub

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.log and .sb-pentest-context.json so 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 -y

Installs 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.json IMMEDIATELY after each discovery
  • Log to .sb-pentest-audit.log BEFORE 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

Similar to Supabase Extract Service Key

More Security