supabase-extract-service-key

Detect exposed Supabase service_role keys in client-side code.

62|3|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/yoanbernabeu/supabase-pentest-skills --skill supabase-extract-service-key
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: supabase-extract-service-key
Source: https://github.com/yoanbernabeu/supabase-pentest-skills/tree/main/skills/extraction/supabase-extract-service-key
Command: npx skills add https://github.com/yoanbernabeu/supabase-pentest-skills --skill supabase-extract-service-key

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill identifies when a Supabase service_role key is accidentally exposed in client-side code, helping prevent a critical security breach and data loss.

Core Features & Use Cases

  • Detection across code surfaces: scans HTML sources, JavaScript, and inline scripts for service_key exposure.
  • Contextual findings: reports location, evidence payload, and remediation steps to enable rapid response.
  • Use Case: during a web app audit, run this skill to detect any service_role keys in client code and trigger immediate remediation.

Quick Start

Run the extraction against your web app’s client assets to surface any service_role exposure.

Frequently Asked Questions about supabase-extract-service-key

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect exposed Supabase service_role keys in client-side code?

Scan HTML sources, JavaScript, and inline scripts to detect exposed Supabase service_role keys in client-side code. This generates structured findings with location, evidence, and remediation guidance to prevent unauthorized access.

Why does exposing a Supabase service_key in web app assets cause a security vulnerability?

Exposing a Supabase service_key in web app assets causes a critical security vulnerability because it grants unauthorized administrative access. Detecting these leaks prevents severe data loss and security breaches.

How do I run a service_role key audit in a CI pipeline?

Run a service_role key audit in a CI pipeline by executing extraction against your web app's client assets. This surfaces any service_role exposure in HTML and JavaScript, providing contextual findings for immediate remediation.

Can I scan inline scripts for Supabase service_key leaks during a web app audit?

Yes, you can scan inline scripts for Supabase service_key leaks during a web app audit. The extraction detects service_role key exposure across HTML, JavaScript, and inline scripts, reporting the exact location and evidence payload.

What is the best way to find leaked Supabase credentials in JavaScript files?

The best way to find leaked Supabase credentials in JavaScript files is running an automated extraction against compiled client assets. This surfaces exposed service_role keys and provides progressive context updates with structured remediation steps.