supabase-security

Audit Supabase projects for RLS leaks, exposed functions, and public buckets.

21|Updated May 9, 2026
One-click install
npx skills add https://github.com/Perufitlife/supabase-security-skill --skill supabase-security-perufitlife
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: supabase-security
Source: https://github.com/Perufitlife/supabase-security-skill/tree/main
Command: npx skills add https://github.com/Perufitlife/supabase-security-skill --skill supabase-security-perufitlife

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pypdf, pdfplumber, pdf2image, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill audits and hardens the security posture of Supabase projects, identifying and fixing common security issues like RLS leaks, exposed functions, and public buckets.

Core Features & Use Cases

  • Security Auditing: Identifies security issues such as RLS leaks, exposed functions, and public buckets.
  • Remediation SQL: Generates SQL to fix identified issues.
  • Active Probing: Uses the anon key to confirm leaks and provide evidence.
  • CI Integration: Can be integrated into CI workflows to ensure security checks are run automatically.

Quick Start

Run the supabase-security audit for your project with the following command:

SUPABASE_ACCESS_TOKEN=your_token node scripts/audit.js your_project_ref --html report.html

Frequently Asked Questions about supabase-security

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

FAQPage Schema
How do I audit my Supabase project for RLS leaks and security issues?

To audit a Supabase project for RLS leaks, run the provided audit script with your access token and project reference. The Skill scans for exposed functions and public buckets, generating an HTML report and remediation SQL.

How does active probing with the anon key confirm Supabase RLS leaks?

Active probing uses the Supabase anon key to actively query your project and confirm RLS leaks, providing concrete evidence of exposed data. This verifies vulnerabilities instead of just statically guessing potential misconfigurations.

Can I integrate Supabase security checks into my CI workflows?

Yes, you can integrate this Skill into CI workflows to automatically run security checks. This ensures your Supabase project is continuously audited for RLS leaks, exposed functions, and public buckets during development.

What is the best way to generate SQL to fix exposed Supabase functions and public buckets?

The best way to generate remediation SQL for exposed Supabase functions and public buckets is to run an automated security audit. This Skill identifies the vulnerabilities and outputs the exact SQL statements needed to harden your project.

Do I need a Supabase access token to run a security audit on my project?

Yes, you need a Supabase access token to authenticate the audit script. You must provide this token alongside your project reference so the Skill can securely access your Postgres database and evaluate its security posture.

Why does my Supabase database expose data despite having RLS enabled?

Your Supabase database might expose data due to RLS leaks from exposed functions or misconfigured policies. Running an active security audit probes your setup with the anon key to pinpoint exactly where the leaks occur and generates fixing SQL.