跳到正文
Skillpedia
安全11k · #11758

threat-model-visualize

它能做什么

这个技能会根据现有的威胁模型创建一个可视化探索工具,展示事情可能出错的方式,以及控制措施可以在哪里发挥作用。适合需要了解风险的应用团队和管理者。

适用场景

  • ✓当你希望把威胁模型以交互式架构图的形式查看时。
  • ✓当你想向管理层展示攻击如何发生、以及控制措施如何阻止攻击的时候。
  • ✓当你要求根据某个项目上一次扫描得出的威胁模型的时候。

技能链接

https://github.com/openai/codex-security/blob/main/plugins/codex-security/skills/threat-model-visualize/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/openai/codex-security/blob/main/plugins/codex-security/skills/threat-model-visualize/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请把账单服务上一次扫描的威胁模型可视化,方便管理团队了解攻击路径。”

每周 5 个新技能,1 分钟读完。

工作原理

AI 会找到现有的威胁模型及其最新评估,然后生成一个独立页面,展示架构和威胁路径。不确定的地方会被标记为假设,而不是已确认的发现。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Threat Model Visualize

Create a standalone explorer that shows application teams and leadership what can go wrong, how it could happen, why it matters, and where controls would stop or limit it. Use the shared workbench and role palette; do not use Mermaid or run a new scan.

A request such as “Visualize the threat model generated in the last scan of X” is sufficient. Resolve the target, latest assessment and snapshot. If the latest artifact is missing, disclose that before using an older fallback. The default input is the existing threat-model artifact, not an automatic import of a complete scan. Keep inputs immutable and do not silently combine snapshots. Do not inspect application code or invent topology, authority, controls, reachability or validation.

Capture source-supported deployment context: exposure, trust, tenant and process boundaries, identities, and conditional deployment assumptions. Do not treat repository defaults as proof of deployed configuration. Preserve uncertainty and the distinction between hypotheses, findings, declared controls and observed enforcement. For several explicitly supplied artifacts, pass one derived document to --assessment. Label verbatim excerpts with each source’s identity, snapshot and original finding status. Distinguish findings from hypotheses, identify local IDs, and preserve conflicting accounts and the original artifacts.

For a fresh candidate or regeneration, author a new view model; do not patch or copy a previous candidate model or HTML. Ordinary edits may reuse the existing model. Renderer-only polishing is a display update, not fresh generation.

1. Enumerate and validate the source

Complete this phase before planning any visualization, choosing display groupings or routes, assigning geometry, or authoring the explorer JSON. Save source-inventory.md in the workspace. Validate fidelity to the supplied assessment, not the application implementation; do not run a new assessment to fill gaps.

Record the assessment identity, exact file hash and scope. Give inventory rows semantic IDs and supporting source spans or exact quotations, without assigning visual node or edge IDs. Enumerate:

  • Components and roles: actors, inputs, application components, stores, external dependencies, trust boundaries, platform-specific instances and administrative contexts. Distinguish trusted operators, assumed compromise, controlled input, owned assets and enforcing components.
  • Relationships and capabilities: each supported caller → operation → receiver relationship, meaningful return, independently sufficient authority or entry condition, prerequisites and platform/deployment conditions. Enumerate alternatives per operation: an account session and an issued capability may each authorize the same operation. Preserve known logical capabilities when transport or order is unknown; do not import a prerequisite from another entry point.
  • Controls and qualifications: each protective mechanism → enforcing owner → constrained component → protected operation, with conditions and evidence. Record an unmapped enforcer explicitly; configuring or being subject to a restriction does not establish enforcement ownership. Classify existing mechanisms, proposals, security objectives, configuration behavior and caveats separately. Ownership, expanded permissions, disabled protection or documentation advice alone is not an existing safeguard.
  • Threat-model coverage: substantive threats, supplied findings, hypotheses and consequential configurations, linked to the relevant components, relationships and controls. Retain source confidence, potential impact and unresolved questions.

Review the inventory against the complete assessment before proceeding. Check that evidence supports the same object, caller, operation and owner; distinguish configuration delivery from protected operations and assets from their managers. Do not transfer a validation rule between different inputs or infer platform endpoints from a group label. Account for every substantive source concern; reconcile aliases and record contradictions without inventing a resolution. Correct unsupported assertions, misclassified controls and unexplained omissions now.

Finish the inventory with source-reconciliation corrections and unresolved source gaps. Keep later model-repair notes and review verdicts in correctness-review.md, not this source inventory. It is ready for composition when its claims are supported

常见问题

它会运行新的评估吗?

不会。它使用现有的威胁模型,不会进行新的安全评估。

如果缺少最新的威胁模型怎么办?

该技能会在使用较旧的备用版本之前进行说明。

它会自己编造系统结构吗?

不会。对于源码不支持的拓扑、控制措施或可达性,它不会虚构。

详情

作者的原始描述

Turn an existing threat model into an interactive architecture and threat-path explorer. Resolve simple requests for a target's last scan; do not perform a new assessment.

repo: openai/codex-security

热度

GitHub 星标
11k
排名
#11758
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能