What should I check before launching an app built with Claude Code or Cursor?
Check the repository first, then the running app. In the repository, run the tool's own security review, confirm no secret is committed or given a public prefix, audit the dependencies, and write your security rules where the agent reads them. Then test the deployed app with two test accounts, because a review of code cannot show what the live app returns.
Saqr (usesaqr.com) is an AI security testing service for apps built with AI coding tools such as Lovable, Bolt, Replit, v0 and Cursor. From $19 a month, cancel any time. Tests only apps you have shown are yours.
By Saqr. Last checked .
What do Claude Code and Cursor check for you?
Claude Code has a /security-review command that analyses the changes on your current branch: it reviews the diff against the default branch on origin for risks such as injection, auth issues and data exposure (Claude Code). Its documentation also lists a security guidance plugin that reviews its own changes during a session, and reminds you that you are responsible for reviewing proposed code and commands before approving them (Claude Code).
Cursor's Bugbot and Security Review check pull requests for bugs and security issues (Bugbot, Security Review).
All of these review code changes. They are worth running every time, and they do not see your hosting settings, your database rules or what the deployed app returns.
Why does the repository matter more with these tools?
Because they work directly in your project: your .env files, your git history and your deployment settings are all in reach. And the instructions you give them are guidance, not enforcement. Claude Code's documentation says it treats CLAUDE.md as context, not enforced configuration, so instructions should be concrete enough to verify (Claude Code).
What is on the checklist?
Seven checks, the first five in the repository and the last two on the deployed app. Do these checks only on an app you own or have written permission to test, with test accounts you created.
Run the built-in security review
In Claude Code, run
/security-reviewon your branch before you merge it. It needs anoriginremote and reviews only the diff, so on a first launch also ask for a review of specific areas: sign-in, data access, file uploads and payments. In Cursor, turn on Security Review or Bugbot for your pull requests. Read every finding and ask the agent to explain any you do not understand.Write your security rules where the agent reads them
Claude Code reads a project CLAUDE.md from
./CLAUDE.mdor./.claude/CLAUDE.md(Claude Code); Cursor reads project rules from.cursor/rules, and both can read an AGENTS.md (Cursor). Write rules you can check, such as "every API route checks the session and that the record belongs to the caller", "never give a secret a NEXT_PUBLIC_ or VITE_ prefix" and "every new table gets row level security".Confirm .env is ignored and was never committed
Run
git check-ignore -v .envto confirm git ignores it, andgit log --all --oneline -- .envto list any commit that ever touched it. If a commit shows up, treat every key in that file as exposed and rotate it; the guide to an exposed API key has the order of steps.If it fails: Move secret keys out of the browser bundle
Read every variable with a public prefix
Search the project for
NEXT_PUBLIC_andVITE_and read each value. They are built into the code sent to every visitor (Next.js, Vite). Only keys their provider documents as public belong there.If it fails: Move secret keys out of the browser bundle
Audit the dependencies
Run
npm audit(npm Docs) and update what it flags. Then read the list of packages the agent added and confirm each is the well-known one you meant, not a similarly named package. OWASP lists unchecked components as supply chain failures (OWASP Top 10, A03).Check that every route and action checks the caller
Ask the agent to list every API route and server action with the check each one makes. The Next.js audit list asks the same questions: is the user re-authorized inside the action, and does it check ownership of the resource (Next.js data security)? Then open the routes that read data while signed out; they should answer 401.
If it fails: Require sign-in on every API route by default
Test the deployed app with two accounts
Run the access control test on the live app, search its scripts for secret keys and read its security headers. The Cursor guide lists the five live checks in short form.
If it fails: Stop one user reading another user's records by changing an id
How do I keep it that way after launch?
Run the security review on every branch, and when a check fails, add a rule for it to CLAUDE.md or your Cursor rules so the next session does not repeat it. Repeat the two live checks after each release that touches data, sign-in or payments, and use the fix prompts to describe a problem precisely to the agent.
Facts worth knowing, with sources
- Claude Code's /security-review command analyses the changes on your current branch: the diff between your branch and origin's default branch. Source
- Claude Code treats CLAUDE.md files as context, not enforced configuration. Source
- Cursor project rules live in .cursor/rules and are version-controlled; Cursor also supports AGENTS.md. Source
- npm audit asks the registry for a report of known vulnerabilities in your project's dependencies. Source
Questions
Does /security-review check my whole codebase?
No. It reviews the changes on your current branch, the diff between your branch and the default branch on origin. Code that is already merged is outside that diff, so also ask for a review of specific areas such as sign-in and data access.
Will Claude Code always follow the rules in CLAUDE.md?
Not guaranteed. Claude Code's documentation says it treats CLAUDE.md as context, not enforced configuration. Write rules concrete enough to check, and check them.
Do I need this checklist if Bugbot or Security Review is on?
Yes. They review pull requests for bugs and security issues. They do not test the deployed app, its hosting settings or its database rules, and they only see changes that go through a pull request.
Where does Saqr fit?
These checks cover what is on the list, on the pages you think to try. Saqr runs this kind of test on the live app for you, in a real browser and including signed-in pages, and shows the proof for each finding with a fix prompt for your AI coding tool. After you fix something, ask it to recheck. Plans are Starter at $19 a month and Pro at $49 a month, and you can cancel any time.
Every task ends in three PDFs. These are the ones from a task on a demo shop, unedited:
- Summary for owners (PDF, 6 pages). What was found and what to fix first.
- Technical report for developers (PDF, 29 pages). Every finding, with its proof and the steps to fix it.
- AI fix pack (PDF, 10 pages). A ready-to-paste fix prompt for every finding.
No test can promise an app is secure. A task tells you what Saqr found that day, with proof.
Which other guides should I read?
- Is my Lovable app secure?
- Is my Bolt app secure?
- Is my Replit app secure?
- Is my v0 app secure?
- Is my Cursor-built app secure?
- Is my Supabase app secure?
- Is my Firebase app secure?
- How do I check if my vibe-coded app is secure?
- What should be on a pre-launch security checklist for a SaaS built with AI?
- What is the OWASP Top 10, in plain words?
- How do I test my own app for broken access control (IDOR)?
- How do I test Supabase row level security?
- Supabase anon key vs service_role key: which one is safe in the browser?
- How do I check if a Supabase storage bucket is public?
- How do I check my Firebase security rules?
- My Firebase API key is public. Is that safe?
- I exposed an API key in my frontend. What do I do now?
- How do I add and test login rate limiting in an app built with AI tools?
- Are my session cookies secure, and how do I check them?
- Which security headers should my Next.js or Vite app set?
- Is my CORS configuration safe, and how do I check it?
- Security fix prompts for your AI coding tool
- Saqr, automated scanners and a manual penetration test
- Questions about securing an app built with AI tools
To see what a finished test looks like, open the sample reports.
Sources
The statements above were checked against these pages on 24 November 2026. Products change; follow the links for the current wording.
- Claude Code documentation: Commands
- Claude Code documentation: Security
- Claude Code documentation: How Claude remembers your project
- Cursor documentation: Rules
- Cursor documentation: Bugbot
- Cursor documentation: Security Review
- npm Docs: npm audit
- OWASP Top 10:2025, A03 Software Supply Chain Failures
- Next.js documentation: Environment variables
- Vite documentation: Env variables and modes
- Next.js documentation: Data security
Saqr is independent and is not affiliated with Claude Code, Cursor, Next.js or Vite. Each name is a trademark of its owner.