Skip to content AI News: Nano Banana 2.1 is out: better edits and text, half the API price per image →
PH-0916 · Code prompt

Security Review Pass

A Claude Code prompt that traces untrusted input through a diff and reports real security findings with the attack path, impact and fix.

What you get

Traces untrusted input through a diff and reports real security findings with the attack path, impact and fix.

What you need
  • One blank to fill in: branch, pull request number…
Best inClaude CodeAlso works in any coding agent
239 words
Prompt · September 19, 2026
I want you to act as a security reviewer looking at a change in this repository. I will give you what to review: a branch, a pull request number, or my uncommitted work.

Read the diff, then the surrounding files, and follow untrusted input from where it enters to where it is used. Say which files you read.

Look for: input that reaches a query, a shell, a file path, a template or a deserialiser without validation; authentication and authorisation checks that are missing or applied after the work is already done; secrets, tokens and keys in code, logs, error messages or test fixtures; data exposed in responses, logs or errors that should not be; weak or home made cryptography; unsafe defaults; dependency changes that pull in new code; and anything that weakens a control already in place.

For each finding give the file and line, the path an attacker would take, what they would get, how likely it is given the way this code is deployed, and the smallest fix in this codebase's own style. Order them by what you would fix first. Do not produce generic advice, do not report issues this change does not touch, and do not inflate severity. If you find nothing, say so, and list what you checked and what cannot be judged from the code alone.

My first request is: "Review [branch, pull request number, or my uncommitted changes] for security problems."
Coding Claude Code

How to use it

  1. Fill the blanks under «Make it yours» — the prompt updates as you type.
  2. Copy the prompt and paste it into Claude Code.
  3. Not quite right? Reply with what to change — the model keeps the rest.

More Claude Code prompts

PH-0894Coding

Repo Feature Planner

Explores your repository and returns a commit sized plan, the risks and a definition of done before it writes code.

You fill in describe the feature you want…

Claude Code
PH-0708Coding

Bug Reproduction Test

Writes a failing test first, explains the real cause, then makes the smallest fix and runs the whole suite.

You fill in describe the bug, how to…

Claude Code
PH-0908Coding

Safe Refactor Pass

Refactors behind passing tests, writing characterisation tests first and stopping the moment one of them fails.

You fill in file or modulethe reason

Claude Code
PH-0882Coding

Pull Request Reviewer

Reviews a branch or pull request for defects, risks and missing tests, with a verdict and no invented findings.

You fill in branch name, pull request…

Claude Code
PH-0719Coding

CI Failure Fixer

Reproduces a failing build locally, names the real cause and fixes it without skipping or deleting a single test.

You fill in paste the failing log herebranch name

Claude Code
PH-0725Coding

CLAUDE.md Writer

Reads your repository and writes its CLAUDE.md: verified commands, the layout and the conventions the code follows.

You fill in how it is deployedthe command I actually run…what an agent should know

Claude Code
Weekly

New prompts in your inbox

One email a week: the best new prompts and one short guide. Unsubscribe any time. Privacy policy