Skip to main content

threat-modelling

Analyse repositories and deployed cloud infrastructure to produce STRIDE-based threat model documents with Mermaid architecture diagrams, prioritised threats, and recommendations. Use when a user asks to create a threat model, identify threats, assess attack surfaces, review an existing threat model, or update a threat model after system changes.

소스 정보

저장소
willvelida/code-minions
최근 소스 활동
2026년 2월 12일 08:24
감지된 SKILL.md 언어
영어
스타
23
포크
3

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
9 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
threat-modelling
description
Analyse repositories and deployed cloud infrastructure to produce STRIDE-based threat model documents with Mermaid architecture diagrams, prioritised threats, and recommendations. Use when a user asks to create a threat model, identify threats, assess attack surfaces, review an existing threat model, or update a threat model after system changes.
license
MIT
allowed-tools
Bash
# Threat Modelling ## Overview This skill produces threat model documents by analysing codebases, infrastructure-as-code, and live cloud resources. It follows the [STRIDE framework](https://learn.microsoft.com/en-us/training/modules/tm-use-a-framework-to-identify-threats-and-find-ways-to-reduce-or-eliminate-risk/) and the [Microsoft Threat Modeling Fundamentals](https://learn.microsoft.com/en-us/training/paths/tm-threat-modeling-fundamentals/) four-phase approach: Design, Break, Fix (recommendations only), and Verify. **This skill produces threat models. It does NOT implement fixes or perform penetration testing.** ## Capabilities | Capability | Action | Description | |------------|--------|-------------| | Analyse Repository | `actions/analyse-repository.md` | Scan codebase and IaC to map architecture and confirm a data flow diagram | | Assess Infrastructure | `actions/assess-infrastructure.md` | Query live cloud resources via MCP servers to map architecture and confirm a data flow diagram | | Generate Threat Model | `actions/generate-threat-model.md` | Apply STRIDE to a confirmed diagram, produce threat model diagram and document | | Review Threat Model | `actions/review-threat-model.md` | Evaluate an existing threat model for completeness and accuracy | | Update Threat Model | `actions/update-threat-model.md` | Revise an existing threat model based on system changes | ## Standards | Standard | File | Description | |----------|------|-------------| | STRIDE Framework | `standards/stride-framework.md` | STRIDE threat categories and identification guidance | | Document Template | `standards/document-template.md` | Threat model document structure and Mermaid diagram format | | Checklist | `standards/checklist.md` | Consolidated compliance and quality checklist | ## Principles ### 1. Analyse, Never Fix This skill identifies and documents threats. It recommends mitigations but **never implements fixes** itself. The output is a document, not a code change. ### 2. Confirm Before Proceeding Always confirm the architecture diagram with the user before identifying threats. After threat identification, work with the user to prioritise, resolve, or remove items from the model. ### 3. Follow STRIDE Systematically Apply all six STRIDE categories to every component and data flow. Do not skip categories — document "No threats identified" where appropriate rather than omitting the analysis. ### 4. Cloud-Agnostic When assessing deployed infrastructure, detect available MCP servers or ask the user which cloud provider to query. Do not assume a specific cloud platform. ### 5. Prioritise by Risk All identified threats must be prioritised. Use a consistent risk-rating approach combining likelihood and impact so the user can focus on what matters most. ## Scope Boundaries | In Scope | Out of Scope | |----------|-------------| | Repository and IaC analysis | Implementing security fixes | | Live cloud infrastructure assessment via MCP | Penetration testing | | STRIDE-based threat identification | Security patching | | Architecture diagrams (Mermaid) | Code vulnerability scanning | | Threat prioritisation with user | Automated remediation | | Mitigation recommendations | Compliance auditing | | Reviewing existing threat models | | | Updating existing threat models | | ## Usage 1. Load this skill manifest 2. Identify the required capability (analyse, assess, review, or update) 3. Load the bundled standards from `standards/` 4. Execute the action following `actions/<capability>.md` ## References - [Microsoft Threat Modeling Fundamentals](https://learn.microsoft.com/en-us/training/paths/tm-threat-modeling-fundamentals/) - [STRIDE Framework](https://learn.microsoft.com/en-us/training/modules/tm-use-a-framework-to-identify-threats-and-find-ways-to-reduce-or-eliminate-risk/) - [Threat Modeling Phases](https://learn.microsoft.com/en-us/training/modules/tm-introduction-to-threat-modeling/1b-threat-modeling-phases/) - [Data-Flow Diagram Elements](https://learn.microsoft.com/en-us/training/modules/tm-create-a-threat-model-using-foundational-data-flow-diagram-elements/) - [Prioritise Issues and Apply Security Controls](https://learn.microsoft.com/en-us/training/modules/tm-prioritize-your-issues-and-apply-security-controls/)
GitHub에서 보기