Agent Skillscbrock84/headcount › threat-modeling

threat-modeling

GitHub

在系统设计或变更阶段识别潜在威胁,通过数据流分析、信任边界标记及STRIDE模型评估风险,确定缓解措施。用于安全评审前决策,避免上线后高昂修复成本,确保设计符合安全要求。

plugins/security/skills/threat-modeling/SKILL.md cbrock84/headcount

触发场景

设计新功能或系统时 涉及认证、数据处理或外部输入变更时 进行安全审查前 评估安全工作优先级时

安装

npx skills add cbrock84/headcount --skill threat-modeling -g -y
更多选项

非标准路径

npx skills add https://github.com/cbrock84/headcount/tree/main/plugins/security/skills/threat-modeling -g -y

不安装直接使用

npx skills use cbrock84/headcount@threat-modeling

指定 Agent (Claude Code)

npx skills add cbrock84/headcount --skill threat-modeling -a claude-code -g -y

安装 repo 全部 skill

npx skills add cbrock84/headcount --all -g -y

预览 repo 内 skill

npx skills add cbrock84/headcount --list

SKILL.md

Frontmatter
{
    "name": "threat-modeling",
    "description": "Identifies what could go wrong in a system before it is built or changed — the assets worth attacking, the entry points, the trust boundaries, and the controls that actually address the realistic threats. Use this when designing a feature or system, when a change touches authentication, data handling, payments, or external input, before a security review, or when deciding which security work is worth doing at all."
}

Threat modeling

Done at design time this is cheap and changes the design. Done after launch it produces a list of things that are expensive to fix, so the timing is most of the value.

Four questions, in order

1. What are we building? A diagram of the actual data flow — not the org chart, not the marketing architecture. Components, the data moving between them, and where each store lives. If nobody can draw it, that is the first finding.

Mark the trust boundaries: every point where data crosses from something you control to something you do not, or from one privilege level to another. Almost every real vulnerability lives on a boundary.

2. What can go wrong? Walk each boundary and each asset. A usable prompt set:

  • Spoofing — can someone claim to be another user, service, or system?
  • Tampering — can data be modified in transit, at rest, or in the client?
  • Repudiation — can someone deny an action, and would we be able to show otherwise?
  • Information disclosure — what leaks: to other users, to logs, to error messages, to the client bundle?
  • Denial of service — what is unbounded? Uploads, queries, retries, fan-out.
  • Elevation of privilege — can a user reach data or actions belonging to another tenant, role, or account?

Two that catch more real bugs than the classic list: what does the client enforce that the server does not, and what happens on the second attempt — replay, race, and double-submit.

3. What are we going to do about it? For each realistic threat: mitigate, transfer, avoid, or accept. Accepting is legitimate; accepting silently is not.

Prioritize by attacker effort against impact, not by how alarming it sounds. A trivially exploitable tenant-isolation bug outranks a theoretical timing attack every time.

4. Did we do a good job? Re-check the model when the design changes. A threat model that describes last quarter's architecture is worse than none, because it produces false confidence.

Scoping

Model per feature or per boundary, not per system. A whole-system model is too big to finish and too vague to act on.

Timebox it. An hour on a specific feature with the engineers who will build it beats a week-long exercise producing a document nobody reads.

Sources

references/sources.md in this skill lists the outside authorities that settle the questions here — what each one is authoritative for, and what you may do with it. Check them before answering on anything they cover, and cite what you used. Most are free to read and not free to reproduce; the use note on each is binding.

Never

  • Model the system as designed rather than as built. Ask what actually got shipped.
  • Assume internal traffic is trusted. That assumption is what turns one compromised service into an incident.
  • Accept "the framework handles that" without checking that it is configured to.

版本历史

  • 98d1c17 当前 2026-09-22 00:33

    新增来源目录功能,允许技能引用外部权威机构资料,并强制关联来源检查与可达性验证。

  • d58a7ee 2026-09-02 21:10

同 Skill 集合

plugins/corporate-strategy/skills/chief-strategy-officer/SKILL.md
plugins/corporate-strategy/skills/market-entry/SKILL.md
plugins/corporate-strategy/skills/mergers-and-acquisitions/SKILL.md
plugins/corporate-strategy/skills/portfolio-strategy/SKILL.md
plugins/corporate-strategy/skills/scenario-planning/SKILL.md
plugins/corporate-strategy/skills/strategic-alliances/SKILL.md
plugins/customer-experience/skills/chief-customer-officer/SKILL.md
plugins/customer-experience/skills/customer-onboarding-and-implementation/SKILL.md
plugins/customer-experience/skills/customer-success-management/SKILL.md
plugins/customer-experience/skills/escalation-management/SKILL.md
plugins/customer-experience/skills/self-service-and-knowledge/SKILL.md
plugins/customer-experience/skills/support-operations/SKILL.md
plugins/customer-experience/skills/voice-of-customer/SKILL.md
plugins/data-analytics/skills/ai-ml-governance/SKILL.md
plugins/data-analytics/skills/business-intelligence/SKILL.md
plugins/data-analytics/skills/chief-data-officer/SKILL.md
plugins/data-analytics/skills/data-engineering/SKILL.md
plugins/data-analytics/skills/data-governance/SKILL.md
plugins/data-analytics/skills/data-modeling/SKILL.md
plugins/demand-generation/skills/ai-search-optimization/SKILL.md
plugins/demand-generation/skills/app-store-optimization/SKILL.md
plugins/demand-generation/skills/experimentation/SKILL.md
plugins/demand-generation/skills/landing-page-cro-expert/SKILL.md
plugins/demand-generation/skills/lead-capture/SKILL.md
plugins/demand-generation/skills/lifecycle-messaging/SKILL.md
plugins/demand-generation/skills/listing-distribution/SKILL.md
plugins/demand-generation/skills/marketing-analytics/SKILL.md
plugins/demand-generation/skills/paid-advertising/SKILL.md
plugins/demand-generation/skills/programmatic-seo/SKILL.md
plugins/demand-generation/skills/seo-strategy/SKILL.md
plugins/executive/skills/ai-research-analyst/SKILL.md
plugins/executive/skills/business-growth-consultant/SKILL.md
plugins/executive/skills/chief-executive/SKILL.md
plugins/executive/skills/fundraising-and-investor-relations/SKILL.md
plugins/executive/skills/saas-idea-validator/SKILL.md
plugins/finance/skills/budgeting-and-forecasting/SKILL.md
plugins/finance/skills/capital-allocation/SKILL.md
plugins/finance/skills/capital-structure-and-covenants/SKILL.md
plugins/finance/skills/cost-accounting/SKILL.md
plugins/finance/skills/financial-modeling/SKILL.md
plugins/finance/skills/financial-reporting-and-close/SKILL.md
plugins/finance/skills/financial-statement-analysis/SKILL.md
plugins/finance/skills/internal-controls-and-audit/SKILL.md
plugins/finance/skills/revenue-recognition/SKILL.md
plugins/finance/skills/tax/SKILL.md
plugins/finance/skills/treasury-and-liquidity/SKILL.md
plugins/finance/skills/unit-economics/SKILL.md
plugins/it-operations/skills/backup-and-recovery/SKILL.md
plugins/it-operations/skills/chief-information-officer/SKILL.md
plugins/it-operations/skills/cloud-administration/SKILL.md

元信息

文件数
0
版本
98d1c17
Hash
cfd3dcfb
收录时间
2026-09-02 21:10

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-23 07:46
浙ICP备14020137号-1