Skip to content
Submit a tool
SPONSOR SLOT · OPENPut your tool in front of builders choosing one right now. One slot, every page, $50 a week.Your tool here, $50 a weekClaim it

Start here 6 min readUpdated 11 Nov 2026

The production checklist for a vibe-coded app

A vibe coding security checklist: secrets, auth, database rules, inputs, dependencies, logging, tests, backups and rollback, plus prompts for your agent.

This vibe coding security checklist is for the moment just before real users arrive. Your app works in the demo. The question now is whether it's safe and recoverable when something goes wrong. Below are nine steps. Each has tool-specific checks and a prompt you can paste into Claude Code, Codex or Cursor. The agent does the digging, and you check what it reports. In our view, it's best to work through them in order and commit after each step.

A general rule before you start: ask the agent for a report first and fixes second. Then review every diff yourself.

1. Secrets and environment variables

  • Keep keys out of the repo and out of client code. OWASP recommends storing secrets centrally, rotating them, and never hardcoding them (OWASP Secrets Management).
  • Next.js: any variable prefixed NEXT_PUBLIC_ is inlined into the browser bundle (Next.js env vars). A secret with that prefix is public. Vite's VITE_ prefix works the same way (Vite env).
  • Turn on secret scanning for your repo (GitHub secret scanning). Assume any key that was ever committed is leaked, and rotate it.
  • Check Claude Code's saved approvals for secrets (Nov 2026). When you pick "Yes, and don't ask again" on a Bash permission prompt, Claude Code saves an allow rule in .claude/settings.local.json. If that rule is the exact command, any password or token typed into the command is saved in plain text. Security firm Apiiro reported this in a write-up in early November 2026. Apiiro sells security products, and these are its own findings. It searched public GitHub and found 104,185 copies of that file in 103,617 repos. Of those, 1,122 copies (about 1.1%) held at least one secret, 1,379 distinct secrets in total, including 379 database passwords. Apiiro did not test whether the secrets still work (The Hacker News).

Anthropic's settings docs say Claude Code adds **/.claude/settings.local.json to your global git excludes the first time it writes the file. If you create the file by hand, add it to .gitignore yourself. The Hacker News reports that this protection is per machine, does nothing for a file that is already tracked, and is not added to the project's own .gitignore.

Search your repos for .claude/settings.local.json and .claude/settings.json, including git history (git log --all --oneline -- .claude/settings.local.json). Rotate every secret the file ever held before you clean up, because history and forks keep old copies. Then run git rm --cached .claude/settings.local.json and add the file to the repo's own .gitignore. Open the local file and delete rules that contain secrets (/permissions in Claude Code lists the rules). Keep secrets out of commands by using env vars such as $DB_URL, and approve patterns such as Bash(npm run:*) rather than one-off commands that contain secrets.

Prompt: "List every secret, API key or token in this repo and its git history. For each one, say whether it can reach client code (check NEXT_PUBLIC_/VITE_ prefixes and imports). Don't change anything yet."

2. Auth and access rules

  • Check permissions on the server for every request. Hiding a button is not access control. OWASP recommends denying by default and checking permission on every request (OWASP Authorization).
  • Run the cross-user test: log in as user A and request user B's record by changing its ID. It should fail.
  • Supabase: the docs say to "enable RLS on every table in an exposed schema" and write a policy for each operation (Supabase RLS). Never ship the service role key to the client (same source).
  • Supabase Row Level Security, with no scripts. Open your deployed app logged out, or in a private window, and see whether any user data loads. Use the browser's network tab to look at Supabase responses. If rows from tables that should be private come back, turn on RLS for those tables and add policies (Supabase RLS). See our Supabase page. A November 2026 Lovable study found many apps returning records with no login. Update, Nov 11, 2026: Security firm Claroc reported that of the 37,571 Grok Build apps it found still online, 35,578 (94.7%) opened for anyone with no sign-in, and that in the paid account Claroc used, Publish had "Anyone with the link" already selected (SpaceXSI says apps stay private until their creator shares them). Before you share anything you've published from an app builder, check its access setting, and don't treat a hard-to-guess link as access control.

Prompt: "For every API route and server action, show how it checks who the user is and whether they own the resource. Flag any route that trusts an ID from the client without checking ownership. List any Supabase tables without RLS."

