First aid station
Free security check prompt for AI-built apps
Paste this prompt into Lovable, Bolt, Cursor, Claude Code or whatever you built with. Your AI looks for the eight problems that show up again and again in AI-built apps and explains each one in plain English. No email, no sign-up: copy it and go.
Your tool has a built-in security scan? Run that first, then this.
Your prompt
Copy it and paste it into your AI tool. It asks your AI to look and explain, not to change any code.
I built this app with AI and I am about to let real users sign up. I am not a developer, so explain everything in plain English. Go through the whole codebase and look for these problems: 1. Pages, API routes, server actions or functions that work without logging in. 2. Places where one user can read or change another user's data, including every row level security policy. 3. Secret keys, passwords or tokens in the code, in the git history or in variables starting with VITE_ or NEXT_PUBLIC_. 4. Prices, plans, credits or limits that are decided in the browser instead of on the server. 5. Payment webhooks that do not verify the signature. 6. User input that reaches the database or another service without being checked. 7. Errors that are caught and then ignored. 8. Packages that are outdated, deprecated or do not exist on npm. For every problem you find, tell me: - the file and line, - what could go wrong, in one or two sentences a non-developer understands, - how dangerous it is: critical, high, medium or low, - the exact fix. Then rank everything from most to least dangerous. Be honest about uncertainty: mark every finding you have not been able to confirm in the code as "unsure". Do not change any code yet. (Self-check prompt by Slop Medic: slopmedic.com/rx)
Signed
Got a long list back?
That’s normal. Your AI reads the code it can see. Three things it cannot do for you:
- Know what your app is for. Which rules it needs, not only which are missing: who may see what, who may change what, who may pay what.
- Prove a problem on your live app. I use two test accounts and show whether one can see the other’s data, and whether your checkout can be faked.
- Put a name on it. A verdict signed by a person: ready for real users, or not yet. Evidence that someone checked, not a certificate.
Two ways to get a person on it:
Want it checked properly? Second Opinion, $299
What your tool’s scan and your AI cannot know, checked by me in your code and on your live app: the five problems to fix first, signed. Report within 2 business days of complete access. Nothing medium or higher that your scan missed? Full refund, automatically.
What it checks
- Pages, API routes, server actions or functions that work without logging in
- Places where one user can read or change another user's data, including every row level security policy
- Secret keys, passwords or tokens in the code, in the git history or in variables starting with VITE_ or NEXT_PUBLIC_
- Prices, plans, credits or limits that are decided in the browser instead of on the server
- Payment webhooks that do not verify the signature
- User input that reaches the database or another service without being checked
- Errors that are caught and then ignored
- Packages that are outdated, deprecated or do not exist on npm
What comes back
A clean run
1. Pages without login: none found. Every route checks the session first. 2. One user reading another user’s data: none found. All 6 tables have row level security, and every policy compares owner_id with auth.uid(). 3. Secret keys: none in src; .env.example lists names only. Unsure: 1 (no payment webhook found, so it could not be checked). Ranking: nothing critical, nothing high.
A bad run
CRITICAL supabase/migrations/0003_profiles.sql:12 The profiles policy uses using (true): every signed-in user can read every profile. Fix: using (auth.uid() = id). CRITICAL src/lib/supabase.ts:4 VITE_SUPABASE_SERVICE_ROLE_KEY is built into the browser bundle. Remove it from the frontend and rotate it. HIGH supabase/functions/checkout/index.ts:9 The price comes from the request body. UNSURE 3 more items it could not confirm in the code.
A clean run is a good sign, not proof: your AI reads your code, not the settings of your live database.
Questions about the self-check
What does the free self-check prompt check?
Eight problems that show up again and again in AI-built apps: pages and functions that work without logging in, users who can reach each other’s data, secret keys in the code, prices decided in the browser, unverified payment webhooks, unchecked input, swallowed errors and outdated or made-up packages. Your AI explains each finding in plain English and ranks it.
Does the prompt change my code?
No. It asks your AI to look and explain, and it ends with Do not change any code yet. Read the list first, then fix the critical items one at a time.
Which tools does it work with?
Any AI tool that can read your whole project: Lovable, Bolt, Cursor, Claude Code, Replit, v0 and others. Paste it into the chat of the tool you built with.