llm-redteam
하는 일
이 스킬은 언어 모델 앱의 보안 약점을 레드팀 방식으로 테스트하는 방법을 에이전트에게 가르칩니다. 주입된 텍스트가 실제 행동, 유출, 안전하지 않은 출력으로 이어지는지에 초점을 맞추며, 단순히 이상한 답변만 보지는 않습니다.
사용하는 경우
- ✓테스터가 챗봇, 어시스턴트, 코파일럿에 프롬프트 인젝션이 있는지 확인해야 할 때.
- ✓테스터가 AI 기능이 시스템 프롬프트나 비공개 데이터를 유출할 수 있다고 의심하는 경우.
- ✓테스터가 AI 에이전트가 쓰면 안 되는 도구를 호출할 수 있는지 확인해야 할 때.
스킬 링크
https://github.com/awarexone/Agentic-Bug-Hunter/blob/main/skills/llm-redteam/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 고객 지원 챗봇에 프롬프트 인젝션 테스트를 하고, 시스템 프롬프트를 드러낼 수 있는지 확인해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 고유한 표식이 담긴 공격 프롬프트를 실행한 뒤, 모델이 유출하는지, 행동하는지, 안전하지 않은 출력을 내는지 확인합니다. 공격 내용을 그대로 반복하기만 한 응답은 잡음으로 취급합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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 |
자주 묻는 질문
어떤 것이 실제 발견 사항인가요?
스킬은 모델이 지시 사항을 유출하거나 도구를 호출하는 등 페이로드에 따라 실제로 행동해야 하며, 단지 반복만 해서는 안 된다고 설명합니다.
간접 인젝션도 다루나요?
네. 어시스턴트가 읽는 문서나 페이지에 숨겨진 인젝션도 포함합니다.
어떤 표준에 맞추나요?
OWASP LLM Top 10과 ASI01부터 ASI10까지에 대응합니다.
상세 정보
작성자의 원본 설명
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.
인기도
- GitHub 스타
- 5.5k
- 순위
- #14790
- 라이선스
- MIT
- 업데이트
- 2026. 10. 28.
댓글
- …
이 저장소의 다른 스킬
bug-bounty
5.5k에이전트가 범위 확인, 자산 매핑, 취약점 테스트, 영향 검증, 보고서 작성까지 버그 바운티 점검을 단계별로 계획하도록 돕습니다.
agentic-app-audit
5.5k에이전트가 운영 중인 AI 어시스턴트를 외부에서 점검해 도구 호출 탈취, 메모리 오염, 과도한 권한 사용 같은 위험을 찾도록 돕습니다.
argus
5.5k에이전트가 웹 앱과 API의 흔한 취약점을 찾는 여섯 가지 자동 스캐너를 실행하도록 돕습니다.
bb-methodology
5.5k에이전트가 버그 바운티 세션을 단계별로 계획하고, 다음 단계와 적절한 점검을 고르며, 실제 피해를 낼 수 없는 아이디어는 버리도록 돕습니다.