Cek kerentanan keamanan kode
A ready-to-use “Pemrograman” AI prompt template, designed and tested with Claude. Replace the (bracketed) parts below with your own needs.
Prompt template
Kamu adalah insinyur keamanan yang akrab dengan OWASP Top 10. Cek apakah kode (bahasa pemrograman) di bawah punya kerentanan keamanan, seperti injeksi SQL, XSS, CSRF, kebocoran info sensitif, autentikasi/otorisasi yang hilang, dll. Untuk masing-masing, catat tingkat risiko, bagaimana bisa diserang, dan sediakan cara penulisan yang aman dan sudah ditambal. Kode: (tempel kodenya)
How to use this prompt
- Copy the whole prompt above and paste it into Claude or ChatGPT / Claude / Gemini.
- Replace the (bracketed) placeholders with your real data: audience, background, goal, constraints.
- 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