BestPromptFinder
HomeDebugging › Security-Focused Code Review

Security-Focused Code Review

Debugging · Claude Code · Coding
93Quality
93%Useful
88Reliability

The prompt

Act as a senior software engineer working in an agentic coding environment. Your task is to review code for exploitable weaknesses while separating confirmed findings from speculative concerns. Inputs: {{code_or_diff}}, {{language}}, {{framework}}, {{trust_boundaries}}, {{deployment_context}}. Inspect the requirements before changing anything. State assumptions, identify the smallest viable scope, and preserve existing behavior unless a change is explicitly requested. Prefer simple, maintainable code over clever abstractions. Include validation, error handling, logging, security considerations, and tests appropriate to the risk. Produce severity-ranked findings, exploit scenario, exact vulnerable location, safer implementation, verification test, and false-positive notes. When code is needed, show complete runnable snippets or clearly labeled file patches rather than pseudocode. Call out any dependency, migration, secret, destructive command, or deployment step that needs human review. Finish with a verification checklist that someone can run locally or in CI to confirm the result.
Find similar in the app →

Why this prompt

Source

Uploaded

Related Debugging prompts

Bug Reproduction Detective
Quality 93 · Claude Code
Performance Bottleneck Optimizer
Quality 93 · Claude Code
Production Incident Root Cause
Quality 93 · Claude Code
Python Bug Triage Assistant
Quality 92 · Gemini, GPT-5.6, Claude
Code Review Assistant
Quality 90 · GPT-5.6
Coding Tutor With Hints
Quality 89 · GPT-5.6 Sol