All news
VIBPS / NEWS • DEVELOPER TOOLS

What does Supalock check in an AI-built Supabase app?

Supalock combines 76 automated checks with 52 agent-guided reviews across Supabase and app code. That makes it a useful review aid, but its pattern-based scan cannot prove a deployed app is secure or replace project-specific policy tests.

A security scanner for an AI-built app faces a practical problem: the risky decision may live in a database policy, an API route, an authentication flow or a deployment setting. Supalock, a new open-source project for Supabase applications, tries to bring those checks into one local review. Its v1.0.0 release describes 128 curated vulnerability patterns, split into 76 automated static checks and 52 agent-guided reviews.

That split matters. The 76 checks are code and configuration analysis performed by the tool. The other 52 are review prompts packaged as skills for a coding agent to inspect a project. The repository presents both as part of one coverage count, but they are different kinds of evidence: a pattern match is reproducible program logic, while an agent review depends on the model, context and instructions used in a given run.

The surfaces it covers

The repository groups its checks around ten areas: row-level security (RLS), Postgres grants and functions, Storage, Auth and sessions, Edge Functions and webhooks, client-side secrets, Realtime and RPC, business logic, Next.js server routes, and configuration or deployment. The scanner combines SQL migration analysis with JavaScript, TypeScript, React, Next.js and Deno source checks, plus configuration files such as environment examples, ignore rules and workflow definitions.

This scope reflects how an application is assembled. A table can have an RLS policy and still be exposed through an overly broad database grant. An Edge Function can validate a request but use a privileged key in a way that bypasses the policy layer. A client bundle can reveal a secret even when database access is configured correctly. Looking across those seams can help a reviewer spot problems that a database-only checklist would miss.

How developers can run it

The project is written in Python, requires Python 3.9 or newer and says it has no external dependencies. Its README documents a command-line scan that can emit terminal, JSON, Markdown or SARIF output. It also packages eight Open Agent Skills and four slash commands intended to guide reviews in tools such as Claude Code, Cursor and Codex; the repository includes installation instructions and a GitHub Actions workflow.

A local scan can fit into a pull-request process: run the deterministic checks on each change, review the findings, and use an agent skill for questions that require tracing behavior across files. JSON or SARIF output can help connect findings to existing automation. Before running any third-party code or agent skill, inspect its permissions and source, pin the version used in CI, and avoid giving an agent secrets or production credentials it does not need.

What a scanner cannot establish

Supalock describes itself as local-first and says it sends no telemetry. Those are claims made by the project, so organizations with strict handling rules should verify the implementation and the behavior of the agent platform they pair it with. The static checks are pattern-based: they can identify known risky constructs, but a clean report is not evidence that every authorization path is correct.

Supabase's own guidance says to enable RLS on tables in exposed schemas and to manage database grants separately; RLS policies do not revoke grants. Its documentation also recommends testing both permitted and denied cases. A scanner can flag suspicious policy shapes, but it cannot know every tenant boundary, business role or intended access rule in a particular product. Teams should exercise those cases with representative users and data, including attempts that must fail.

There is a similar boundary for the agent-guided reviews. They can help a developer ask whether a webhook verifies signatures or whether a server route checks ownership, but generated reasoning can miss a path or infer behavior incorrectly. Treat those results as review notes to confirm against code and tests, not as an automated security certification. A deployment assessment also needs runtime configuration, secrets management, dependency review and operational controls that are outside a source scan.

A useful first pass, with human ownership

For teams building with code-generation tools, Supalock's useful contribution is a named, repeatable checklist across database and application layers. Its MIT-licensed repository gives developers a starting point they can inspect and adapt. The counts and coverage are maintained by the project authors, not an independent audit, so teams should judge it by whether its findings are accurate and actionable on their own codebase.

A sensible evaluation is to run the scanner against a disposable project that contains known safe and unsafe examples, check whether the expected findings appear, and record false positives and misses. Then add explicit tests for the app's own access rules and verify them in CI. Security review remains a process with an owner: tools can shorten the search for mistakes, but only the team can define which users should reach which data.

What the Lovable app security study actually found

VIBPS is the social network for software

More software stories, with sources and context.

More news