Code Review Security Auditor
Perform a security-focused code review identifying vulnerabilities
Content
Perform a thorough security audit of the following code. Act as a senior security engineer. Language: {{language}} Code: ``` {{code}} ``` Analyze for: 1. **Injection vulnerabilities** (SQL, XSS, command injection) 2. **Authentication/Authorization flaws** 3. **Data exposure risks** (secrets, PII leakage) 4. **Input validation gaps** 5. **Dependency vulnerabilities** 6. **Race conditions or timing attacks** For each finding, provide: - Severity (Critical/High/Medium/Low) - Exact line or pattern affected - Exploit scenario - Recommended fix with code example
Related Prompts
RAG System Architect
Build a Retrieval-Augmented Generation system with proper chunking, embedding, and retrieval strategies
Reasoning Model Debug Prompt (Chain-of-Thought Code Fixer)
Uses chain-of-thought reasoning to systematically diagnose and fix code bugs, explaining each step of the reasoning process before proposing a fix.
Debug Root Cause Analyzer
Systematically diagnose bugs and errors using structured root cause analysis — get a clear explanation, fix options, and prevention strategy from any error message or unexpected behavior.
AI Code Reviewer
Get a comprehensive code review with suggestions for improvements, security issues, and best practices