Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问clear审计通过

threat-modeling-techniques威胁建模技术

Agent Skill

threat-modeling-techniques 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,224

周安装

51

GitHub Stars

15

下载量

408
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:threat-modeling-techniques(威胁建模技术)
来源仓库:https://github.com/nickcrew/claude-ctx-plugin
仓库路径:skills/threat-modeling-techniques
安装命令:
npx skills add https://github.com/nickcrew/claude-ctx-plugin --skill threat-modeling-techniques
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/nickcrew/claude-ctx-plugin --skill threat-modeling-techniques

简介

用于查找、检索和筛选威胁建模的具体技术手段与实施步骤。

  • 适合获取攻击树绘制、数据流图分析等实操型资料。
  • 可按系统架构类型(单体、微服务)匹配适用技术组合。
  • 安装命令:npx skills add https://github.com/nickcrew/claude-ctx-plugin --skill threat-modeling-techniques。
  • 部分高级技术可能需要特定领域知识才能正确应用。

SKILL.md

Threat Modeling Techniques

Systematic framework for identifying, analyzing, and mitigating security threats during system design and architecture phases using proven methodologies like STRIDE, attack trees, and risk assessment frameworks.

When to Use This Skill

  • Designing new systems or features with security requirements
  • Conducting security architecture reviews
  • Identifying attack vectors and threat scenarios
  • Assessing security risks before implementation
  • Creating security requirements and controls
  • Evaluating third-party integrations for security impact
  • Planning security testing strategies
  • Documenting security design decisions
  • Training teams on proactive security thinking
  • Supporting security compliance initiatives (SOC 2, ISO 27001)

Core Process

Five-Stage Threat Modeling Process:

  1. Define - Understand the system and create architecture diagrams
  2. Identify - Enumerate threats using structured methodologies (STRIDE, attack trees)
  3. Assess - Evaluate risk severity and likelihood (DREAD scoring)
  4. Mitigate - Design controls and countermeasures
  5. Validate - Review and test security controls

Quick Reference

TaskLoad reference
STRIDE: Spoofing Identityskills/threat-modeling-techniques/references/stride-spoofing.md
STRIDE: Tampering with Dataskills/threat-modeling-techniques/references/stride-tampering.md
STRIDE: Repudiationskills/threat-modeling-techniques/references/stride-repudiation.md
STRIDE: Information Disclosureskills/threat-modeling-techniques/references/stride-disclosure.md
STRIDE: Denial of Serviceskills/threat-modeling-techniques/references/stride-dos.md
STRIDE: Elevation of Privilegeskills/threat-modeling-techniques/references/stride-elevation.md
Attack Treesskills/threat-modeling-techniques/references/attack-trees.md
Data Flow Diagrams (DFD)skills/threat-modeling-techniques/references/data-flow-diagrams.md
DREAD Risk Scoringskills/threat-modeling-techniques/references/dread-scoring.md
Mitigation Strategiesskills/threat-modeling-techniques/references/mitigation-strategies.md
Tools & Processskills/threat-modeling-techniques/references/tools-and-process.md

Core Concepts

STRIDE Methodology

STRIDE categorizes threats into six types:

  • Spoofing: Pretending to be someone/something else (authentication bypass, credential theft)
  • Tampering: Malicious modification of data (MITM attacks, data corruption)
  • Repudiation: Denying actions without proof (lack of audit trails)
  • Information Disclosure: Exposing sensitive data (data leaks, verbose errors)
  • Denial of Service: Making systems unavailable (resource exhaustion, DDoS)
  • Elevation of Privilege: Gaining unauthorized capabilities (privilege escalation, IDOR)

Apply STRIDE to:

  • Each component in data flow diagrams
  • Every trust boundary crossing
  • All data stores and processes
  • External integrations and APIs

Attack Trees

Hierarchical diagrams showing attack paths from goals to methods:

[Root: Attack Goal]
    |
    +-- [OR] Method 1 (alternative paths)
    |       |
    |       +-- [AND] Required Step 1.1
    |       +-- [AND] Required Step 1.2
    |
    +-- [OR] Method 2 (alternative paths)

Use attack trees to:

  • Visualize attack scenarios
  • Identify easiest attack paths
  • Assign attributes (cost, skill, detection likelihood)
  • Prioritize mitigations for high-risk paths

DREAD Risk Scoring

DREAD quantifies threat severity (each criterion scored 0-10, average = risk score):

  • Damage Potential: How much damage if exploited?
  • Reproducibility: How easy to reproduce?
  • Exploitability: How easy to exploit?
  • Affected Users: How many users affected?
  • Discoverability: How easy to discover?

Risk Levels:

  • 7.1-10.0: Critical (immediate action)
  • 5.1-7.0: High (next sprint)
  • 3.1-5.0: Medium (upcoming releases)
  • 0.0-3.0: Low (backlog)

Trust Boundaries

Lines separating different trust levels:

  • Network: Internet → DMZ → Internal
  • Process: User Mode → Kernel, Container → Host
  • User: Anonymous → Authenticated → Admin

At each boundary, verify:

  • Authentication required?
  • Authorization checks enforced?
  • Data encrypted?
  • Inputs validated?
  • Actions logged?

Practical Workflow

1. Scope Definition (30 min)

  • Identify system components in scope
  • Define trust boundaries
  • List assets requiring protection
  • Identify compliance requirements

2. Architecture Decomposition (1 hour)

  • Create data flow diagrams (DFDs)
  • Document external dependencies
  • Identify authentication/authorization points
  • Map data storage locations

3. Threat Identification (1-2 hours)

  • Apply STRIDE to each DFD element
  • Create attack trees for high-value assets
  • Brainstorm threat scenarios with team
  • Use threat modeling tools for suggestions

4. Risk Assessment (1 hour)

  • Apply DREAD scoring to each threat
  • Prioritize threats by risk score
  • Consider business context and compliance
  • Identify quick wins vs. long-term efforts

5. Mitigation Planning (1 hour)

  • Design security controls (eliminate, reduce, transfer, accept)
  • Document mitigation strategies
  • Create security requirements (SEC-### format)
  • Assign ownership for implementation

6. Documentation (30 min)

  • Export threat model diagrams
  • Create security requirements document
  • Document risk acceptance decisions
  • Share with stakeholders

Common Mistakes

Avoid:

  • Threat modeling too late (after implementation complete)
  • Focusing only on external threats (ignore insider threats)
  • Creating static threat models (never updating them)
  • Over-complicating diagrams (too much detail)
  • Ignoring low-likelihood, high-impact threats
  • Failing to document assumptions and decisions
  • Not following through on mitigations

Best Practices

Team Involvement:

  • Developers: Implementation details, code-level threats
  • Architects: System design, integration points
  • Security Team: Threat expertise, attack scenarios
  • Operations: Deployment, monitoring, incident response
  • Product Owners: Business impact, risk acceptance decisions

Process Integration:

  • Design phase: Threat model before implementation
  • Development: Implement controls, create security tests
  • Deployment: Verify controls, enable monitoring
  • Maintenance: Update model when features change

Tools

Microsoft Threat Modeling Tool: Visual DFD editor, automated STRIDE threat generation OWASP Threat Dragon: Open source, cross-platform, web and desktop versions IriusRisk: Commercial platform, DevSecOps integration, compliance mapping ThreatModeler: Collaborative, cloud architecture support

Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

27.23%
按下载量换算111

Antigravity

24.23%
按下载量换算99

OpenCode

15.55%
按下载量换算63

Gemini CLI

12.95%
按下载量换算53

Codex

7.31%
按下载量换算30

windsurf

3.44%
按下载量换算14

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills