/agent-toolkit-complete:threat-modelingfrom agent-toolkit-complete
Guides architecture-to-threat-model workflow using STRIDE augmented with agentic threats (prompt injection, tool poisoning, excessive agency). Produces risk-ranked mitigations and security acceptance criteria. Swarm-friendly, incremental.
Ships in agent-toolkit-complete. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Guide architecture → threat model → security review → security acceptance criteria. Produces a STRIDE table augmented with agentic-specific threats (prompt injection, tool poisoning, excessive agency, inter-agent trust), risk-ranked with mitigations and acceptance criteria.
Evidence-linked, portable, incremental. Architecture discovery reuses C4/Mermaid inputs (#369); outputs feed agentic-security-reviewer + owasp-agentic-review + security-reviewer.
Sources: Microsoft STRIDE (Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, Elevation of Privilege) + OWASP Threat Modeling + OWASP Agentic Security (prompt injection, tool poisoning, excessive agency, data leakage, insecure plugin/MCP). See https://learn.microsoft.com/en-us/azure/security/develop/threat-modeling-tool-threats and https://owasp.org/www-project-threat-model/ .
architect output), new data flow (user → agent → tool → external), new trust boundary (skill composition, MCP addition, swarm handoff)security-reviewer / owasp-agentic-review prioritizes mitigations| Input | Source | Required |
|---|---|---|
| Architecture diagram | architect / C4/Mermaid (#369) — docs/architecture/*.md, Mermaid C4Context/flowchart | Yes (or textual description for small scopes) |
| Assets | Code + docs: skills, agents, MCP registry, secrets, data stores | Yes |
| Trust boundaries | User ↔ agent, agent ↔ MCP, agent ↔ external host, inter-agent, skill composition | Yes |
| Data flows | audit-capability.py shell/network/MCP/hooks surface, registry YAML, hook configs | Yes |
| Actors | Users, agents (by persona), MCP servers, external services | Yes |
threat-model.md per references/threat-model-template.md: assets/boundaries/flows/actors → STRIDE + agentic threats table (severity, likelihood, impact, confidence, evidence) → mitigations → security acceptance criteriaarchitecture discovery changedagentic-security-reviewer consumes findings for OWASP review; security-reviewer for app-layer vulns| STRIDE | Meaning | Agentic extension | Evidence to check |
|---|---|---|---|
| S Spoofing | Impersonate user/agent/MCP | Identity spoofing (AGNT01), prompt hierarchy violation (AGNT06) | agents/*/AGENT.md identity, MCP auth.env, delegation tables |
| T Tampering | Modify data/code/instructions in transit | Tool poisoning (AGNT02), training-data/supply-chain poisoning (LLM03) | mcp/registry/*.yaml tool descriptions with imperative injection, capabilities/upstream.lock digests |
| R Repudiation | Deny action without audit trail | Missing output-handshake, Swarm handoff without logging | output-handshake gates, ops/swarm-handoff audit |
| I Information disclosure | Leak secrets/PII via tool output | Data leakage (AGNT04), sensitive info disclosure (LLM06), model theft (LLM10) | security.network_hosts, secret_storage, scans for ghp_, sk-, PII |
| D Denial of service | Exhaust tokens/compute | Model DoS (LLM04) — unbounded skill context, swarm fan-out | Skill token count, subagent fan-out limits, docs/research context audit |
| E Elevation of privilege | Gain permissions beyond least privilege | Excessive agency (LLM08), permission creep (AGNT05), insecure plugin design (LLM07) | approval.default, security.dangerous_permissions, composed skill chain |
Map each finding to STRIDE letter(s) + agentic IDs (LLM01–LLM10, AGNT01–AGNT06) where applicable. One finding can map to multiple STRIDE categories (e.g., tool poisoning = T + E).
git diff HEAD deltas in incremental mode). Enumerate: skills (skills/**), agents (agents/**), MCP servers (mcp/registry/*.yaml + templates), hooks, subagents, external hosts.Impact (who/what compromised) × Likelihood (Low/Med/High) × Confidence (High/Med/Low) → Severity Critical/High/Medium/Low (or Blocking/Major/Minor). Cite evidence: file:line, registry YAML path, audit-capability.py output, diagram node.mitigation (least-privilege, pin + provenance, sanitize, gate), residual risk, security acceptance criteria (testable, e.g., "tool descriptions contain no imperative injection via audit-capability.py clean"). Apply output-handshake before final artifact.threat-model.md previous version: keep unchanged findings, re-evaluate only changed assets/flows. For large systems, shard by trust boundary or swarm agent.| # | Asset / Flow (diagram ref) | Trust boundary | STRIDE | Agentic ID | Threat (observation, file:line) | Attack path (actor → boundary → asset) | Impact | Likelihood | Severity | Confidence | Mitigation | Residual | Acceptance criteria | Evidence |
|---|
Sort by Severity (Critical → Low), then Likelihood. Include Residual risk after mitigation.
git diff + previous threat-model.md (from repo docs/security/threat-model*.md or prior PR).status: unchanged; mark new/updated/removed for deltas; re-rank only affected rows.user ↔ agent vs agent ↔ MCP) and run parallel subagents; merge tables, dedupe by asset+STRIDE.| Need | Delegate to |
|---|---|
| System design, C4/Mermaid, ADRs | architect / platform-engineer (references/WORKSTATION_OPS.md) — provides Inputs architecture diagram |
| App/code vulns (OWASP Web) | security-reviewer / agents/security-reviewer — consumes threat model for prioritized review |
| Agentic / LLM / MCP / supply-chain | agentic-security-reviewer + agentic-security/owasp-agentic-review (LLM01-10 + AGNT01-06) — joint risk table |
| Full supply-chain surface | agentic-security/supply-chain-audit |
| MCP config/impl depth | agentic-security/mcp-audit |
| Output gate | output-handshake |
| Swarm decomposition | ops/swarm-handoff |
Sequence: architecture discovery → threat-modeling (this skill) → security review (owasp-agentic + security-reviewer) → security acceptance criteria.
file:line or registry path).Not assessed (requires manual review) where needed (per #380 a11y analog).references/threat-model-template.md — report templatemcp/registry/*.yaml + static Grep for shell/network/mcp/hooks (repo checkout/CI: scripts/audit-capability.vsh)architect / C4/Mermaid (#369) — discovery inputsWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ulises-jeremias/agent-toolkit --plugin agent-toolkit-complete118 skills in this plugin
/adrWHAT — Create and maintain Architecture Decision Records (ADRs) per the process. Covers when to write an ADR, required sections, review, and linking to epics/PRs. English for cross-team artifacts unless the user asks otherwise./agreementWHAT - Capture explicit agreements, terms, parties involved, dates, validity, and linked work items using the Agreement Document structure./architecture-diagramWHAT — Create architecture diagrams of real systems as one self-contained HTML page. Default mode is an interactive, Lucidchart-style explainer built from a JSON model: nested containers (cloud, cluster, namespaces), service boxes with brand icons, numbered flows the reader selects one at a time (user access, operator access over a VPN or tailnet, CI/GitOps deploy, secrets, observability, data), hover cards, an inventory and a "not there yet" list, validated by a build script. Poster mode keeps the static dark HTML+SVG template with a PNG/PDF export toolbar. Also exports Mermaid, D2, draw.io, SVG or PNG. Use for system, infrastructure, cloud, deployment, network, access-flow or security topology diagrams delivered as a shareable visual artifact rather than in-repo text./arenaRun a cross-vendor multi-model candidate bakeoff in isolated git worktrees, apply blinded cross-vendor judging, graft winning elements, and emit candidate-SHA-bound evidence receipts./assistantAssistant — on any repo, scan README→docs→AGENTS→CONTRIBUTING→PR templates→task runners→devcontainer→CI→configs before code; cite sources; prefer AGENTS.md for agent behavior; portable across Cursor/Copilot/Claude; use agent-toolkit CLI when needed./audio-productionAudio inspection, loudness, cleanup and DAW workflows — FFmpeg loudnorm/volumedetect for measurable processing, REAPER (via MCP) for real sessions, OBS for capture. Preserves originals and native .rpp projects; never enables recording or microphones silently.Other plugins' skills for the same job