What GuardLayer checks for
45 checks, run on every push and tuned to stay quiet on safe, idiomatic code. Each one ships with the exact fix — not just a flag.
# supabase
16 checksWhere most Next.js + Supabase breaches actually start — the rules that decide who can read and write your data.
- criticalRLS disabled on a table
- criticaltables created without RLS and granted to anon
- criticalviews that publish auth.users (every user's email) through the API
- criticalVault secrets granted to anon or signed-in users
- criticalservice_role key exposed client-side
- criticalpublic storage buckets
- warningpolicies missing auth.uid()
- warningSECURITY DEFINER functions anyone can call, with no check on the caller
- warningsecret values committed in vault.create_secret() calls
- warningusers who can update their own role, plan or credits, or mark their own order paid
- warningusers who can add themselves to any team or organization
- warningsignup triggers that take the role from user metadata
- warningstaff or admin checks that every new sign-up passes
- warningopen inserts that fire a webhook or edge function
- warningedge functions without auth
- warninggetSession() trusted in server code
# next.js
6 checksThe framework-specific footguns — Server Actions, environment exposure, and request handling in routes and middleware.
- criticalsecrets leaked via NEXT_PUBLIC_
- warningServer Actions that write data without an auth check
- warningAPI routes passing request input to dangerous sinks
- warningwebhooks without signature verification
- warningwildcard CORS with credentials
- infoauth middleware or proxy with no route matcher
# general
6 checksClassic application-security mistakes the AI coding tools still ship into production.
- criticalhardcoded API keys & private keys
- criticaldependencies whose latest security fix is for an advisory its publisher rates critical
- warningdependencies missing other known security fixes
- warningstring-built SQL (injection)
- warningeval() on dynamic input
- infounsanitised dangerouslySetInnerHTML