GitHub
security-privacydev-tools
Original source

Threat Composer — AWS 威脅建模工具生態系

Summary

AWS Labs 出品的威脅建模 (threat modeling) 工具生態系,幫助快速識別安全問題並制定應對策略。760 stars, Apache-2.0, TypeScript。

生態系組成

  • Web App(靜態網站,可自架或用 GitHub Pages demo)
  • AI CLI + MCP Server(用 Bedrock 多 agent 架構自動分析 codebase 產生威脅模型)
  • VS Code Extension(直接在 IDE 編輯 .tc.json)
  • Browser Extension(在 GitHub/GitLab 一鍵查看 .tc.json)

核心功能

  • Threat Grammar 結構化威脅描述語法
  • 架構圖 & 資料流圖支援
  • Assumptions 追蹤(連結到威脅和緩解措施)
  • Insights Dashboard(品質指標和改進建議)
  • Threat & Mitigation Packs(可複用的威脅/緩解模板庫)
  • 匯出格式:JSON, Markdown, DOCX, PDF
  • JSON 格式友善 Git 版控

AI CLI 用法

uv tool install --from "git+https://github.com/awslabs/threat-composer.git#subdirectory=packages/threat-composer-ai" threat-composer-ai
threat-composer-ai-cli /path/to/your/code

也提供 MCP Server,可整合 Claude Desktop / Kiro / Cline 等 AI 助手。

亮點