openai/skills

security-threat-model

用真实系统入口和资产推演攻击路径

  • SKILL.md 已保存
  • 中文用法已整理
  • 安装与运行未实测
先判断是否解决你的问题

security-threat-model 是什么?

从实际仓库中提取运行组件、入口、信任关系和受保护资产,推演具体攻击路径并给出有条件的风险排序与缓解建议。它把运行时和CI/开发工具分开,最终形成针对仓库或目录的Markdown威胁模型。

中文说明由本站依据来源整理;英文原文保留在页面下方。

适合用在

  • 用户明确要求针对具体仓库或目录做威胁建模,需要列出信任边界、资产、攻击者能力、滥用路径和缓解措施。

这些情况不适合

  • 一般架构摘要、常规代码审查或非 AppSec 威胁建模任务;原文要求这些请求不要触发本 Skill。
按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

    打开本项目来源,核对 SKILL.md 及其引用的脚本和资料。

  2. 交给你正在用的 Agent

    在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。

  3. 确认识别,再做具体任务

    让 Agent 回报安装目录和识别到的名称 security-threat-model,然后按本页使用示例提供材料。

展开并复制给 Codex 的安装指令
发送给 Codex

安装并检查 security-threat-model

请在 Codex 的当前工作环境中安装并检查 security-threat-model 这个 Skill。

项目身份:openai/skills / security-threat-model
来源:https://github.com/openai/skills/blob/49f948faa9258a0c61caceaf225e179651397431/skills/.curated/security-threat-model/SKILL.md
已定位的源文件:skills/.curated/security-threat-model/SKILL.md

1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。
准备输入,再按步骤执行

装好以后,具体怎么用?

准备哪些材料

  • 明确提出威胁建模,提供仓库范围、使用方式、部署模型、外网暴露和身份权限信息。

会得到什么

  • 以仓库或目录名命名的-threat-model.md,含范围、证据、攻击路径、优先级与未解决问题。

实际使用顺序

  1. 从代码识别组件、数据流、存储和入口,将每个架构主张落到具体证据;未知部署条件保留为假设。
  2. 按实际攻击者能力构造滥用路径,说明受影响资产、已有控制、可能性和影响,不无限扩充理论威胁。
  3. 在最终报告前向用户核对影响排序的关键假设,再按references/prompt-template.md输出模型和具体缓解位置。
使用示例

从一个具体任务开始

本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。

安装并识别 Skill 后发送

复制一个具体任务

教学示例:用 security-threat-model 对我提供的文件上传服务做只读建模,范围只限运行时HTTP入口与文件处理。先读取路由、身份校验、存储和解析代码,给出数据流与关键假设,向我确认租户隔离、外网暴露和文件大小限制后再形成最终报告;不要修改或攻击服务。
预期结果

预期先得到有代码证据的模型草稿和关键问题,再依回答形成报告;本站未执行。

使用前先看这些限制

使用条件与边界

  • 威胁模型列的是可能攻击路径,不能把它等同于漏洞利用实测或完整渗透测试。
针对这个 Skill 的疑问

常见问题

为什么报告前还要确认部署条件?

公开服务、内部CLI和多租户系统的攻击者能力不同,部署和权限假设会直接改变风险排序。

与安全最佳实践审查有何区别?

最佳实践侧重语言框架与具体代码用法;威胁模型侧重跨组件入口、资产与攻击路径,两者证据范围不同。

需要核对时再展开原文

来源原文与资料状态

源文件
已保存 SKILL.md,抓取于 2026-11-16T12:36:35.145Z
中文使用说明
已针对下方源文件版本整理用途、用法和常见问题
安装与任务测试
本站未执行安装或任务测试
来源复核
本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料

skills/.curated/security-threat-model/SKILL.md · 抓取时间 2026-11-16T12:36:35.145Z

以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。

抓取成功不代表已完成安装或任务测试。

来源 description(原文)

Repository-grounded threat modeling that enumerates trust boundaries, assets, attacker capabilities, abuse paths, and mitigations, and writes a concise Markdown threat model. Trigger only when the user explicitly asks to threat model a codebase or path, enumerate threats/abuse paths, or perform AppSec threat modeling. Do not trigger for general architecture summaries, code review, or non-security design work.

查看源文件章节 / Source sections
  • 原文:Threat Model Source Code Repo
  • 快速开始 / Quick start
  • 工作流程 / Workflow
  • 原文:1) Scope and extract the system model
  • 原文:2) Derive boundaries, assets, and entry points
  • 原文:3) Calibrate assets and attacker capabilities
  • 原文:4) Enumerate threats as abuse paths
  • 原文:5) Prioritize with explicit likelihood and impact reasoning
  • 原文:6) Validate service context and assumptions with the user
  • 原文:7) Recommend mitigations and focus paths
  • 原文:8) Run a quality check before finalizing
  • 原文:Risk prioritization guidance (illustrative, not exhaustive)
  • 原文:References
原文:Threat Model Source Code Repo

Deliver an actionable AppSec-grade threat model that is specific to the repository or a project path, not a generic checklist. Anchor every architectural claim to evidence in the repo and keep assumptions explicit. Prioritizing realistic attacker goals and concrete impacts over generic checklists.

快速开始 / Quick start

1) Collect (or infer) inputs: - Repo root path and any in-scope paths. - Intended usage, deployment model, internet exposure, and auth expectations (if known). - Any existing repository summary or architecture spec. - Use prompts in `references/prompt-template.md` to generate a repository summary. - Follow the required output contract in `references/prompt-template.md`. Use it verbatim when possible.

原文:1) Scope and extract the system model

- Identify primary components, data stores, and external integrations from the repo summary. - Identify how the system runs (server, CLI, library, worker) and its entrypoints. - Separate runtime behavior from CI/build/dev tooling and from tests/examples. - Map the in-scope locations to those components and exclude out-of-scope items explicitly. - Do not claim components, flows, or controls without evidence.

原文:2) Derive boundaries, assets, and entry points

- Enumerate trust boundaries as concrete edges between components, noting protocol, auth, encryption, validation, and rate limiting. - List assets that drive risk (data, credentials, models, config, compute resources, audit logs). - Identify entry points (endpoints, upload surfaces, parsers/decoders, job triggers, admin tooling, logging/error sinks).

原文:3) Calibrate assets and attacker capabilities

- List the assets that drive risk (credentials, PII, integrity-critical state, availability-critical components, build artifacts). - Describe realistic attacker capabilities based on exposure and intended usage. - Explicitly note non-capabilities to avoid inflated severity.

原文:4) Enumerate threats as abuse paths

- Prefer attacker goals that map to assets and boundaries (exfiltration, privilege escalation, integrity compromise, denial of service). - Classify each threat and tie it to impacted assets. - Keep the number of threats small but high quality.

文件 SHA256:1283c0dd62a8104d9edda4583569b5d8510b4ddaa45120687c999250fd96bad2

仓库许可证记录:未提供;not-established,查看来源。

SKILL.md原文description · 2026-11-16T12:36:35.145Z

Repository-grounded threat modeling that enumerates trust boundaries, assets, attacker capabilities, abuse paths, and mitigations, and writes a concise Markdown threat model. Trigger only when the user explicitly asks to threat model a codebase or path, enumerate threats/abuse paths, or perform AppSec threat modeling. Do not trigger for general architecture summaries, code review, or non-security design work.

查看历史简介来源

历史收录数据

来源仓库openai/skills
Skill源路径skills/.curated/security-threat-model/SKILL.md

安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。

返回 Skills 目录,按任务继续筛选 · MCP与Skills教程与资源