技能 编程开发 企业级威胁模型分析

企业级威胁模型分析

v20261108
harness-threat-model
该技能通过调用 harness 二进制文件生成企业级 MCP 表面威胁模型。它分类安全威胁并输出严重程度(如清洁、低、中、高)及详细发现。适用于发布前安全审查和定期审计,支持 JSON 或表格格式,并在 harness 缺失时优雅降级。
获取技能
208 次下载
概览

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.

  1. Invoke the pinned harness binary (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.

  1. Parse { worst, findings[] }.
  2. --fail-on <severity>: exit 1 when worst >= fail-on. Default high.

Severity rank

SeverityRank
clean0
low1
medium2
high3

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-audit background

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.

信息
分类 编程开发
名称 harness-threat-model
版本 v20261108
大小 1.42KB
更新时间 2026-11-11
语言