llm-redteam
Skill này làm gì
Skill này dạy agent cách red-team một ứng dụng mô hình ngôn ngữ để tìm điểm yếu bảo mật. Skill tập trung vào việc văn bản bị tiêm có dẫn tới hành động, rò rỉ hoặc đầu ra không an toàn thật hay không, chứ không chỉ là câu trả lời lạ.
Khi nào nên dùng
- ✓Khi người kiểm thử cần kiểm tra một chatbot, trợ lý hoặc copilot để tìm prompt injection.
- ✓Khi người kiểm thử nghi ngờ một tính năng AI có thể rò rỉ system prompt hoặc dữ liệu riêng.
- ✓Khi người kiểm thử cần xem một agent AI có thể gọi công cụ mà nó không nên dùng hay không.
Liên kết skill
https://github.com/awarexone/Agentic-Bug-Hunter/blob/main/skills/llm-redteam/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Kiểm thử chatbot hỗ trợ khách hàng này để tìm prompt injection và kiểm tra xem nó có thể tiết lộ system prompt không.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent chạy một bộ prompt tấn công có mang một dấu hiệu duy nhất, rồi kiểm tra xem mô hình có rò rỉ, hành động hoặc xuất đầu ra không an toàn hay không. Các phản hồi chỉ lặp lại payload được xem là nhiễu.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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 |
Câu hỏi thường gặp
Điều gì được tính là phát hiện thật?
Skill nói mô hình phải hành động theo payload, như rò rỉ chỉ dẫn hoặc gọi công cụ, chứ không chỉ lặp lại nó.
Nó có bao gồm injection gián tiếp không?
Có. Skill bao gồm injection ẩn trong tài liệu hoặc trang mà trợ lý đọc.
Nó ánh xạ tới những chuẩn nào?
Skill ánh xạ tới OWASP LLM Top 10 và ASI01 đến ASI10.
Chi tiết
Mô tả gốc của tác giả
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.
Độ phổ biến
- Sao GitHub
- 5.5k
- Vị trí xếp hạng
- #14790
- Giấy phép
- MIT
- Cập nhật
- 28/10/2026
Bình luận
- …
Thêm skill từ kho mã này
bug-bounty
5.5kGiúp agent của bạn lên kế hoạch cho một đợt rà soát bug bounty theo từng giai đoạn, từ kiểm tra phạm vi chương trình và lập bản đồ tài sản đến thử nghiệm các manh mối, xác nhận tác động và viết báo cáo.
agentic-app-audit
5.5kGiúp agent của bạn rà soát từ bên ngoài một trợ lý AI đang chạy thật, tìm các rủi ro như lệnh gọi công cụ bị chiếm quyền, bộ nhớ bị nhiễm độc và hành động dùng quyền cao hơn người dùng.
argus
5.5kGiúp agent của bạn chạy sáu bộ quét tự động cho các lỗi phổ biến của ứng dụng web và AI, như chia sẻ tài nguyên chéo nguồn quá mở, điểm yếu JWT và lỗi mù được xác nhận ngoài băng.
bb-methodology
5.5kGiúp agent của bạn lên kế hoạch một phiên bug bounty theo từng giai đoạn, chọn bước tiếp theo và các kiểm tra phù hợp, rồi loại bỏ những ý tưởng không thể gây hại thật.
Skill tương tự
reverse-engineer-anything
422kGiúp agent của bạn xem bên trong các app và package đã phát hành để giải thích tính năng, so sánh phiên bản hoặc hướng dẫn dựng lại bằng công cụ REA.
1password
394kGiúp agent của bạn cài đặt CLI của 1Password, đăng nhập, và đọc hoặc đưa thông tin bí mật vào mà không in giá trị ra cuộc trò chuyện.
healthcheck
394kGiúp agent của bạn rà soát bảo mật máy tính hoặc máy chủ đang chạy OpenClaw, như SSH, tường lửa, cập nhật và sao lưu, rồi đề xuất cách sửa an toàn.