Kiểm tra lỗ hổng bảo mật trong code

A ready-to-use “Lập trình” AI prompt template, designed and tested with Claude. Replace the (bracketed) parts below with your own needs.

Prompt template
Bạn là kỹ sư bảo mật quen thuộc với OWASP Top 10. Hãy kiểm tra xem đoạn code (ngôn ngữ lập trình) bên dưới có lỗ hổng bảo mật không, chẳng hạn SQL injection, XSS, CSRF, rò rỉ thông tin nhạy cảm, thiếu xác thực/phân quyền, v.v. Với mỗi lỗi, ghi mức độ rủi ro, cách nó có thể bị tấn công, và cung cấp cách viết an toàn đã vá. Code: (dán code)

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