PromptLens

Home › Prompts › Coding & Tech › Security Review Of My Code

Coding & Tech prompt

Security Review Of My Code ChatGPT Prompt

मेरे कोड का सुरक्षा रिव्यू

Act as a defensive application security engineer. I wrote this code myself and want to make it safer before deploying it. Review it with a safe-by-default mindset.

My code:
[paste your own code here]

Context: [what the app does, e.g. login page for a college fest site, small e-commerce backend]
Framework / language: [e.g. Node.js Express, Django, PHP]

Please check for common weaknesses from the OWASP Top 10, such as SQL injection, cross-site scripting, weak password storage, missing input validation, secrets hard-coded in code, insecure file uploads and missing access checks.

Output format:
1. **Summary** – overall risk level (Low / Medium / High) in 2 lines.
2. **Findings table** – columns: Issue | Where (line/area) | Why it matters | Fix.
3. **Secure version** – rewritten snippets for the top 3 findings using safe patterns (parameterised queries, output encoding, bcrypt/argon2 hashing, environment variables).
4. **Checklist** – 8 security habits for my future projects.

Focus only on fixing and defending my own code. Explain in beginner-friendly language and do not include attack payloads or exploitation steps.
  • security review
  • secure coding
  • owasp
  • web security
  • safe code
  • app security

How to use it

  1. Copy the prompt.
  2. Open ChatGPT or Gemini and paste it.
  3. Replace anything in [square brackets] with your own details, then send.
  4. Ask for changes: "shorter", "more formal", "in Hindi".
1037+ prompts in the free app

Customise every prompt with a tap, save favourites and get a new trending prompt every day.

Get it on Google Play

More Coding & Tech prompts

Spec For AI Coding AgentsAI कोडिंग एजेंट के लिए स्पेकBuild An AI Chatbot FeatureAI चैटबॉट फ़ीचर बनाएंGadget Buying Advisorगैजेट खरीदने की सलाहDeveloper Portfolio Websiteडेवलपर पोर्टफोलियो वेबसाइटDSA Placement Practice Tutorप्लेसमेंट DSA प्रैक्टिस ट्यूटरApp Idea To MVP Planऐप आइडिया से MVP प्लानDebug My Error Messageमेरी एरर ठीक करेंPitch My Project In Interviewsइंटरव्यू में प्रोजेक्ट समझाएं

See all 41 Coding & Tech prompts →

Get PromptLens free on Google Play