supabase-pentestโ–Œ

yoanbernabeu/supabase-pentest-skills ยท updated Apr 8, 2026

MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.

$npx skills add https://github.com/yoanbernabeu/supabase-pentest-skills --skill supabase-pentest
0 commentsdiscussion
summary

๐Ÿ”ต RECOMMENDED: USE PLAN MODE FOR COMPLEX AUDITS

skill.md

Supabase Security Audit Orchestrator

๐Ÿ”ต RECOMMENDED: USE PLAN MODE FOR COMPLEX AUDITS

When your environment supports Plan Mode, it is strongly recommended to activate it before starting the audit:

  • Use the EnterPlanMode tool at the start of the orchestration
  • Plan Mode enables better organization of multi-phase audits
  • It allows the user to validate the approach before execution
  • If Plan Mode is not available, proceed directly with execution

Plan Mode provides better traceability and user control over the audit process.

๐Ÿ”ด 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 a phase or skill completes to update files
  • If the audit 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 orchestrates a complete security audit of a Supabase-based application, guiding you through each phase with validation checkpoints.

โš ๏ธ MANDATORY: Progressive Context File Management

BEFORE starting any audit, you MUST:

  1. Create .sb-pentest-context.json if it doesn't exist
  2. Create .sb-pentest-audit.log if it doesn't exist
  3. Create .sb-pentest-evidence/ directory structure
  4. Initialize context with target URL and timestamp

DURING execution - WRITE AS YOU GO:

  1. BEFORE each action โ†’ Log to .sb-pentest-audit.log
  2. AFTER each discovery โ†’ IMMEDIATELY update .sb-pentest-context.json
  3. AFTER each test โ†’ Save evidence to .sb-pentest-evidence/
  4. DO NOT batch writes โ†’ Each finding must be saved as it's discovered
  5. Verify after each skill โ†’ Check that ALL files were updated before proceeding

๐Ÿ“‹ SYSTEMATIC DOCUMENTATION REQUIREMENTS

All tracking files MUST be systematically maintained throughout the entire audit.

Required Files (MANDATORY)

File Purpose Update Frequency
.sb-pentest-context.json Centralized state and findings After EVERY discovery
.sb-pentest-audit.log Chronological action log BEFORE and AFTER every action
.sb-pentest-evidence/timeline.md Timestamped findings narrative After EVERY significant finding
.sb-pentest-evidence/curl-commands.sh Reproducible test commands After EVERY curl/HTTP request

Verification Checklist (Before Each Phase Transition)

Before moving to the next phase, the orchestrator MUST verify:

  • .sb-pentest-context.json contains all discoveries from current phase
  • .sb-pentest-audit.log has entries for all actions performed
  • Evidence files exist in .sb-pentest-evidence/XX-phase-name/
  • timeline.md is updated with any P0/P1/P2 findings
  • curl-commands.sh contains all HTTP requests made

If any file is missing or incomplete, DO NOT proceed to the next phase.

Progressive Write Pattern

Each skill MUST follow this pattern:

1. [LOG] Write START entry to audit.log
2. [CONTEXT] Update context.json with "phase_in_progress"
3. [ACTION] Perform the test/scan
4. [EVIDENCE] Save evidence file IMMEDIATELY
5. [CURL] Append curl command to curl-commands.sh
6. [TIMELINE] Update timeline.md if significant finding
7. [CONTEXT] Update context.json with results
8. [LOG] Write COMPLETE entry to audit.log

Failure Recovery

If a skill or phase fails:

  • All files updated up to the failure point are preserved
  • The audit can be resumed from the last successful checkpoint
  • Context file indicates exactly where the audit stopped

โš ๏ธ WHY THIS MATTERS:

  • If the audit is interrupted, crashes, or times out, findings up to that point are preserved
  • Long-running skills must save progress incrementally, not just at the end
  • Users can monitor progress in real-time by watching the log file

FAILURE TO UPDATE CONTEXT FILES PROGRESSIVELY IS NOT ACCEPTABLE.

