Works with the AI Agents you already use
leakwarden pro
by Leon Krasnik
Deploying AI-generated code from platforms like Lovable, Bolt, or Cursor often leads to security oversights, such as exposed service keys or overly permissive database policies.
$29
leakwarden pro
Example session with this skill installed
Run a security scan on my project and check for any leaked keys or Supabase RLS issues.
- Read your context and instructions
- Compiled the leakwarden pro
I have completed the security scan of the current directory using LeakWarden Pro. The scanner identified 3 high-severity findings and 1 medium-severity finding.
Security Scan Results
| Severity | Category | File | Line | Finding | Verdict |
|---|---|---|---|---|---|
| High | secret.supabase_service_role | src/lib/supabase.ts | 12 | Service role key used in client | Real Risk. Key has bypass-RLS permissions. |
| High | supabase.rls_missing | supabase/migrations/01_init.sql | 45 | Table profiles has no RLS | Real Risk. Anyone can read/write any profile. |
| High | env.in_history | N/A | git | Stripe Secret Key found in history | Real Risk. Key was committed in commit a1b2c3. |
| Medium | webhook.unverified | api/stripe-hook.ts | 8 | Missing signature check | Real Risk. Fake events can be sent to this URL. |
Proposed Fix for src/lib/supabase.ts
The service role key must never be sent to the browser. Replace it with the anon key.
// src/lib/supabase.ts
- const supabase = createClient(URL, process.env.SUPABASE_SERVICE_ROLE_KEY)
+ const supabase = createClient(URL, process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY)
Proposed Fix for supabase/migrations/01_init.sql
Enable RLS to prevent unauthorized access.
-- supabase/migrations/01_init.sql
+ ALTER TABLE profiles ENABLE ROW LEVEL SECURITY;
+ CREATE POLICY "Users can see own profile" ON profiles FOR SELECT USING (auth.uid() = id);
Next steps
- Rotate Secrets: Immediately deactivate the Stripe key and Supabase service role key in their respective dashboards.
- Apply Fixes: Tell me to "Apply all fixes" to update the files, then I will re-run the scan.
- Manual Check: Verify that your production Supabase instance has RLS enabled for all tables in the dashboard.
Connects securely to your tools. The creator never sees your data.
About this skill
Deploying AI-generated code from platforms like Lovable, Bolt, or Cursor often leads to security oversights, such as exposed service keys or overly permissive database policies. LeakWarden Pro runs targeted static scans to catch common "vibe coding" vulnerabilities before they reach production.
What it does
- Secret Detection scans files and git history for leaked API keys, tokens, and credentials.
- Supabase RLS Audit identifies tables missing Row Level Security or using overly permissive policies.
- Storage and Function Checks flags Supabase Storage policies with no owner check, storage buckets made public in SQL, security definer functions the API can call without checking the caller, and views that expose auth.users.
- Webhook Verification flags payment or 3rd-party webhooks that process events without signature validation.
- Client-Side Exposure detects high-privilege keys (like
service_role) incorrectly used in frontend code. - Remediation Planning provides specific diffs and rotation advice for every confirmed vulnerability.
How it works
- Target Selection: Specify the repository root or use the current project directory for a full scan.
- Heuristic Scan: Runs a localized Python scanner to generate a JSON report of potential vulnerabilities.
- Coverage Analysis: Reviews the scan scope to identify what was missed, such as RLS logic defined outside the repo.
- Vulnerability Review: Evaluates each finding by reading the source code to separate real risks from false positives.
- Interactive Fixes: Presents a prioritized list of findings with proposed fixes for user approval and application.
Frameworks & tools
Works with projects using Supabase, Stripe, and Vite. Designed specifically for code generated by AI IDEs like Cursor, Lovable, Bolt, or Claude Code.
Why this beats prompting it yourself
Standard LLMs often overlook secrets hidden in git history or miss the nuance of a "public" vs "service" key in specific frameworks. This skill uses a specialized heuristic engine to ensure no pattern is skipped and enforces a strict "no-leak" reporting policy.
Use cases
- Auditing a newly generated Lovable or Bolt project before the first production deploy.
- Checking git history for credentials accidentally committed during rapid prototyping.
- Verifying that Supabase migrations correctly enforce tenant isolation via RLS.
- Identifying Stripe webhooks that lack signature headers in edge functions.
Known limitations
Does not assess authorization business logic, infrastructure settings, or third-party dependencies. RLS defined in the Supabase dashboard rather than SQL files cannot be scanned.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 3 days ago
Permissions
What's inside
Frequently Asked Questions
New in Security
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.