Threat Modelingのロゴ

Threat Modeling

コミュニティ
ulises-jeremias
threat-modeling

STRIDE + agentic threat modeling — architecture discovery → assets/trust boundaries/data flows/actors → STRIDE + agentic threats → risk-ranked mitigations → incremental review → security acceptance criteria. Swarm-friendly.

概要

公開者ulises-jeremias
リポジトリagent-toolkit
スキル名threat-modeling
スター
20
フォーク
5
同梱ファイル
1
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    ulises-jeremiasがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Threat Modeling」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/ulises-jeremias/agent-toolkit/tree/main/plugins/agent-toolkit-complete/skills/threat-modeling
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ulises-jeremias/agent-toolkit.git /tmp/agent-toolkit
mkdir -p .claude/skills
cp -r /tmp/agent-toolkit/plugins/agent-toolkit-complete/skills/threat-modeling .claude/skills/threat-modeling
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでThreat Modelingを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にThreat Modelingを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Threat Modelingは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Threat Modeling — STRIDE + Agentic Threats

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/ .

When to use

  • New system/C4 design (architect output), new data flow (user → agent → tool → external), new trust boundary (skill composition, MCP addition, swarm handoff)
  • Before security-reviewer / owasp-agentic-review prioritizes mitigations
  • On architecture change — incremental mode re-runs only on deltas

Inputs

InputSourceRequired
Architecture diagramarchitect / C4/Mermaid (#369) — docs/architecture/*.md, Mermaid C4Context/flowchartYes (or textual description for small scopes)
AssetsCode + docs: skills, agents, MCP registry, secrets, data storesYes
Trust boundariesUser ↔ agent, agent ↔ MCP, agent ↔ external host, inter-agent, skill compositionYes
Data flowsaudit-capability.py shell/network/MCP/hooks surface, registry YAML, hook configsYes
ActorsUsers, agents (by persona), MCP servers, external servicesYes

Outputs

  • 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 criteria
  • Incremental diff when architecture discovery changed
  • Handoff: agentic-security-reviewer consumes findings for OWASP review; security-reviewer for app-layer vulns

STRIDE + agentic checklist

STRIDEMeaningAgentic extensionEvidence to check
S SpoofingImpersonate user/agent/MCPIdentity spoofing (AGNT01), prompt hierarchy violation (AGNT06)agents/*/AGENT.md identity, MCP auth.env, delegation tables
T TamperingModify data/code/instructions in transitTool poisoning (AGNT02), training-data/supply-chain poisoning (LLM03)mcp/registry/*.yaml tool descriptions with imperative injection, capabilities/upstream.lock digests
R RepudiationDeny action without audit trailMissing output-handshake, Swarm handoff without loggingoutput-handshake gates, ops/swarm-handoff audit
I Information disclosureLeak secrets/PII via tool outputData leakage (AGNT04), sensitive info disclosure (LLM06), model theft (LLM10)security.network_hosts, secret_storage, scans for ghp_, sk-, PII
D Denial of serviceExhaust tokens/computeModel DoS (LLM04) — unbounded skill context, swarm fan-outSkill token count, subagent fan-out limits, docs/research context audit
E Elevation of privilegeGain permissions beyond least privilegeExcessive 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).

Workflow

  1. Discover scope: Identify assets + trust boundaries + data flows + actors from architecture diagram (or git diff HEAD deltas in incremental mode). Enumerate: skills (skills/**), agents (agents/**), MCP servers (mcp/registry/*.yaml + templates), hooks, subagents, external hosts.
  2. Enumerate threats: For each asset/flow/boundary, apply STRIDE + agentic checklist above. Ask per element: who can spoof? what can be tampered? what lacks repudiation? what leaks? what DoS? what elevates? Add agentic prompts: can tool description inject? can MCP exfiltrate? can agent over-act?
  3. Risk-rank: Score 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.
  4. Mitigate + acceptance criteria: Per finding: 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.
  5. Incremental review: On architecture change, diff threat-model.md previous version: keep unchanged findings, re-evaluate only changed assets/flows. For large systems, shard by trust boundary or swarm agent.

Risk table shape

#Asset / Flow (diagram ref)Trust boundarySTRIDEAgentic IDThreat (observation, file:line)Attack path (actor → boundary → asset)ImpactLikelihoodSeverityConfidenceMitigationResidualAcceptance criteriaEvidence

Sort by Severity (Critical → Low), then Likelihood. Include Residual risk after mitigation.

Incremental mode

  • Input: git diff + previous threat-model.md (from repo docs/security/threat-model*.md or prior PR).
  • Behavior: Carry forward findings for unchanged elements with status: unchanged; mark new/updated/removed for deltas; re-rank only affected rows.
  • Swarm-friendly: Split large architectures by trust boundary (e.g., user ↔ agent vs agent ↔ MCP) and run parallel subagents; merge tables, dedupe by asset+STRIDE.

Collaboration

NeedDelegate to
System design, C4/Mermaid, ADRsarchitect / 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-chainagentic-security-reviewer + agentic-security/owasp-agentic-review (LLM01-10 + AGNT01-06) — joint risk table
Full supply-chain surfaceagentic-security/supply-chain-audit
MCP config/impl depthagentic-security/mcp-audit
Output gateoutput-handshake
Swarm decompositionops/swarm-handoff

Sequence: architecture discovery → threat-modeling (this skill) → security review (owasp-agentic + security-reviewer) → security acceptance criteria.

Anti-patterns

  • Do not hallucinate STRIDE findings without evidence (cite file:line or registry path).
  • Do not collapse STRIDE into single category — one flow often maps to S+T+E.
  • Do not claim full coverage from automated checks alone — mark Not assessed (requires manual review) where needed (per #380 a11y analog).
  • Do not run full model on every file change — use incremental mode.

References

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Threat Modeling」では何ができますか?

STRIDE + agentic threat modeling — architecture discovery → assets/trust boundaries/data flows/actors → STRIDE + agentic threats → risk-ranked mitigations → incremental review → security acceptance criteria. Swarm-friendly.

TypingMindでThreat Modelingを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Threat Modelingはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにThreat Modelingをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/ulises-jeremias/agent-toolkit/tree/main/plugins/agent-toolkit-complete/skills/threat-modelingを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Threat Modelingを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Threat Modelingで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもThreat Modelingを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Threat Modeling」は無料ですか?

はい。ulises-jeremiasがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