Each individual skill is responsible for updating these files AS IT WORKS, not just at completion. If a skill does not update the context progressively, the orchestrator must do it immediately after each discovery.

When to Use This Skill

  • Running a complete security assessment on a Supabase application
  • Performing internal security self-assessment before production
  • Auditing an application after security concerns are raised
  • Conducting periodic security reviews

Prerequisites

  • A public URL of the application to audit
  • Authorization to test the target application (you must own it or have explicit permission)
  • Internet access to reach the target URL

Important Security Notice

โš ๏ธ  AUTHORIZATION REQUIRED

Before proceeding, you must confirm:

1. I own this application, OR
2. I have explicit written authorization to perform security testing

Unauthorized security testing may violate laws and terms of service.
Type "I confirm I am authorized to test this application" to proceed.

Audit Phases

The orchestrator runs these phases sequentially with confirmation between each.

๐Ÿ“ REMINDER: After EVERY phase, verify that:

  • .sb-pentest-context.json is updated with phase results
  • .sb-pentest-audit.log has START and COMPLETE entries
  • Evidence files are saved to .sb-pentest-evidence/XX-phase/
  • timeline.md reflects any significant findings
  • curl-commands.sh contains all HTTP requests made

Phase 0: Initialization

Sets up the audit environment and evidence collection.

Pre-Phase Action (if supported):

  • Use EnterPlanMode if the environment supports it
  • This allows the user to validate the audit approach before execution
  • If Plan Mode is not available, proceed directly

Actions:

  • Create .sb-pentest-context.json
  • Create .sb-pentest-audit.log
  • Create .sb-pentest-evidence/ directory structure
  • Initialize curl-commands.sh with header
  • Initialize timeline.md with audit start
  • Log initialization to .sb-pentest-audit.log

Skills invoked:

  • supabase-evidence (initialization)

Verification before proceeding:

  • All 4 tracking files exist
  • Evidence directory structure is complete
  • User authorization confirmed

Output: Ready to collect evidence with full directory structure

Phase 1: Detection

Determines if the target uses Supabase and extracts basic information.

Skills invoked:

  • supabase-detect

Output: Confirmation of Supabase usage, project URL identified

Evidence saved to: .sb-pentest-evidence/01-detection/

Phase 2: Key Extraction

Scans client-side code for exposed credentials.

Skills invoked:

  • supabase-extract-url
  • supabase-extract-anon-key
  • supabase-extract-service-key
  • supabase-extract-jwt
  • supabase-extract-db-string

Output: List of all discovered credentials with severity assessment

Evidence saved to: .sb-pentest-evidence/02-extraction/

Phase 3: API Audit

Tests PostgREST API exposure and RLS policies.

Skills invoked:

  • supabase-audit-tables-list
  • supabase-audit-tables-read
  • supabase-audit-rls
  • supabase-audit-rpc

Output: Tables accessible, data exposure assessment, RLS gaps

Evidence saved to: .sb-pentest-evidence/03-api-audit/

Phase 4: Storage Audit

Checks storage bucket configurations and access.

Skills invoked:

  • supabase-audit-buckets-list
  • supabase-audit-buckets-read
  • supabase-audit-buckets-public

Output: Bucket inventory, public exposure, accessible files

Evidence saved to: .sb-pentest-evidence/04-storage-audit/

Phase 5: Auth Audit

Analyzes authentication configuration and potential weaknesses.

Skills invoked:

  • supabase-audit-auth-config
  • supabase-audit-auth-signup
  • supabase-audit-auth-users
  • supabase-audit-authenticated โ† NEW: Creates test user (with consent) to detect IDOR

Output: Auth provider analysis, signup restrictions, enumeration risks, authenticated vs anonymous comparison

Evidence saved to: .sb-pentest-evidence/05-auth-audit/

โš ๏ธ Note: supabase-audit-authenticated will ask for explicit consent before creating a test user. This is optional but highly recommended to detect IDOR and cross-user access vulnerabilities.

Phase 6: Realtime & Functions Audit

Tests WebSocket channels and Edge Functions.

Skills invoked:

  • supabase-audit-realtime
  • supabase-audit-functions

