Derive Security From Riskのロゴ

Derive Security From Risk

コミュニティ
andreaswasita
derive-security-from-risk

明示された脅威から、セキュリティ要件を導き出します。

Add to TypingMind

概要

公開者andreaswasita
リポジトリcopilot-agents-dojo
スキル名derive-security-from-risk
スター
54
フォーク
15
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/andreaswasita/copilot-agents-dojo.git /tmp/copilot-agents-dojo
mkdir -p .claude/skills
cp -r /tmp/copilot-agents-dojo/skills/derive-security-from-risk .claude/skills/derive-security-from-risk
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Derive Security From Risk

Turns a ratified business driver or functional requirement — together with a named threat — into a Security Requirement (SR) the gate can verify. This skill does NOT propose generic controls and does NOT parent SRs to unspecified parent risks; every SR names the obligation or threat it satisfies.

When to Use

  • A BR-* or FR-* exists for the engagement and processes regulated data, money, identity, or controlled access.
  • A threat modelling session (STRIDE, LINDDUN, attack tree) has produced a concrete threat the architecture must mitigate.
  • A compliance obligation (PCI, HIPAA, APRA CPS 234, GDPR, ISO 27001 Annex A) maps to a control the design must enforce.
  • NOT when nobody can name the threat yet — run a threat-modelling session first; do not derive a control to look productive.

Prerequisites

  • The parent BR-* or FR-* exists in requirements/<engagement>/ and is ratified.
  • A named threat or obligation is recorded in requirements/<engagement>/threats/<threat-id>.md (free-form, but the SR body must cite it).
  • spec/artifact-schema.md is the contract for SR frontmatter.

If no named threat exists, stop. The TOGAF red thread breaks the moment a control mitigates a threat nobody named.

How to Run

bash
bash scripts/verify-traceability.sh requirements/<engagement>
# create requirements/<engagement>/SR/SR-NNN.md
bash scripts/verify-traceability.sh requirements/<engagement>

Quick Reference

ActionToolNotes
Read parent BR/FRviewGet exact id.
Read threat recordviewThe threat ID goes in the SR body.
Write SRcreateFrontmatter per schema; measurable: true.
Verify lineagebash scripts/verify-traceability.shMust pass before commit.

Example SR frontmatter:

yaml
---
id: SR-003
layer: SR
title: PII masking before persistence
parent_ids: [BR-001, FR-002]
owner: security.lead@example.com
measurable: true
ratified_by: ""
target: "Zero unmasked PII fields in storage; verified by daily DLP scan."
derivation_skill: derive-security-from-risk
tags: [pii, masking, data-protection, threat-T03]
---

Procedure

Step 1: Assess

  • Read the parent artifact with view. Confirm the data classification (public / internal / confidential / regulated) is stated.
  • Read the threat record. Confirm it names a threat actor, a target asset, and a damaging outcome. A "threat" of "users might do something bad" is not a threat — stop.

Step 2: Derive

For each named threat or obligation, produce one SR with:

  • A control statement that names what the system MUST or MUST NOT do (RFC 2119 register, not prose).
  • A measurable target: a scan, a metric, an audit query, an attestation cadence. If the control cannot be measured the gate rejects it.
  • A traceable obligation: cite the threat ID or the regulation clause in the body. The agent never invents the obligation — it cites one.

Step 3: Link

  • parent_ids includes the affected BR-* and/or FR-*. SRs MAY also parent to an NFR-* when the control constrains an existing quality attribute (e.g. an availability SR for a fraud-detection service).
  • derivation_skill: derive-security-from-risk is mandatory.

Step 4: Confirm

bash
bash scripts/verify-traceability.sh requirements/<engagement>

Must exit 0. Then regenerate the RTM:

bash
bash scripts/gen-rtm.sh requirements/<engagement>

Pitfalls

  • DO NOT emit a generic "encrypt everything" SR with no threat cited. Generic controls produce generic audits and miss the actual risk.
  • DO NOT parent an SR to a threat record directly — the threat is the justification (cited in the body); the parent is always a ratified requirement.
  • DO NOT mark measurable: true without defining how it is measured. The gate cannot tell, but the auditor can.
  • DO NOT ratify the SR from the agent. The Security Architect (or a human approver) sets ratified_by after review.
  • DO NOT write an SR that mitigates a threat without an owner. An unowned control is an unowned control failure six months from now.

Verification

  • SR-*.md filename equals its id.
  • parent_ids resolves to ratified BR-*/FR-*/NFR-*.
  • Body cites a named threat ID or a specific regulatory clause.
  • target describes how the control is measured.
  • bash scripts/verify-traceability.sh requirements/<engagement> exits 0.
  • bash scripts/verify.sh passes the full gate.

よくある質問

AIスキル「Derive Security From Risk」では何ができますか?

明示された脅威から、セキュリティ要件を導き出します。

TypingMindでDerive Security From Riskを使うメリットは何ですか?

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

TypingMindにDerive Security From Riskをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/andreaswasita/copilot-agents-dojo/tree/main/skills/derive-security-from-riskを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Derive Security From Riskを使えるAIモデルはどれですか?

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

Derive Security From Riskで使えるAIモデルの数に制限はありますか?

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

AIスキル「Derive Security From Risk」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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