Guide · Claude Code
Claude Code security review: what it checks, and what it cannot see.
Yes, Claude Code can review its own work for security problems, and it is worth switching on. But every one of its reviews reads the code on your computer. In Anthropic’s own words, it reads “the source code in your checkout, not a running site or deployed service”. Some of what decides whether your app is safe never appears in that code.
What is the Claude Code security review?
Anthropic gives Claude Code three ways to look for security problems:
- The security guidance plugin. Once installed, it checks Claude’s changes as it works: on each edit, at the end of each reply, and on each commit. When it finds something, Claude fixes it in the same session.
- The
/security-reviewcommand. One pass when you ask for it. It covers only the changes on your current branch, not the whole project. - The Claude Security plugin. A deeper scan of a whole project, for code you already have.
What does it check?
The kinds of mistakes that live in code. Anthropic’s list includes code that lets someone run their own commands, pages that skip the check on who is allowed in, one user reaching another user’s records by changing a number, your server being tricked into fetching addresses for an attacker, and weak encryption. These are real problems, and catching them while the code is being written is the cheapest moment to fix them.
What a code review cannot see
A live app is more than its code. Three things decide your safety that a review of the code on your computer may never meet:
- Your database rules. If your app uses Supabase, the rule on each table about who may read it can be set by clicking in the Supabase dashboard, and then it is not in your code at all. A table with row level security switched off lets any stranger read it, however clean the code is.
- The version that is actually live. The review reads your branch. Your visitors get whatever was last published, which may be older. A key you removed today can still be in the live site, and once a key has been public it needs replacing, not just deleting. What to do when a key is exposed.
- One customer seeing another’s data. Whether that happens often depends on the database rules above, not on the code. The only way to be sure is to sign in as one person and try to reach someone else’s records.
Anthropic says this plainly too: the review “can miss issues” and is “not a complete security solution”. That is not a fault in Claude Code. A code review and a check of the live app answer different questions, and you want both.
How do I check my Claude Code app?
First, ask Claude Code to look at the whole project. Paste this in:
Review this whole project for security problems, not only my latest changes. Look for any secret key or password in code that reaches the browser, any page or route that returns data without checking who is signed in, and any place where one user could ask for another user’s records. For every database table, tell me whether row level security is on and what the rule is, and say plainly which of these you could not confirm from the code alone.
Then check the live app from the outside, the way a stranger would. Paste your address in the box above: it tests what a visitor can actually reach and explains what it finds in plain English. For the database on its own, use the free database check. If the words “row level security” are new, start with row level security, explained.
You can also connect GuardCue to Claude Code, so Claude can run the check, read what we found and fix it in the same session. More on what to look for in a Claude Code app: is my Claude Code app safe?
GuardCue checks apps built with Claude or any other AI tool and explains what it finds in plain English, for the person who built it rather than for a developer. Check your app, free.