Output: Exposed channels, function endpoints, access control issues

Evidence saved to: .sb-pentest-evidence/06-realtime-audit/ and .sb-pentest-evidence/07-functions-audit/

Phase 7: Report Generation

Compiles all findings into a comprehensive report.

Skills invoked:

  • supabase-report

Output: Full Markdown report with executive summary, findings, and remediation

Workflow with Plan Mode

When Plan Mode is supported, the recommended workflow is:

1. User requests audit โ†’ Agent uses EnterPlanMode
2. Agent explores target superficially (detect Supabase, extract URL)
3. Agent writes plan to plan file with:
   - Target URL
   - Detected Supabase configuration
   - Proposed phases to execute
   - Estimated scope
4. Agent uses ExitPlanMode โ†’ User reviews and approves
5. Agent executes phases with systematic file updates
6. After each phase โ†’ Agent confirms files are updated
7. Final report generation

Benefits of Plan Mode:

  • User can adjust scope before execution starts
  • Better visibility into what will be tested
  • Clearer audit trail from planning to execution

Usage

Basic Full Audit (with Plan Mode)

Run a Supabase security audit on https://myapp.example.com

The agent SHOULD:

  1. Use EnterPlanMode if available
  2. Present the audit plan for approval
  3. Execute with systematic file updates

Basic Full Audit (without Plan Mode)

Run a Supabase security audit on https://myapp.example.com --no-plan

Resume from Phase

Continue Supabase audit from Phase 3 (API Audit)

Skip Specific Phases

Run Supabase audit on https://myapp.example.com, skip auth audit

Context Files and Evidence (MANDATORY)

โš ๏ธ CRITICAL: Updating tracking files and collecting evidence is MANDATORY.

The orchestrator creates and manages:

File/Directory Purpose
.sb-pentest-context.json Stores extracted data between phases
.sb-pentest-audit.log Logs all actions with timestamps
.sb-pentest-evidence/ Evidence directory for professional audits

Evidence Collection

The orchestrator initializes the evidence directory at the start of every audit:

.sb-pentest-evidence/
โ”œโ”€โ”€ README.md                    # Evidence index
โ”œโ”€โ”€ curl-commands.sh             # All reproducible curl commands
โ”œโ”€โ”€ timeline.md                  # Chronological findings
โ”œโ”€โ”€ 01-detection/                # Detection evidence
โ”œโ”€โ”€ 02-extraction/               # Key extraction evidence
โ”œโ”€โ”€ 03-api-audit/                # API audit evidence
โ”‚   โ”œโ”€โ”€ tables/
โ”‚   โ”œโ”€โ”€ data-samples/
โ”‚   โ”œโ”€โ”€ rls-tests/
โ”‚   โ””โ”€โ”€ rpc-tests/
โ”œโ”€โ”€ 04-storage-audit/            # Storage audit evidence
โ”‚   โ”œโ”€โ”€ buckets/
โ”‚   โ””โ”€โ”€ public-url-tests/
โ”œโ”€โ”€ 05-auth-audit/               # Auth audit evidence
โ”‚   โ”œโ”€โ”€ signup-tests/
โ”‚   โ””โ”€โ”€ enumeration-tests/
โ”œโ”€โ”€ 06-realtime-audit/           # Realtime audit evidence
โ”œโ”€โ”€ 07-functions-audit/          # Functions audit evidence
โ””โ”€โ”€ screenshots/                 # Optional screenshots

Each skill MUST save evidence to its respective directory as it works.

Mandatory Update Rules

  1. After each skill execution, .sb-pentest-context.json MUST be updated with results
  2. Every action MUST be logged in .sb-pentest-audit.log with timestamp
  3. If files don't exist, they MUST be created at audit start
  4. Never complete a skill without updating context files

Mandatory Log Format

Each entry in .sb-pentest-audit.log must follow this format:

[YYYY-MM-DD HH:MM:SS] [SKILL_NAME] [STATUS] Message

Example:

