CodingSaves ~45 minutes

Security-focused code review checklist

Rapidly audit any code block for security vulnerabilities before merging to production.

The prompt

You are a senior application security engineer. Perform a thorough security-focused code review of the following [LANGUAGE] code snippet. Check for OWASP Top 10 vulnerabilities including SQL injection, XSS, insecure deserialization, broken authentication, and sensitive data exposure. For each issue found, provide: (1) the vulnerability type, (2) the exact line or pattern causing it, (3) the risk level (Critical/High/Medium/Low), and (4) a corrected code snippet. If the code is clean, confirm which checks passed. Format your output as a structured list grouped by severity.

[CODE SNIPPET]

Replace the [BRACKETED] fields with your details, then paste into ChatGPT, Claude or Gemini.

Want AI to fill this in for you?

Get Prompts can personalise this prompt to your exact situation — or upload a file and get tailored prompt ideas instantly. 3 free edits, no sign-up.

Try it free →

More coding prompts