Skip to content
cccskills
FreePublished on GitHub

threat-modeling

威胁建模时使用。适用于新功能 / 新系统的安全设计评审。融合 STRIDE + Attack Tree + Microsoft SDL。

The English summary is being prepared. Showing the original description.

See how to install

Files included (2)

  • SKILL.md2.2 KB
  • templates/threat-model-template.md1.2 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

威胁建模(Threat Modeling)

适用场景

  • 新功能安全设计评审
  • 新系统架构安全评估
  • 重大变更前安全分析
  • 合规要求的威胁分析

核心原则

1. 在设计阶段做(不是上线后)
2. STRIDE 六类威胁全覆盖
3. 关注数据流(不只是组件)
4. 输出可操作的缓解措施
5. 定期更新(架构变更时)

STRIDE 模型

威胁含义示例缓解
Spoofing身份伪造伪造 JWT签名验证 + 过期
Tampering数据篡改修改请求体签名 + 校验
Repudiation抵赖否认操作审计日志
Information Disclosure信息泄露日志含密码脱敏 + 加密
Denial of Service拒绝服务大量请求限流 + CDN
Elevation of Privilege权限提升普通用户改 adminRBAC + 校验

工作流程

1. 画数据流图(DFD)
   - 外部实体 / 进程 / 数据存储 / 数据流
   ↓
2. 识别信任边界
   - 前端 ↔ 后端
   - 后端 ↔ 数据库
   - 内部 ↔ 第三方
   ↓
3. 对每个数据流应用 STRIDE
   ↓
4. 评估风险(概率 × 影响)
   ↓
5. 制定缓解措施
   ↓
6. 输出威胁模型文档

配套模板

  • templates/threat-model-template.md — DFD + STRIDE 分析 + 缓解措施

质量自检

□ DFD 完整(所有数据流)
□ 信任边界标注
□ STRIDE 六类全覆盖
□ 风险评估有依据
□ 缓解措施可执行
□ 与开发团队评审过

常见坑

  1. 只看组件不看数据流——漏传输层威胁
  2. 不标信任边界——不知道哪里需要校验
  3. 缓解措施太抽象——"加强安全"不可执行
  4. 做完不更新——架构变了模型没变
  5. 不与开发评审——开发不知道要做什么

与其他 skill 的协作

下游:
  code-security-review → 按威胁模型重点审查
  web-vulnerability → 按威胁模型重点测试
  auth-security-audit → 权限提升威胁
  security-report → 威胁模型作为报告输入

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

A/B 测试设计与分析时使用。适用于产品实验、功能验证、转化率优化。融合假设驱动 + 样本量计算 + 置信度判断。

The English summary is being prepared. Showing the original description.

zhaoxuya520/AI-Fullstack-Delivery-Workflow53Updated May 19, 2026

上线前业务方/产品方验收时使用。适用于功能交付确认、UAT、发布会签。融合 BDD Given-When-Then、Specification by Example、ATDD。

The English summary is being prepared. Showing the original description.

zhaoxuya520/AI-Fullstack-Delivery-Workflow53Updated May 19, 2026

设计无障碍可访问的界面时使用。适用于满足 WCAG 标准、键盘导航、屏幕阅读器支持。优先使用 WCAG 2.2 AA 级标准 + 键盘 + 焦点 + 对比度 + ARIA。

The English summary is being prepared. Showing the original description.

zhaoxuya520/AI-Fullstack-Delivery-Workflow53Updated May 19, 2026

实现可访问性(无障碍)时使用。覆盖 WCAG 2.2 AA / ARIA / 键盘导航 / 屏幕阅读器 / 颜色对比 / 焦点管理。融合 React Aria / Radix UI / Headless UI 实践 + axe-core 自动化测试。

The English summary is being prepared. Showing the original description.

zhaoxuya520/AI-Fullstack-Delivery-Workflow53Updated May 19, 2026

AI 模型部署时使用。适用于推理服务 / GPU / TensorRT / 监控 / 扩缩容。

The English summary is being prepared. Showing the original description.

zhaoxuya520/AI-Fullstack-Delivery-Workflow53Updated May 19, 2026

数据分析报告输出时使用。适用于业务分析报告、周报、专项分析、决策支持。融合洞察 + 建议 + 行动项。

The English summary is being prepared. Showing the original description.

zhaoxuya520/AI-Fullstack-Delivery-Workflow53Updated May 19, 2026

See all skills by zhaoxuya520

Report a problem with this skill