[2025-01-31 14:00:00] [supabase-detect] [START] Starting Supabase detection
[2025-01-31 14:00:05] [supabase-detect] [SUCCESS] Supabase detected
[2025-01-31 14:00:05] [supabase-detect] [CONTEXT_UPDATED] .sb-pentest-context.json updated

Context File Structure

{
  "target_url": "https://myapp.example.com",
  "started_at": "2025-01-31T10:00:00Z",
  "authorization_confirmed": true,
  "supabase": {
    "detected": true,
    "project_url": "https://abc123.supabase.co",
    "anon_key": "eyJ...",
    "service_key_exposed": false
  },
  "phases_completed": ["detection", "extraction"],
  "findings": []
}

Rate Limiting

The orchestrator implements adaptive rate limiting:

  1. Starts with normal request speed
  2. If HTTP 429 (Too Many Requests) is detected, backs off exponentially
  3. Respects Supabase's rate limit headers

Output Format

After each phase:

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
 PHASE 2 COMPLETE: Key Extraction
โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

 Findings:
 โ”œโ”€โ”€ โœ… Anon key found (expected)
 โ”œโ”€โ”€ โŒ P0: Service role key EXPOSED in main.js:1247
 โ””โ”€โ”€ โš ๏ธ  P1: JWT secret pattern detected

 Proceed to Phase 3 (API Audit)? [Y/n]
โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

Best Practices

  • Run audits in non-production hours to minimize impact
  • Save the context file for audit trail purposes
  • Review findings with your security team before remediation
  • Re-run the audit after implementing fixes to verify

Common Issues

โŒ Problem: Audit stops at Phase 1 with "Supabase not detected" โœ… Solution: The app may use a custom domain. Manually provide the Supabase URL:

Run audit with Supabase URL https://myproject.supabase.co

โŒ Problem: Rate limited during audit โœ… Solution: The orchestrator auto-adjusts. If persistent, wait 5 minutes and resume.

โŒ Problem: Context file corrupted โœ… Solution: Delete .sb-pentest-context.json and restart the audit.

Related Skills

  • supabase-help โ€” Quick reference for all skills
  • supabase-evidence โ€” Evidence collection management
  • supabase-report โ€” Generate report from existing context
  • supabase-report-compare โ€” Compare with previous audits
how to use supabase-pentest

How to use supabase-pentest on Cursor

AI-first code editor with Composer

1

Prerequisites

Before installing skills in Cursor, ensure your development environment meets these requirements:

  • โ€บCursor installed and configured on your development machine
  • โ€บNode.js version 16.0+ with npm package manager (verify with node --version)
  • โ€บActive project directory or workspace where you want to add supabase-pentest
2

Execute installation command

Execute the skills CLI command in your project's root directory to begin installation:

$npx skills add https://github.com/yoanbernabeu/supabase-pentest-skills --skill supabase-pentest

The skills CLI fetches supabase-pentest from GitHub repository yoanbernabeu/supabase-pentest-skills and configures it for Cursor.

3

Select Cursor when prompted

The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:

โ—† Which agents do you want to install to?
โ”‚
โ”‚ โ”€โ”€ Universal (.agents/skills) โ”€โ”€ always included โ”€โ”€โ”€โ”€
โ”‚ โ€ข Amp
โ”‚ โ€ข Antigravity
โ”‚ โ€ข Cline
โ”‚ โ€ข Codex
โ”‚ โ—Cursor(selected)
โ”‚ โ€ข Cursor
โ”‚ โ€ข Windsurf
4

Verify installation

Confirm successful installation by checking the skill directory location:

.cursor/skills/supabase-pentest

Reload or restart Cursor to activate supabase-pentest. Access the skill through slash commands (e.g., /supabase-pentest) or your agent's skill management interface.

โš 

Security & Verification Notice

We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.

Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.

List & Monetize Your Skill

Submit your Claude Code skill and start earning

GET_STARTED โ†’

Use Casesโ–Œ

Task Automation & Efficiency

Automate repetitive workflows and reduce manual effort

Example

Generate reports, summarize documents, draft communications

โœ“

Save 3-5 hours per week on routine tasks

Knowledge Enhancement

Learn new skills, understand complex topics, get expert guidance

