LLM Agent Security Red Team
Use this skill when an LLM or agent can read untrusted content, call tools, access private data, modify files, browse the web, or run code. The goal is to identify realistic misuse paths and reduce authority before deployment.
Routing
- Use
agentic-actions-auditor for GitHub Actions workflows that run AI agents.
- Use
supply-chain-risk-auditor for dependency and package takeover risk.
- Use
semgrep, codeql, and sarif-parsing for static-analysis backed findings.
- Use this skill for the LLM-specific threat model and adversarial test plan.
Threat Model
- List assets:
- secrets, tokens, credentials
- private files and repositories
- customer/user data
- write-capable tools and deployment paths
- List untrusted inputs:
- web pages, docs, PDFs, issues, PR comments, emails, tickets, chat messages
- retrieved chunks and tool outputs
- List agent powers:
- filesystem writes
- shell/code execution
- network calls
- browser actions
- GitHub/Slack/Drive mutations
- Test failures:
- prompt injection
- cross-tool data exfiltration
- overbroad tool arguments
- hidden instructions in retrieved content
- unsafe generated code or config
- output that causes downstream execution
Controls
- Least privilege for tools and tokens.
- Explicit trust boundaries between user instructions, system instructions, retrieved content, and tool output.
- Allowlist tool targets and file paths where possible.
- Human approval for irreversible or external mutations.
- Structured output validation before passing data to downstream tools.
- Regression tests for known attacks.
Deliverable
Produce a concise risk register with attack path, preconditions, impact, likelihood, evidence, and mitigation. Mark false positives explicitly.
1---2name: llm-agent-security-redteam3description: LLM and agent security red teaming with agentic-actions-auditor, supply-chain-risk-auditor, semgrep, codeql, and sarif-parsing. Use for prompt injection, tool misuse, data exfiltration, excessive agency, insecure output handling, supply-chain risk, retrieval poisoning, and OWASP LLM Top 10 style threat modeling.4---56# LLM Agent Security Red Team78Use this skill when an LLM or agent can read untrusted content, call tools, access private data, modify files, browse the web, or run code. The goal is to identify realistic misuse paths and reduce authority before deployment.910## Routing1112- Use `agentic-actions-auditor` for GitHub Actions workflows that run AI agents.13- Use `supply-chain-risk-auditor` for dependency and package takeover risk.14- Use `semgrep`, `codeql`, and `sarif-parsing` for static-analysis backed findings.15- Use this skill for the LLM-specific threat model and adversarial test plan.1617## Threat Model18191. List assets:20 - secrets, tokens, credentials21 - private files and repositories22 - customer/user data23 - write-capable tools and deployment paths242. List untrusted inputs:25 - web pages, docs, PDFs, issues, PR comments, emails, tickets, chat messages26 - retrieved chunks and tool outputs273. List agent powers:28 - filesystem writes29 - shell/code execution30 - network calls31 - browser actions32 - GitHub/Slack/Drive mutations334. Test failures:34 - prompt injection35 - cross-tool data exfiltration36 - overbroad tool arguments37 - hidden instructions in retrieved content38 - unsafe generated code or config39 - output that causes downstream execution4041## Controls4243- Least privilege for tools and tokens.44- Explicit trust boundaries between user instructions, system instructions, retrieved content, and tool output.45- Allowlist tool targets and file paths where possible.46- Human approval for irreversible or external mutations.47- Structured output validation before passing data to downstream tools.48- Regression tests for known attacks.4950## Deliverable5152Produce a concise risk register with attack path, preconditions, impact, likelihood, evidence, and mitigation. Mark false positives explicitly.