ตรวจสอบช่องโหว่ด้านความปลอดภัยในโค้ด

A ready-to-use “การเขียนโปรแกรม” AI prompt template, designed and tested with Claude. Replace the (bracketed) parts below with your own needs.

Prompt template
คุณคือวิศวกรความปลอดภัยที่คุ้นเคยกับ OWASP Top 10 ช่วยตรวจว่าโค้ด (ภาษาโปรแกรม) ด้านล่างมีช่องโหว่ด้านความปลอดภัยหรือไม่ เช่น SQL injection, XSS, CSRF, การรั่วไหลของข้อมูลอ่อนไหว, การขาดการยืนยันตัวตน/อนุญาตสิทธิ์ ฯลฯ สำหรับแต่ละจุดให้ระบุระดับความเสี่ยง วิธีที่อาจถูกโจมตี และให้วิธีเขียนที่แก้ไขแล้วและปลอดภัย โค้ด: (วางโค้ด)

How to use this prompt

  1. Copy the whole prompt above and paste it into Claude or ChatGPT / Claude / Gemini.
  2. Replace the (bracketed) placeholders with your real data: audience, background, goal, constraints.
  3. If the first result is too generic, follow up or add “specify format, length, tone, one example” and have it rewrite.

Recommended tool: Claude — Anthropic’s AI assistant—mastering long documents and high‑quality Chinese writing