1---2name: ai-redteam3description: AI and LLM red-teaming skill for evaluating prompt injection, jailbreak, data exfiltration, tool abuse, agent hijack, RAG poisoning, model denial of service, and unsafe tool-use chains in Gemini, Claude, GPT, and open-weight models. Use to build evaluation harnesses, attack corpora, defensive guardrails, and red-team reports for AI systems you own or are authorized to test.4---56# AI Red Team78## Authorization Boundary910- Only target models, agents, and applications the user owns or has written authorization to test.11- Do not produce working malware, CSAM, weapons synthesis, or content that bypasses model safety for harmful real-world outcomes.12- Treat findings as defensive: every successful attack must ship with a detection and a mitigation.1314## Attack Taxonomy1516- `Direct injection`: instructions in user input override system policy.17- `Indirect injection`: hostile content in retrieved docs, web pages, emails, files, image alt-text, or tool output.18- `Jailbreak`: roleplay, hypothetical, encoding, obfuscation, multi-turn drift, persona pinning.19- `Tool abuse`: forcing browse, shell, code, or MCP tools to act outside scope (SSRF, file read, command exec).20- `Data exfiltration`: leaking system prompt, secrets, embeddings, training data, or per-user memory.21- `Agent hijack`: rewriting plans, looping, escalating permissions, calling unintended sub-agents.22- `RAG poisoning`: index pollution, ranking manipulation, embedding collisions.23- `Resource exhaustion`: token bombs, recursive tool calls, prompt-bomb DoS.2425## Evaluation Workflow26271. Map the AI surface: model, system prompt, tools, retrievers, memory, output sinks, and downstream callers.282. Build a threat model with abuse cases per surface.293. Generate a versioned attack corpus (`attacks.jsonl`) with `{id, technique, payload, expected_block, severity}`.304. Run the harness; record `{pass, fail, partial, refusal_quality, leak_evidence}`.315. Score with attack success rate per technique, mean time to refuse, and blast radius.3233## Defensive Output3435- Input/output classifiers and allow-listed tool schemas.36- Provenance tags on retrieved context; quarantine for untrusted sources.37- Plan-then-execute pattern with human approval on high-impact tools.38- Rate limits, recursion caps, and per-tool budgets.39- Red-team report: top techniques, reproductions, fix owners, regression tests.4041## Deliverables4243- `surface.md`, `threats.md`, `attacks.jsonl`, `harness/`, `results.csv`, `report.md`, `regression-suite/`.