harness-threat-model
它能做什么
这项技能为运行框架所暴露的工具创建分类威胁模型,并给出总体最坏情况的评级。适合为企业审查做准备的安全团队。
适用场景
- ✓当你需要一份可与安全团队分享的威胁报告时。
- ✓当一次发布需要附有书面证据的安全签署时。
- ✓当你希望定期检查工具暴露面的变化时。
技能链接
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-metaharness/skills/harness-threat-model/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为我的运行框架创建一份威胁模型,我可以发送给安全团队。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能运行威胁模型命令,读取总体最坏评级以及每项发现。当评级达到你选择的级别时,它可以以错误退出,默认级别为高。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
The companion to harness-mcp-scan for enterprise security reviews.
Where mcp-scan is a per-server static lint, threat-model produces a
categorized report suitable for sharing with an InfoSec team.
Algorithm
Implementation: scripts/threat-model.mjs.
- Invoke the pinned
harnessbinary (metaharness@~0.4.1, resolved from a local install or the one-time~/.ruflo/metaharness-cache-<pin>cache — never@latest):harness threat-model <path> --json. - Parse
{ worst, findings[] }. --fail-on <severity>: exit 1 whenworst >= fail-on. Defaulthigh.
Severity rank
| Severity | Rank |
|---|---|
| clean | 0 |
| low | 1 |
| medium | 2 |
| high | 3 |
When to use
- Pre-launch review: include the JSON output in the release-readiness packet sent to security.
- Periodic audit: schedule via the planned
oia-auditbackground worker (ADR-150 Phase 2) to detect MCP-surface drift.
Graceful degradation
Same pattern as the other skills: when harness is absent, emit
{ degraded: true } and exit 0. ADR-150 architectural constraint.
常见问题
它与工具扫描有什么不同?
工具扫描是针对每个服务器的检查,而威胁模型是用于审查的分类报告。
使用哪些评级等级?
干净、低、中、高。
如果工具没有安装怎么办?
它会报告降级状态,并在不失败的情况下退出。
详情
作者的原始描述
Enterprise-review-grade threat model from `harness threat-model {path}`. Categorizes MCP-surface threats; emits `worst: 'clean'|'low'|'medium'|'high'` + per-threat findings. Pure-read.
repo: ruvnet/ruflo
热度
- GitHub 星标
- 81k
- 排名
- #1657
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-adaptive-coordinator
81k帮你的智能体在工作量变化时拆分和重新平衡一组 AI 智能体,并选择适合任务的分工方式。
agent-agent
81k教你的智能体把一个大目标拆成有顺序的行动计划,并在情况变化时重新规划。
agent-agentic-payments
81k帮你的智能体管理 AI 购物的消费授权,包括消费上限、时间窗口、商户规则和签名审批。
agent-analyze-code-quality
81k帮你的智能体检查代码质量,找出代码异味、技术债务和重构建议,且不改动文件。