yoanbernabeu avatar

Supabase Extract Anon Key

Extracts the Supabase anon key from client-side code, which is actually supposed to be there, unlike the service key. It searches JavaScript bundles for JWT patterns, decodes the payload to verify it's really the anon role, and checks if it matches your project URL. The skill writes findings progressively to context files as it goes rather than batching at the end, which matters if you're running a longer pentest chain. Finding this key is just step one. The real question is whether RLS is configured properly, because the anon key is safe only when row level security actually blocks unauthorized access.

skills.sh installs
501
GitHub stars
75
last updated
Aug 21, 2026

Install

$ npx -y skills add yoanbernabeu/supabase-pentest-skills --skill supabase-extract-anon-key --agent claude-code

Installs into .claude/skills of the current project.

Files

Supabase Anon Key Extraction

🔴 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 extracts the Supabase anonymous (public) API key from client-side code.

When to Use This Skill

  • After extracting the Supabase URL, to get the API key for testing
  • To verify that only the anon key (not service key) is exposed
  • Before running API audit skills that require authentication

Prerequisites

  • Supabase URL extracted (or will auto-invoke supabase-extract-url)
  • Target application accessible

Understanding Anon Keys

The anon key (also called public key) is:

Sponsors

Details

Repository
github.com/yoanbernabeu/supabase-pentest-skills
Categories
Backend & APIs, Testing & QA, Security, Databases
First seen
Jun 3, 2026

More from yoanbernabeu/supabase-pentest-skills

All 23
1yoanbernabeu avatarsupabase-detectyoanbernabeu/supabase-pentest-skillsDetect if a web application uses Supabase by analyzing client-side code, network patterns, and API endpoints.500skills.sh installs
2aj-geddes avatarapi-response-optimizationaj-geddes/useful-ai-promptsOptimize API response times through caching, compression, and efficient payloads. Improve backend performance and reduce network traffic.490skills.sh installs
3parcadei avataragentica-serverparcadei/continuous-claude-v3Agentica server + Claude proxy setup - architecture, startup sequence, debugging476skills.sh installs
4davila7 avatarapi-security-best-practicesdavila7/claude-code-templatesImplement secure API design patterns including authentication, authorization, input validation, rate limiting, and protection against common API vulnerabilities466skills.sh installs
5secondsky avatarapi-response-optimizationsecondsky/claude-skillsOptimizes API performance through payload reduction, caching strategies, and compression techniques. Use when improving API response times, reducing bandwidth u434skills.sh installs
6levnikolaevich avatarln-775-api-docs-generatorlevnikolaevich/claude-code-skillsConfigures Swagger/OpenAPI documentation for backend APIs. Use when adding interactive API docs to a project.432skills.sh installs