omh-application-threat-model
它能做什么
它把系统的各个部分和数据流转化为威胁模型,包括资产、攻击路径、控制措施和安全测试。适合规划如何保护应用的开发者和安全审查人员。
适用场景
- ✓当你正在设计新系统,并希望尽早发现攻击路径时。
- ✓当你需要为涉及敏感数据的架构制定威胁模型时。
- ✓当你想知道哪项安全测试能证明每个控制措施有效时。
技能链接
https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-application-threat-model/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请从我们支付服务的组件和数据流开始,为它建立一个威胁模型。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会询问组件图和数据流,然后列出资产、信任边界、攻击场景和控制措施。每项控制措施都会配以一个能证明其有效的测试。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Application Threat Model
This is an OMH application-threat-model workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).
Why This Exists
application-threat-model exists because the nearest neighbour does not merely miss this request. security-safety-review maps the agent's own prompt, tool, credential, and dependency surface, so an application threat-model request came back as an agent tool inventory under a near-identical name — a confident wrong artifact rather than a miss, in the one domain where that costs most.
Do Not Use When
- The subject is the agent's own prompts, tools, files, credentials, dependencies, or destructive actions; use
omh-security-safety-review, which maps that runtime surface. - The user wants defects found in a diff or a file; use
omh-code-review. - The user asks whether a release is ready across rollout, rollback, and observability; use
omh-production-audit. - The user asks which commands prove a merge is safe; use
omh-verification-gate. - The user asks for a contractual or regulatory obligation rather than an attacker; use
omh-legal-compliance-review.
Examples
Good example:
- Prompt: build a threat model for our payment service architecture
- Expected behavior: Prepare application_threat_model/v1: ask for the component map and data flows, register card data and settlement records as assets, mark the merchant API edge and the PSP callback as trust boundaries, derive scenarios per boundary, decide a control for each, and name the test that fails when the control is removed.
- Why: The subject is an application the user operates, and the goal needs assets, boundaries, scenarios, controls, and tests.
Bad example:
- Prompt: application-threat-model check whether this agent can be prompt-injected through its file tool
- Expected behavior: Route to
security-safety-review: prompts, tools, and credentials are the agent's runtime surface, not an application this workflow models. - Why: The two surfaces share vocabulary and nothing else; modeling the agent's runtime here is how the artifacts get confused.
Completion Checklist
- Every asset carries a data class and one named loss; every boundary names what crosses it and what authenticates the crossing.
- Every scenario resolves to mitigate, transfer, accept, or eliminate, with an owner.
- Every mitigating control carries a security test and the observable that fails without it.
- Controls read deployed, planned, or
unverified; none is inferred from the architecture description. - Residual risk is listed, and the model is not offered as a scan, a penetration test, or an attestation.
Recovery Notes
- If the architecture is not described, ask for the component map and the data flows before modeling; never substitute a generic checklist for the real system.
- If a scenario has no boundary and no asset, drop it with the reason rather than carrying an unreachable threat.
- If the user asks for exploit code, give the precondition and the detection signal instead, then hand remediation to an executor.
- If the request turns out to be about the agent's own prompts, tools, or credentials, stop and hand it to
security-safety-review.
When to Use
Use when Hermes must model the security of an application, service, or deployed system the user operates: which assets are worth taking, where trust changes hands, how an attacker reaches each asset, which control stops them, and which security test fails when that control is removed. The subject is the modeled system, never the agent's own runtime.
Strong routing signals: `application-threat-model`, `application threat model`, `threat model`, `threat modeling`, `threat modelling`, `threat modeling session`, `threat modeling workshop`, `security threat model`, `build a threat model`, `model the threats`, `threat scenarios`, `stride analysis`, `stride model`, `trust boundary`, `trust boundaries`, `attack scenario`, `attack scenarios`, `attack tree`, `attack trees`, `abuse case`, `abuse cases`, `security design review`, `security architecture review`, `architecture security review`, `how would an attacker`, `how could an attacker`, `what could an attacker do`, `attacker perspective`
Catalog Metadata
Category: review
Phase: application-threat-model
Quality tier: security-safety-gated
Reasoning demand: standard
Quality bar:
- Name every component, data store, and external dependency of the real system
常见问题
它会检查代码中的漏洞吗?
不会。代码缺陷由单独的代码审查技能负责。
它是针对 AI 智能体安全的吗?
不是。智能体自身的提示词和工具的安全由单独的安全审查技能负责。
它需要我提供什么?
系统的组件,以及数据在组件之间如何流动。
详情
作者的原始描述
[omh] Attack paths into an operated system: turn a system's components and data flows into assets, trust boundaries, attack scenarios, controls, and the security test that proves each control holds. Use when the user says: application-threat-model, application threat model, threat model, threat modeling, threat modelling, threat modeling session, threat modeling workshop, security threat model.
repo: rlaope/oh-my-hermes
热度
- GitHub 星标
- 5.1k
- 排名
- #15076
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
omh-accessibility-audit
5.1k帮你的智能体检查某个界面或流程是否存在无障碍问题,例如键盘使用、屏幕阅读器标签、对比度和触控目标大小。
omh-adversarial-consensus
5.1k在你做出决定之前,帮你的智能体从几个独立角度质疑一个技术方案,然后总结哪些观点经得起推敲。
omh-agent-debug
5.1k帮你的智能体找出另一个 AI 智能体为何卡住、陷入循环或偏离任务,并提出最小且安全的恢复方法。
omh-agent-instructions
5.1k帮你的智能体编写或更新指令文件,例如 AGENTS.md 或 CLAUDE.md,告诉 AI 工具如何在项目中工作。