Introducing authenticated role testing

Test your RLS
before hackers do

Automatically generate and run attack vectors against your database's Row Level Security policies to find vulnerabilities before they're exploited.

Works with Supabase No code changes required Actionable results

How It Works

Clamp makes it easy to test your database's Row Level Security policies and fix vulnerabilities.

1

Input Your Policies

Provide your database schema, RLS policies, and additional context about your application's security requirements.

~2 minsetup time
2

Generate Attack Vectors

We automatically create test queries that simulate how malicious users might try to bypass your security rules that you can test directly against your database.

~30 secgeneration time
3

Get Actionable Results

Review failed tests and generate new RLS policies to secure your database.

Immediateresults
RLS Policy Improvement
-- Before: Vulnerable RLS policy
CREATE POLICY "Users can only see their own data" 
ON "public"."profiles" 
FOR SELECT 
TO authenticated 
USING (auth.uid() = user_id);

-- After: Fixed RLS policy with proper type casting
CREATE POLICY "Users can only see their own data" 
ON "public"."profiles" 
FOR SELECT 
TO authenticated 
USING (auth.uid()::text = user_id::text);

Key Features

Everything you need to secure your database's Row Level Security policies.

Fix vulnerabilities

Our platform not only identifies security issues but also suggests improved RLS policies to fix the vulnerabilities, complete with explanations of why they work.

Vulnerability Report
3 issues found
!
Critical: Data Leakage in User Profiles
Current Policy
CREATE POLICY "Users can view profiles" ON profiles FOR SELECT USING (true);
This policy allows anyone to view all user profiles, including private information.
Recommended Fix
CREATE POLICY "Users can view profiles" ON profiles FOR SELECT USING (auth.uid() = user_id OR is_public = true);
This policy ensures users can only view their own profiles or profiles marked as public.

Pricing

Start securing your database for free. Upgrade to Pro for advanced security features and authenticated role testing.

Free

Perfect for getting started

$0/month
  • Generate anonymous role tests
  • Run anonymous role tests
  • Authenticated role tests
  • Advanced security features
Get Started
Popular

Pro

For those who need more security

$15/month
  • Generate anonymous role tests
  • Run anonymous role tests
  • Generate authenticated role tests
  • Run authenticated role tests
  • Advanced security features
Get Started

All plans include unlimited RLS policy testing and generated fixes.