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

企业级威胁模型分析

v20260707
harness-threat-model
该技能用于生成企业级的威胁模型报告,实现对MCP范围的威胁分类分析。它能输出整体最差的严重性级别和详细的威胁发现,非常适用于项目发布前的安全评审和周期性安全审计,与信息安全团队分享报告。
获取技能
183 次下载
概览

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.3.0, resolved from a local install or the one-time ~/.ruflo/metaharness-cache-<pin> cache — never @latest): harness threat-model <path> --json.
  2. Parse { worst, findings[] }.
  3. --fail-on <severity>: exit 1 when worst >= fail-on. Default high.

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-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.

信息
Category 编程开发
Name harness-threat-model
版本 v20260707
大小 1.42KB
更新时间 2026-07-09
语言