llm-redteam
What it does
This skill teaches an agent how to red-team a language model app for security weaknesses. It focuses on whether injected text leads to real actions, leaks, or unsafe output, not just odd replies.
When to use it
- βWhen a tester needs to check a chatbot, assistant, or copilot for prompt injection.
- βWhen a tester suspects an AI feature can leak its system prompt or private data.
- βWhen a tester needs to see whether an AI agent can call tools it should not use.
Skill link
https://github.com/awarexone/Agentic-Bug-Hunter/blob/main/skills/llm-redteam/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βTest this support chatbot for prompt injection and check whether it can reveal its system prompt.β
5 new skills a week. 1 minute to read.
How it works
The agent runs a set of attack prompts that carry a unique marker, then checks whether the model leaks, acts, or passes unsafe output on. Replies that only repeat the payload are treated as noise.
Technical content (original SKILL.md)
Original text by the author, straight from 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 |
FAQ
What counts as a real finding?
The skill says the model must act on the payload, such as leaking instructions or calling a tool, not just repeat it.
Does it cover indirect injection?
Yes. The skill includes injection hidden in documents or pages the assistant reads.
Which standards does it map to?
The skill maps to the OWASP LLM Top 10 and to ASI01 through ASI10.
Details
Original description by the author
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.
Popularity
- GitHub stars
- 5.5k
- Ranking position
- #14790
- License
- MIT
- Updated
- 10/28/2026
Comments
- β¦
More skills from this repository
bug-bounty
5.5kHelps your agent plan a bug bounty review in stages, from checking the program scope and mapping assets to testing leads, validating impact, and writing a report.
agentic-app-audit
5.5kHelps your agent review a live AI assistant from the outside for risks such as hijacked tool calls, poisoned memory, and actions taken with more access than the user has.
argus
5.5kHelps your agent run six automated scanners for common web and AI app flaws, such as open cross-origin access, JWT weaknesses, and blind bugs confirmed out-of-band.
bb-methodology
5.5kHelps your agent plan a bug bounty session in stages, choosing the next step and the right checks, and dropping ideas that cannot cause real harm.
Similar skills
reverse-engineer-anything
422kHelps your agent look inside shipped apps and packages to explain features, compare versions, or guide a rebuild, using the REA tool.
1password
394kHelps your agent set up the 1Password CLI, sign in, and read or inject secrets without printing their values into chat.
healthcheck
394kHelps your agent audit the computer or server that runs OpenClaw for security risks, such as SSH, firewall, updates, and backups, then suggest safe fixes.