Scan with code
Every rule the CLI runs,in plain words
All 73 checks `npx scanlyfix scan` runs on your own machine — leaked keys, missing auth, Supabase RLS, AI endpoints, trackers before consent, build output — each with why it matters and how to fix it.
- In force 73 rules
- 9 clauses
Secrets & keys (12)
- Server secret in a browser-exposed env variable · high
- Secret falls back to a value written in the code · high
- Signing or session secret written in the code · high
- Passwords hashed with a fast hash (MD5/SHA) · high
- Password saved to the database without hashing · high · needs review
- Password, token or key written to the logs · medium
- Live credential in the browser bundle · critical
- LLM API key in the browser bundle · critical
- Supabase service-role key in the browser bundle · critical
- Server-only .env value inlined into the bundle · critical
- .env file committed to git · high
- Secret deleted from the code but still in git history · critical
Access control (15)
- API route reads or changes data without checking who is calling · high · needs review
- Server action changes data without checking who is calling · high · needs review
- Record fetched by an id from the request, with no owner check · medium · needs review
- Login, signup or email-sending endpoint without rate limiting · medium · needs review
- Security token made with Math.random() · high · needs review
- Auth token saved in localStorage · medium · needs review
- Supabase table without Row Level Security · high
- Supabase policy that lets anyone through (`using (true)`) · high
- SECURITY DEFINER function without a fixed search_path · medium
- Supabase service-role key used in client-side code · critical
- Firebase security rules allow anyone to read or write · critical
- Request body saved to the database as-is (mass assignment) · high · needs review
- Session cookie readable by JavaScript · medium
- Auth token kept in localStorage · low · needs review
- API route returns data without a login · high
AI / LLM (4)
- LLM provider API key reachable from the browser · critical
- LLM endpoint anyone can call (denial of wallet) · high · needs review
- Model call without an output token limit · low
- User input written into the system prompt · medium · needs review
Code (16)
- Webhook handler does not verify the sender's signature · high · needs review
- Payment amount taken from the request · high · needs review
- Server fetches a URL chosen by the caller (SSRF) · high · needs review
- Redirect to a destination taken from the request · medium · needs review
- SQL built from a string with interpolated values · high
- File path built from request input · high · needs review
- Database query built from raw request input (NoSQL injection) · high · needs review
- Frontend calls an API route that does not exist · medium
- Database write is never awaited, so it never runs · medium
- Error from a database or network call is silently ignored · medium
- React effect subscribes but never cleans up · medium
- Effect with no dependency list makes a request on every render · medium
- Database query inside a loop (N+1 queries) · medium · needs review
- Query reads a whole table with no limit · medium · needs review
- Source maps ship with the production build · medium
- The running app serves source maps · medium
Infrastructure & CI (5)
Supply chain (3)
- Dependency does not exist on npm · high
- Dependency removed from npm as malicious · critical
- Brand-new, barely used dependency · medium · needs review
Dependencies (2)
- Code imports a package that is not in package.json · medium
- Dependencies that run code when installed · low · needs review
Privacy (6)
- Tracker starts without checking consent · medium · needs review
- Trackers run before consent · high
- Trackers still run after Decline · high
- Trackers run and no consent banner was found · low · needs review
- No privacy policy, or a placeholder one · medium
- SQLite database file committed to git · medium
Repository hygiene (10)
- Import only works on a case-insensitive disk (breaks the deploy) · medium
- Placeholder or unfinished logic left in the app · medium · needs review
- Environment variables used in code but missing from .env.example · low
- Next.js app without custom error and 404 pages · low
- Hardcoded localhost URL in application code · low · needs review
- Debug console.log calls left in browser code · low
- Source file is too large to review safely · low
- App has server logic but no tests · low
- node_modules or build output committed to git · medium
- Code imports a file git ignores (missing on deploy) · medium · needs review
Run them on your app
in one command
npx scanlyfix scan — nothing but findings ever leaves your machine.
ScanlyFix
Security, privacy pages, SEO and AI visibility checked in one scan, with fixes your AI editor can apply.
Home