Skip to content
yoanbernabeu avatar

Supabase Extract Db String

Detects exposed PostgreSQL connection strings in client code, treating direct database access as a P0 finding.

CCM score
47 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 scanning JavaScript bundles and client code for full connection strings, environment variable leaks, split host and password values, and ORM configuration
  • Includes detection patterns for Supabase direct and pooler URLs, with severity ratings and remediation steps for each finding
  • Enforces progressive writes to .sb-pentest-context.json and .sb-pentest-audit.log so findings persist if a run is interrupted
  • Designed for security audits and pre-production reviews where Supabase database access is suspected

Install

$ npx -y skills add yoanbernabeu/supabase-pentest-skills --skill supabase-extract-db-string -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Database Connection String 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 PostgreSQL database connection strings are accidentally exposed in client-side code.

When to Use This Skill

  • As part of every security audit
  • When reviewing code before production
  • When Supabase database access is suspected

Prerequisites

  • Target application accessible
  • Supabase detection completed (auto-invokes if needed)

Why This Is Critical

Exposed database connection strings allow:

Details

Repository
github.com/yoanbernabeu/supabase-pentest-skills
Categories
Security, Databases
First seen
Jun 3, 2026

Questions

What does the supabase-extract-db-string skill check for?

It scans client-side code for exposed PostgreSQL database connection strings, including full URLs, database environment variables, separately exposed passwords and ORM configuration. The skill treats any direct database access from client code as a P0 critical issue.

How do I install the supabase-extract-db-string skill?

Run npx -y skills add yoanbernabeu/supabase-pentest-skills --skill supabase-extract-db-string -y in your project. Once installed, the agent can check a target application for leaked database credentials.

Which skills lead the Security category on Claude Marketplaces?

This skill is in the Security category, alongside azure-compliance, entra-agent-id, firebase-security-rules-auditor, security-audit and cloudflare-one. It focuses narrowly on finding database connection strings in client code rather than general security review.

Do I need special access to run this skill?

It is meant for authorized self-assessment of your own application, and the target must be accessible to the agent. The skill is designed to run as part of a wider Supabase audit, and it reads the public client-side code only.

More from yoanbernabeu/supabase-pentest-skills

All 23

Similar to Supabase Extract Db String

More Security