3. Input validation

  • Validate every input on the server against an allowlist of expected types, lengths and formats (OWASP Input Validation). Client-side checks are for user experience, not security (same source).
  • Injection is still in the OWASP Top 10. Use parameterized queries or your ORM, and never build SQL from strings.
  • Stripe: verify webhook signatures before you trust a payment event (Stripe webhooks).

Prompt: "Find every place user input enters the server (forms, query params, uploads, webhooks). For each one, show the validation or note that there's none. Propose a schema (for example zod) for the unvalidated ones."

4. Dependency audit

  • Run npm audit to report known vulnerabilities in your dependency tree (npm audit docs).
  • Delete packages the agent added but no longer uses. In our view, fewer dependencies means less to patch.
  • Check that every package actually exists and is the one you meant to install. Agents sometimes suggest names that look right but aren't.
  • Before you install or update an editor extension, check the publisher and the version. Skip updates you didn't expect.
  • On Oct 29, 2026, a modified Claude Code extension in Cursor's extension marketplace (Anthropic.claude-code 2.1.313, not developed by Anthropic) was available from about 2:27 AM to 1:35 PM PT. Cursor's security notice has the check and cleanup steps.
  • Audit what's loaded in your coding agent. Plugins, hooks and MCP servers run with your agent's access, so check what's installed. In Claude Code, run /plugin to manage plugins (Claude Code plugins), /hooks to see your configured hooks and where each comes from (Claude Code hooks), and /mcp to check server status (Claude Code MCP). In Codex CLI, use /plugins (Codex plugins), /hooks (Codex hooks) and /mcp (Codex MCP). In Cursor, open Customize in the sidebar to manage plugins and MCP servers (Cursor plugins), and look at its Hooks tab (Cursor hooks).

Watch for anything you didn't add yourself, hooks that run at session start, and MCP servers you don't recognize. Disable or remove them, then check again after app updates. On Oct 25, 2026, a user reported that Postman's desktop app for macOS added a plugin and a session-start hook to Claude Code and Codex without asking. The report doesn't show any data being taken.

Prompt: "Run npm audit and list high and critical findings with the fix for each. Then list dependencies in package.json that are never imported."

5. Error handling and logging

  • Show users a generic error and keep stack traces in your logs. Leaking error details helps attackers (OWASP Error Handling).
  • Log security events such as logins, failed logins and access denials. Don't log passwords, tokens or session IDs (OWASP Logging).

Prompt: "Find places where raw errors or stack traces reach the client, and places where we log secrets or personal data. Propose a single error handler."

6. Tests on critical paths

  • You don't need full coverage. Write tests for the paths that would hurt if they broke: sign-up, login, payment, and anything that deletes data. Add the cross-user test from step 2.
  • Claude Code's docs give "write tests for the auth module, run them, and fix any failures" as an example task (Claude Code overview).

Prompt: "Write tests for signup, login, checkout and delete-account, including one that proves user A can't read user B's data. Run them and report failures. Don't change app code to make a test pass without asking me."

7. Performance basics

  • Measure before you tune. Core Web Vitals (LCP, INP, CLS) are a reasonable set of user-facing targets (web.dev Web Vitals).
  • Look for N+1 queries, missing database indexes on columns you filter by, and unbounded list endpoints. Add pagination.

Prompt: "Find database queries inside loops, list endpoints without pagination, and filtered columns without an index. Rank them by likely impact."

8. Backups

  • Know what your host backs up, how often, and how you restore. Supabase documents its backup options and how they differ by plan (Supabase backups).
  • Do one test restore into a scratch project. In our view, a backup you haven't restored is an assumption, not a backup.

9. Rollback plan

  • Write down how you undo a bad deploy before you need to. Vercel lets you instantly roll back to an earlier production deployment (Vercel Instant Rollback).
  • Database migrations don't roll back with the deploy. Keep migrations reversible, or ship them separately.
  • Keep a short runbook: who to call, how to roll back, and how to rotate keys.

Prompt: "Write ROLLBACK.md for this app: how to roll back the frontend deploy, how to reverse the last three migrations, and how to rotate each secret from step 1."

When to hire a human reviewer

If you take payments, store health or financial data, or have users beyond friends and family, a human security review is worth paying for, in our view. OWASP's ASVS gives a reviewer a shared standard to check your app against.

Sources