Example

Explain concepts, provide examples, suggest learning resources

โœ“

Accelerate learning and skill development by 2x

Quality Improvement

Enhance output quality through reviews, suggestions, and refinements

Example

Review drafts, suggest improvements, catch errors

โœ“

Improve work quality by 30-40% with less effort

Implementation Guideโ–Œ

Prerequisites

  • โ€บClaude Desktop or compatible AI client with skill support
  • โ€บClear understanding of task or problem to solve
  • โ€บWillingness to iterate and refine outputs

Time Estimate

15-45 minutes depending on use case complexity

Installation Steps

  1. 1.Install skill using provided installation command
  2. 2.Test with simple use case relevant to your work
  3. 3.Evaluate output quality and relevance
  4. 4.Iterate on prompts to improve results
  5. 5.Integrate into regular workflow if valuable

Common Pitfalls

  • โš Expecting perfect results without iteration
  • โš Not providing enough context in prompts
  • โš Using skill for tasks outside its intended scope
  • โš Accepting outputs without review and validation

Best Practicesโ–Œ

โœ“ Do

  • +Start with clear, specific prompts
  • +Provide relevant context and constraints
  • +Review and refine all outputs before using
  • +Iterate to improve output quality
  • +Document successful prompt patterns

โœ— Don't

  • โˆ’Don't use without understanding skill limitations
  • โˆ’Don't skip validation of outputs
  • โˆ’Don't share sensitive information in prompts
  • โˆ’Don't expect skill to replace human judgment

๐Ÿ’ก Pro Tips

  • โ˜…Be specific about desired format and style
  • โ˜…Ask for multiple options to choose from
  • โ˜…Request explanations to understand reasoning
  • โ˜…Combine AI efficiency with human expertise

When to Use Thisโ–Œ

โœ“ Use When

Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.

โœ— Avoid When

Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.

Learning Pathโ–Œ

  1. 1Familiarize yourself with skill capabilities and limitations
  2. 2Start with low-risk, non-critical tasks
  3. 3Progress to more complex and valuable use cases
  4. 4Build expertise through regular use and experimentation

Discussion

Product Huntโ€“style comments (not star reviews)
  • No comments yet โ€” start the thread.
general reviews

Ratings

4.5โ˜…โ˜…โ˜…โ˜…โ˜…33 reviews
  • โ˜…โ˜…โ˜…โ˜…โ˜…Min Abebeยท Dec 24, 2024

    Keeps context tight: supabase-pentest is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • โ˜…โ˜…โ˜…โ˜…โ˜…Oshnikdeepยท Dec 8, 2024

    supabase-pentest has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • โ˜…โ˜…โ˜…โ˜…โ˜…Shikha Mishraยท Nov 27, 2024

    supabase-pentest reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • โ˜…โ˜…โ˜…โ˜…โ˜…Isabella Garciaยท Nov 15, 2024

    Registry listing for supabase-pentest matched our evaluation โ€” installs cleanly and behaves as described in the markdown.

  • โ˜…โ˜…โ˜…โ˜…โ˜…Sakshi Patilยท Oct 18, 2024

    We added supabase-pentest from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • โ˜…โ˜…โ˜…โ˜…โ˜…Kofi Jainยท Oct 6, 2024

    Useful defaults in supabase-pentest โ€” fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • โ˜…โ˜…โ˜…โ˜…โ˜…Pratham Wareยท Sep 25, 2024

    Useful defaults in supabase-pentest โ€” fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • โ˜…โ˜…โ˜…โ˜…โ˜…Jin Agarwalยท Sep 25, 2024

    Solid pick for teams standardizing on skills: supabase-pentest is focused, and the summary matches what you get after install.

  • โ˜…โ˜…โ˜…โ˜…โ˜…Zara Huangยท Sep 17, 2024

    supabase-pentest is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • โ˜…โ˜…โ˜…โ˜…โ˜…Meera Sanchezยท Sep 1, 2024

    supabase-pentest reduced setup friction for our internal harness; good balance of opinion and flexibility.

showing 1-10 of 33

1 / 4