# App Security Preflight: Supabase RLS, Webhooks, Keys

> The security review your AI coding agent skipped. Lists the file and line of Supabase tables with no row-level security, half-written RLS policies, keys committed to source, service-role keys in client code, unverified webhooks and write routes with no auth. Reads code only.

App Security Preflight: Supabase RLS, Webhooks, Keys is a paid AI agent skill on Agensi by Ala Ud Din Burki, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5.99 (one-time purchase)
- Creator: [Ala Ud Din Burki](https://www.agensi.io/creators/alaudin-burki)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.0.0
- Last updated: 2026-12-04
- Security: scan passed (2026-12-02); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/app-security-preflight-supabase-rls-webhooks-keys
- Tags: security, api, database, web-design, testing

## What it does

- Finds Supabase tables with no row-level security
- Flags RLS policies that miss insert, update or delete
- Catches keys committed to source, shown truncated
- Spots service-role keys inside client components
- Finds webhooks that never verify the signature
- Flags write routes with no identity check

## Who it's for

- **Founders using AI tools like Lovable or v0:** Check if your AI-generated code accidentally left your user data open to the public. Try: "Check my new Lovable app for security leaks before I launch."
- **Freelance web developers building with Next.js and Supabase:** Make sure you didn't leave debug mode on or commit a private API key before handing over the project. Try: "Scan my client project for hardcoded keys or missing database security."
- **Small shop owners with custom webhooks:** Verify that your payment notifications from Stripe or Shopify are actually coming from them. Try: "Check my Shopify webhook code to see if the signature is being verified."

## About this skill

The security review an AI coding agent skipped. Point it at a Next.js / Supabase / Node app and get the file and
line of each mistake agents make most: tables without row-level security, half-written RLS policies, keys in
source, privileged keys shipped to the browser, unverified webhooks, write routes with no auth. An agent skill for
Claude Code, Codex, Cursor and any agent that reads SKILL.md; also a plain CLI.

Ported from a production data tool; 130 test checks (`npm test`).

### What's inside

| File | Purpose |
|---|---|
| `SKILL.md` | when to use it, how to read the findings |
| `scripts/preflight.mjs` | the command (local folder or public GitHub repo) |
| `scripts/lib/` | the 13 rules, file selection, coverage report, GitHub fetch |
| `scripts/make-demo.mjs` | writes a small deliberately broken app (fake keys) to try it on |
| `examples/sample-output.md` | real runs on the demo app and on a public Vercel starter |

### Requirements

Node 18+. No packages, no accounts. Optional `GITHUB_TOKEN` for scanning large public repos.

### Honest limits

Pattern matching over source text: a finding can be handled somewhere this file cannot see (middleware, a
wrapper, a database policy created in the dashboard). Every finding says what to confirm. It does not run the app,
scan dependencies (use ship-check for that) or replace a penetration test.

## Requires

- Node.js 18+

## Known limitations

This skill only scans text patterns in code files. It cannot guarantee an app is 100% safe or find bugs that require running the app to see.

## Technical details

Node 18+ script, no npm dependencies. 13 rules over source text; scans a local folder or a public GitHub repo. Never runs the app or connects to a database. 130 test checks included.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the App Security Preflight: Supabase RLS, Webhooks, Keys skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What specific security problems does this skill find?

This skill searches your code for specific patterns that lead to data leaks, such as missing database security rules, private keys accidentally left in visible files, and webhooks that do not verify who is sending them. It helps catch common mistakes made when building apps quickly with AI tools.

### What do I need to provide for this to work?

You only need to provide the folder where your app is stored or a link to a public GitHub repository. The skill is designed to work with apps built using technologies like Next.js, Supabase, and Node.

### What kind of report will I receive?

Your AI agent will give you a list of findings that includes the exact file and line number where a risk was found. You also get a explanation of why it is a risk and a step-by-step check to help you confirm and fix the issue.

### Does this skill test my live website or database?

This skill only reads your code files to look for risky patterns and does not actually run your app or touch your live database. Because it only looks at the code provided, it might not see security checks that happen in files it cannot access.

### How do I tell my AI agent to start the security check?

You can simply ask your AI agent to check if an app you built is secure or tell it to perform a pre-launch security review on a specific folder or repository link.

### What happens if the skill finds a private API key in my code?

If the skill finds a secret key in your code, it will show you a shortened version of it so you can identify which one it is. It will then advise you to cancel that key and get a new one, as just deleting the line of code does not stop the key from being leaked.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
