Skip to content
Kitbay
Skill

supabase-audit-rpc

MITUpdated on Jan 31, 202675GitHub starsNeeds an API key

A skill from a set of Supabase security audit skills that lists the Postgres functions a project exposes through its RPC endpoint and tests them.

What the skill teaches

A skill from a set of Supabase security audit skills that lists the Postgres functions a project exposes through its RPC endpoint and tests them. For each function the agent records whether it runs with the caller's or the owner's rights, its parameters and return type, calls it with the anon key to see whether it returns data or performs actions it should not, and sends injection payloads to text parameters. Each function gets a status from safe to critical, and results are saved as they happen to a context file, a log, evidence files and a curl script, with advice such as checking the user inside functions and revoking anonymous execute rights. Some example payloads change data, so the owner should approve them first.

Capabilities

  • List RPC functions a project exposes
  • Flag security definer functions
  • Test text parameters for SQL injection
  • Write evidence files and a curl script