Thực hiện kiểm tra bảo mật mã

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
Hãy rà soát đoạn mã dưới đây từ góc độ bảo mật: 1) kiểm tra các lỗ hổng phổ biến (injection, XSS, leo thang đặc quyền, rò rỉ khóa bí mật, dùng phụ thuộc không an toàn); 2) liệt kê các vấn đề xếp theo mức độ nghiêm trọng; 3) kèm mã đã sửa cho từng cái; 4) giải thích cách xác minh bản sửa.

Mã:
```
dán mã vào đây
```

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