security-requirement-extraction
できること
このツールは、セキュリティ上の脅威に関するアイデアを、システムが従うべき明確で実行可能なルールに変換するのに役立ちます。脅威分析を、実行可能なセキュリティ要件に変えます。
使う場面
- ✓脅威モデルを要件に変換するとき。
- ✓セキュリティを重視したユーザーストーリーを書くとき。
- ✓セキュリティを検証するためのテストケースを作成するとき。
スキルのリンク
https://github.com/wshobson/agents/blob/main/plugins/security-scanning/skills/security-requirement-extraction/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“次の脅威をセキュリティ要件に変換してください:「顧客データへの不正アクセス」と「機密情報の漏えい」。”
毎週5つの新しいスキル。1分で読めます。
仕組み
ツールは特定された脅威とビジネス上の背景を分析し、具体的な要件を生成します。要件は、システムが行うべきこと、どのように動作すべきか、制約事項のいずれかに分類され、トレーサビリティや優先度などの重要な詳細も追加されます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Security Requirement Extraction
Transform threat analysis into actionable security requirements.
When to Use This Skill
- Converting threat models to requirements
- Writing security user stories
- Creating security test cases
- Building security acceptance criteria
- Compliance requirement mapping
- Security architecture documentation
Core Concepts
1. Requirement Categories
Business Requirements → Security Requirements → Technical Controls
↓ ↓ ↓
"Protect customer "Encrypt PII at rest" "AES-256 encryption
data" with KMS key rotation"
2. Security Requirement Types
| Type | Focus | Example |
|---|---|---|
| Functional | What system must do | "System must authenticate users" |
| Non-functional | How system must perform | "Authentication must complete in <2s" |
| Constraint | Limitations imposed | "Must use approved crypto libraries" |
3. Requirement Attributes
| Attribute | Description |
|---|---|
| Traceability | Links to threats/compliance |
| Testability | Can be verified |
| Priority | Business importance |
| Risk Level | Impact if not met |
Templates and detailed worked examples
Full template library lives in references/details.md. Read that file when you need concrete templates for this skill.
Best Practices
Do's
- Trace to threats - Every requirement should map to threats
- Be specific - Vague requirements can't be tested
- Include acceptance criteria - Define "done"
- Consider compliance - Map to frameworks early
- Review regularly - Requirements evolve with threats
Don'ts
- Don't be generic - "Be secure" is not a requirement
- Don't skip rationale - Explain why it matters
- Don't ignore priorities - Not all requirements are equal
- Don't forget testability - If you can't test it, you can't verify it
- Don't work in isolation - Involve stakeholders
よくある質問
セキュリティ要件とは何ですか?
脅威に基づいて、システムがどのように情報を保護し、安全に動作しなければならないかを定める具体的なルールです。
要件を脅威にひも付ける(トレーサビリティ)ことが重要なのはなぜですか?
作成したすべてのセキュリティルールに明確な目的があり、特定されたリスクに直接結び付いていることを保証できます。不要な要件や抜けている要件を防ぐためにも重要です。
機能的なセキュリティ要件と非機能的なセキュリティ要件の違いは何ですか?
機能要件は、安全であるためにシステムが何をしなければならないかを定めます(例:ユーザーを認証する)。非機能要件は、セキュリティに関してシステムがどのように動作しなければならないかを定めます(例:認証を高速に行う)。
詳細
作者による元の説明
Derive security requirements from threat models and business context. Use when translating threats into actionable requirements, creating security user stories, or building security test cases.
repo: wshobson/agents
人気
- GitHubのスター
- 41k
- ランキング
- #6780
- ライセンス
- MIT
- 更新日
- 2026/10/15
コメント
- …
このリポジトリの他のスキル
screen-reader-testing
41kエージェントにスクリーンリーダーを使ってWebサイトをテストさせ、アクセシビリティを確認します。
wcag-audit-patterns
41kエージェントがWebサイトのアクセシビリティを監査し、WCAGガイドラインに沿って問題を修正できるようにします。
multi-reviewer-patterns
41kエージェントが複数のコードレビューを並行して調整できるようにします。指摘事項の重複を排除し、レポートにまとめます。
parallel-debugging
41kエージェントが並行調査と根本原因分析を使って、複雑な問題をデバッグできるようにします。
似ているスキル
reverse-engineer-anything
422kREAツールを使って、出荷済みのアプリやパッケージの中身を調べ、機能の説明、版の比較、再構築の手順をエージェントが支援します。
1password
394k1Password CLIをセットアップし、サインインして、秘密情報の値を会話に表示せずに読み取ったり注入したりするようエージェントを支援します。
healthcheck
394kOpenClawを動かすコンピューターやサーバーを、SSH、ファイアウォール、更新、バックアップなどのセキュリティリスクについて監査し、安全な修正案を提案するようエージェントを支援します。