Security Vulnerability Scanner Prompt

folder Coding & Dev Prompts smart_toy ChatGPT (GPT-4o) visibility 6 views content_copy 0 copies

Security audit your code against OWASP Top 10 with severity ratings and remediation code.

code Prompt
Perform a security audit of this [Language/Framework] code:

```[language]
[Paste your code]
```

Check for OWASP Top 10 vulnerabilities:
1. Injection (SQL, NoSQL, Command)
2. Broken Authentication
3. Sensitive Data Exposure
4. XML External Entities (XXE)
5. Broken Access Control
6. Security Misconfiguration
7. Cross-Site Scripting (XSS)
8. Insecure Deserialization
9. Known Vulnerable Components
10. Insufficient Logging

For each vulnerability found:
- Severity: Critical/High/Medium/Low
- Location in code (line number)
- Attack vector description
- Proof of concept exploit
- Remediation code
- Security test to add

Also check: CSRF protection, rate limiting, input validation, output encoding.

help_outline How To Use This Prompt

Paste the code to audit. Works best with authentication, input-handling, or database code.

lightbulb Example Output

CRITICAL - SQL Injection (Line 45): f"SELECT * FROM users WHERE email='{email}'" - Attack: email=' OR 1=1--...

quiz Frequently Asked Questions

What is the "Security Vulnerability Scanner Prompt" prompt used for? expand_more
Security audit your code against OWASP Top 10 with severity ratings and remediation code.
Which AI models work with this prompt? expand_more
This prompt works best with ChatGPT (GPT-4o). You can also try it with other large language models for similar results.
Can I modify this prompt? expand_more
Yes! Feel free to copy and customize this prompt to better fit your specific needs. You can change names, industries, tones, or any other variables to personalize the output.
Is this prompt free to use? expand_more
Absolutely. All prompts on GetPromptPro are free to copy and use for personal or commercial purposes.