Security Vulnerability Scanner

What This Prompt Does:

Protect your codebase from common exploits. This prompt acts as a security auditor, scanning your code for SQL injections, XSS vulnerabilities, and insecure dependencies while providing patching recommendations.

Key Tips for Best Results:

  • Paste specific functions rather than entire projects for deeper analysis.
  • Mention the specific language and framework (e.g., Python/Django).
  • Ask for ‘OWASP Top 10’ compliance check for a standard-based review.

Description

About This Prompt: Security Vulnerability Scanner

Optimized for:
ChatGPT
Claude
Gemini
Grok
Verified precision.

How To Use The Prompt:

  1. Copy the entire prompt from the window and paste it directly into ChatGPT, Claude, or Gemini.
  2. Locate and replace the main placeholders with your specific details: [LANGUAGE/FRAMEWORK], [CODE SNIPPET], and [SECURITY CONCERNS].
  3. Input Example: Use the following format for your input:

Example Input: Language: Node.js/Express, Concerns: Database queries and authentication, Code: [Your code here]

Additional Information:

This prompt is optimized for modern security standards. It doesn’t just find bugs; it explains the risk and teaches you how to write safer code.

This prompt provides the foundation to:

  • Vulnerability Detection: Identifies hidden security flaws before they reach production.
  • Patch Suggestions: Provides immediate code snippets to fix the issues.
  • Best Practices: Aligns your code with industry-standard security protocols.

Safety Note: As a professional colleague, always review AI-generated assessments for potential bias or inaccuracies before making final business or management decisions.

PROMPT WINDOW

You are a Senior Security Engineer and Penetration Tester. Your task is to perform a security-focused code review on the following [LANGUAGE/FRAMEWORK] code:

[CODE SNIPPET]

Please analyze the code for:
1. Common Vulnerabilities (SQLi, XSS, CSRF, etc.).
2. Insecure Data Handling or Hardcoded Credentials.
3. Logic flaws that could be exploited.

For every issue found, provide a ‘Risk Level’ (Low, Medium, High), a description of the exploit, and a ‘Secure Code’ version to fix it. Focus specifically on these concerns: [SECURITY CONCERNS].