Threat Modeling

作者 bobmatnyc718070a7d622MIT77 个星标收录于 2026年10月8日更新于 2026年10月8日仓库2个月前更新

Threat modeling workflow for software systems: scope, data flow diagrams, STRIDE analysis, risk scoring, and turning mitigations into backlog and tests. Use when designing new features, reviewing architecture changes, handling sensitive data, or hardening auth/payment/multi-tenant flows.

仅含说明Security
AI 生成的概览

运行轻量级 STRIDE 威胁建模工作坊,并将识别出的风险转化为缓解措施、工单和测试。

功能
引导六步威胁建模流程:界定系统与资产范围、绘制含信任边界的数据流图、对每个元素应用 STRIDE、评估影响与可能性,并将优先威胁转化为缓解措施。产出包括数据流图、威胁登记表和缓解计划,并落实为待办工单、滥用场景测试和 PR 检查清单项。参考文件提供工作坊议程、威胁目录和可复制模板。
适用场景
适用于设计新功能、评审架构变更、处理敏感数据,或加固身份验证、支付和多租户流程的场景。适合希望在实现前或实现过程中进行结构化安全评审的团队。
运行要求
无需工具或脚本,仅提供说明和参考文档。该技能不可由用户直接调用,且已禁用模型调用。

Threat Modeling (STRIDE)

Workflow

  1. Scope — Identify the system boundary, assets (PII, credentials, payments), and availability requirements (SLO/SLA).
  2. Data Flow Diagram — Map actors, entry points, data stores, and external dependencies. Mark trust boundaries (public internet → edge → internal → database → third-party).
  3. STRIDE per element — For each element in the diagram, walk through all six STRIDE categories (Spoofing, Tampering, Repudiation, Information disclosure, Denial of service, Elevation of privilege) and record threats.
  4. Risk score — Rate each threat by Impact (Low/Med/High) and Likelihood (Low/Med/High). Prioritize High-impact + Med/High-likelihood items first.
  5. Mitigate — Convert each prioritized threat into engineering tasks, verification tasks (tests, alerts), and operational controls (runbooks, access reviews).
  6. Tickets and tests — Create backlog items for mitigations and add abuse-case tests for critical flows. Add PR checklist items for ongoing verification.

Example: Threat Register Row

ElementSTRIDEThreatImpactLikelihoodMitigationOwnerStatus
API GatewaySpoofingStolen JWT reuse after session revocationHighMedShort-lived tokens (15 min TTL), refresh rotation, revocation list check on each requestSecurityOpen

This single row drives three artifacts: an engineering ticket (implement revocation-list middleware), a test (verify revoked token returns 401 within TTL window), and a PR checklist item (authz checks for new endpoints).

Validation Checkpoint

Before finalizing, verify completeness:

  • Every element in the data flow diagram has at least one STRIDE entry
  • All High-impact threats have an assigned owner and mitigation
  • Each mitigation maps to a backlog ticket or test case
  • Threat model doc includes assumptions and scope boundaries
  • PR checklist updated with new security requirements

Outputs (Definition of Done)

Produce a data flow diagram, a threat register, and a mitigation plan that becomes tickets and tests.

Load Next (References)

  • references/stride-workshop.md — step-by-step workshop agenda + DFD guidance
  • references/common-threats-and-mitigations.md — threat catalog with mitigations
  • references/templates.md — copy/paste templates for docs and tickets

来源与署名

来源:bobmatnyc/claude-mpm-skills位于universal/security/threat-modeling提交718070a

许可证: MIT

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架