Tests your Supabase Row Level Security policies for common bypass vulnerabilities and misconfigurations. It checks whether RLS is enabled on tables, attempts unauthenticated access with the anon key, tries cross-user data access, and probes for filter bypasses and join exploitation. You get a clear report showing which tables have no RLS protection at all (P0), which have overly permissive policies, and which are properly locked down. The output includes immediate SQL fixes for each finding. One thing to note: this skill is explicit about writing findings progressively to context files as it goes, not batching everything at the end, which makes sense if you're auditing a large project and don't want to lose results mid-run.

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

Install

$ npx -y skills add yoanbernabeu/supabase-pentest-skills --skill supabase-audit-rls --agent claude-code

Installs into .claude/skills of the current project.

Files

RLS Policy Audit

🔴 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 finding
  • Log to .sb-pentest-audit.log BEFORE and AFTER each test
  • 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 tests Row Level Security (RLS) policies for common vulnerabilities and misconfigurations.

When to Use This Skill

  • After discovering data exposure in tables
  • To verify RLS policies are correctly implemented
  • To test for common RLS bypass techniques
  • As part of a comprehensive security audit

Prerequisites

  • Tables listed
  • Anon key available
  • Preferably also test with an authenticated user token

Understanding RLS

Row Level Security in Supabase/PostgreSQL:

-- Enable RLS on a table
ALTER TABLE posts ENABLE ROW LEVEL SECURITY;

-- Create a policy
CREATE POLICY "Users see own posts"
  ON posts FOR SELECT
  USING (auth.uid() = author_id);

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
1ruvnet avatarworker-benchmarksruvnet/rufloRun comprehensive worker system benchmarks and performance analysis1.1Kskills.sh installs
2ruvnet avatarworker-integrationruvnet/rufloWorker-Agent integration for intelligent task dispatch and performance tracking1.1Kskills.sh installs
3ruvnet avataragent-worker-specialistruvnet/rufloAgent skill for worker-specialist - invoke with $agent-worker-specialist1.1Kskills.sh installs
4patternsdev avatarreact-server-componentspatternsdev/skillsTeaches React Server Components for zero-bundle server rendering. Use when components only need server-side data access and don't require client-side interactiv1Kskills.sh installs
5patternsdev avatarserver-side-renderingpatternsdev/skillsTeaches server-side rendering (SSR) for React applications. Use when you need faster initial page loads, better SEO, or dynamic per-request HTML generation.997skills.sh installs
6firebase avatarfirebase-hosting-basicsfirebase/skillsfirebase hosting basics960skills.sh installs