llm-redteam
Fungsinya
Skill ini mengajari agent cara melakukan red-teaming pada aplikasi model bahasa untuk mencari kelemahan keamanan. Fokusnya adalah apakah teks yang disuntikkan memicu aksi nyata, kebocoran, atau keluaran yang tidak aman, bukan sekadar jawaban yang aneh.
Kapan dipakai
- โSaat penguji perlu memeriksa chatbot, asisten, atau copilot untuk prompt injection.
- โSaat penguji menduga fitur AI bisa membocorkan system prompt atau data pribadi.
- โSaat penguji perlu melihat apakah agent AI bisa memanggil alat yang seharusnya tidak dipakainya.
Link skill
https://github.com/awarexone/Agentic-Bug-Hunter/blob/main/skills/llm-redteam/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
โUji chatbot dukungan ini untuk prompt injection dan periksa apakah ia bisa membocorkan system prompt-nya.โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent menjalankan sekumpulan prompt serangan yang membawa penanda unik, lalu memeriksa apakah model membocorkan, bertindak, atau menghasilkan keluaran tidak aman. Balasan yang hanya mengulang muatan dianggap sebagai noise.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
LLM Red-Team
Reflection is not exploitation. A model that echoes your payload is noise; a model that acts on it โ leaks its system prompt, emits your canary, calls a tool, renders raw HTML downstream โ is a bug. Prove the action, then chain it to concrete impact.
This is the first-class LLM-attack skill. The scanner behind it is bughunter/tools/llm_redteam.py (canary-based corpus runner, /llm-redteam). For auditing an MCP server, use skills/mcp-server-audit; for attacking a deployed agent black-box, use skills/agentic-app-audit.
0. QUICK KILL CHECKLIST
Kill the lead (classify Informational, move on) when:
- The model refuses and no canary / leak / tool-call ever lands. "It said something edgy" is not a finding.
- System-prompt "leak" is just generic assistant boilerplate ("I am a helpful assistant"), not the target's actual instructions.
- Prompt injection fires but reads/changes nothing the current user couldn't already access (no cross-tenant data, no tool with impact).
- Output looks like XSS but the host app escapes it before rendering (check the actual downstream sink, not the chat response).
- Exfil payload is a markdown image beacon but the client never fetches remote images.
1. ROUTING TABLE โ signal on target -> what to run
| Signal | Run |
|---|---|
| Any chat/assistant endpoint | bughunter/tools/llm_redteam.py --url <endpoint> --field <json-field> (full corpus) |
| OpenAI-style API | --template '{"messages":[{"role":"user","content":"{{PAYLOAD}}"}]}' --response-path choices.0.message.content |
| Only want one class | --category jailbreak (see --list-categories) |
| Uploads/RAG/"summarize this doc" | indirect-injection + token-smuggling (invisible unicode in the doc) |
| Agent has tools | excessive-agency category + skills/agentic-app-audit |
| Confirm blind exfil | plant a canary host, correlate with bughunter/tools/oob_listener.py |
2. ATTACK CLASSES (corpus categories)
The runner fires a canary per run (RT_PWNED_xxxx); a category "lands" when the canary / a real leak / a tool-call shows up in the response.
- prompt-injection โ direct instruction override, delimiter breaks.
- jailbreak โ DAN / developer-mode persona escape.
- system-prompt-leak โ repeat-above, keyword-anchor, scenario-escape.
- data-exfil โ markdown-image beacon / canary emission to an attacker host.
- indirect-injection โ payload framed as a retrieved document / tool result (the high-value one for RAG apps).
- guardrail-bypass โ base64 / split-string instruction smuggling.
- multi-turn-crescendo โ single-shot simulation of a gradual escalation jailbreak.
- cross-lingual โ override instruction in another language to dodge English-only filters.
- cipher-obfuscation โ leetspeak / ROT13-wrapped instruction.
- token-smuggling โ invisible "Sneaky Bits" unicode (U+2062/U+2064) carrying a hidden instruction (shared encoder with
bughunter/tools/hai_payload_builder.py). - excessive-agency โ coerce an unsafe tool call / exfil (SSRF via "fetch URL", email send, payment).
- insecure-output โ get the model to emit raw HTML/script that a downstream sink renders (XSS via AI).
3. CANONICAL OWASP ASI01-ASI10 (single source of truth)
This table is the ONE authoritative ASI mapping for the whole toolkit โ skills/bug-bounty and skills/web2-vuln-classes both defer to it. If you edit the taxonomy, edit it here.
| ID | Class | What to test | Chain to |
|---|---|---|---|
| ASI01 | Prompt Injection / Goal Hijack | Override objectives via direct or indirect injection | IDOR / exfil / tool abuse |
| ASI02 | Tool Misuse | Attacker-controlled tool params ("fetch this URL", code tool) | SSRF / RCE |
| ASI03 | Privilege Compromise | Agent uses broader perms / admin tokens than the user | Priv-esc / cross-tenant |
| ASI04 | Supply Chain | Compromised plugin / MCP server / tool-output poisoning next agent | RCE / data theft |
| ASI05 | Code Execution | Unsafe code-interpreter / sandbox escape | RCE |
| ASI06 | Memory & Context Poisoning | Persistent RAG/memory corruption across sessions/users | Stored injection affecting all users |
| ASI07 | Agent Communication | Inter-agent spoofing / IDOR (agent A reads agent B's context) | Cross-tenant disclosure |
| ASI08 | Excessive Agency | Destructive action without confirmation; cascading failures | Funds/email/delete |
| ASI09 | Insecure Output Handling | AI output rendered as XSS / SQLi / comm |
Pertanyaan umum
Apa yang dihitung sebagai temuan nyata?
Skill ini menyebutkan model harus bertindak atas muatan tersebut, misalnya membocorkan instruksi atau memanggil alat, bukan sekadar mengulangnya.
Apakah skill ini mencakup injeksi tidak langsung?
Ya. Skill ini mencakup injeksi yang tersembunyi dalam dokumen atau halaman yang dibaca asisten.
Standar apa yang dipetakan?
Skill ini memetakan ke OWASP LLM Top 10 dan ke ASI01 hingga ASI10.
Detail
Deskripsi asli dari pembuat
LLM application red-teaming โ prompt injection (direct + indirect), jailbreak, system-prompt leak, data exfiltration, guardrail bypass, multi-turn crescendo, cross-lingual + cipher + invisible-unicode token smuggling, excessive agency / tool abuse, insecure output handling. Canonical OWASP LLM Top 10 + ASI01-ASI10 mapping. Use when a target exposes a chat/completions/assistant/copilot endpoint, an AI feature that consumes user text or documents, or any /v1/chat, /api/chat, /mcp surface.
Popularitas
- Bintang GitHub
- 5.5k
- Peringkat
- #14790
- Lisensi
- MIT
- Diperbarui
- 28/10/2026
Komentar
- โฆ
Skill lain dari repositori ini
bug-bounty
5.5kMembantu agent Anda merencanakan peninjauan bug bounty secara bertahap, dari memeriksa cakupan program dan memetakan aset hingga menguji dugaan, memvalidasi dampak, dan menulis laporan.
agentic-app-audit
5.5kMembantu agent Anda meninjau asisten AI yang sedang berjalan dari luar untuk mencari risiko seperti panggilan alat yang dibajak, memori yang diracuni, dan aksi dengan akses lebih besar.
argus
5.5kMembantu agent Anda menjalankan enam pemindai otomatis untuk kelemahan umum aplikasi web dan AI, seperti akses lintas asal yang terbuka, kelemahan JWT, dan bug buta yang dikonfirmasi lewat jalur luar.
bb-methodology
5.5kMembantu agent Anda merencanakan sesi bug bounty secara bertahap, memilih langkah dan pemeriksaan yang tepat, serta membuang ide yang tidak bisa menimbulkan kerugian nyata.
Skill serupa
reverse-engineer-anything
422kMembantu agent Anda memeriksa aplikasi dan paket yang sudah dirilis untuk menjelaskan fitur, membandingkan versi, atau memandu pembangunan ulang dengan alat REA.
1password
394kMembantu agent Anda mengatur CLI 1Password, masuk, serta membaca atau menyisipkan rahasia tanpa menampilkan nilainya di chat.
healthcheck
394kMembantu agent Anda mengaudit komputer atau server OpenClaw dari risiko keamanan seperti SSH, firewall, pembaruan, dan cadangan, lalu menyarankan perbaikan aman.