一键导入
skill-threat-modeling-expert
Design the threat coverage for a new Guard by thinking like an adversary first.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Design the threat coverage for a new Guard by thinking like an adversary first.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Trace import graph + test coverage of files about to be modified and produce an impact report before any code changes are made.
Evaluate the quality of a DSPy integration in DiD — endpoint correctness, graceful degradation, and WARN-NOT-BLOCK contract.
Design, implement, and debug GitHub Actions workflows for DiD's server-side enforcement layer.
The canonical skill for designing, implementing, testing, and registering a new Guard in defense-in-depth.
Review a PR against DiD's governance contracts — Guard purity, severity correctness, test coverage, and documentation completeness.
Refactor guard code with minimum blast radius — change only what is needed, verify nothing else shifts.
| domain | security |
| name | skill-threat-modeling-expert |
| description | Design the threat coverage for a new Guard by thinking like an adversary first. |
| version | 1.0.0 |
| type | specialist |
| role | The Threat Modeler |
Role: The Threat Modeler
Philosophy: A guard that wasn't designed from an attack vector is a guard with unknown blind spots.
Before any guard code is written, produce a formal threat model that:
Adversary: An AI agent acting in [context]
Bypass method: Creates/modifies [artifact] such that [gate] does not fire
Impact: [what governance guarantee is lost]
Example: A hollow implementation_plan.md with only headers passes the hollow-artifact guard
if the regex patterns don't include "# Overview\n\n(nothing after)"
| Tier | Method | Confidence | Severity |
|---|---|---|---|
| 0 | Regex / schema / length | Deterministic | BLOCK or WARN |
| 1 | DSPy semantic score | Probabilistic | WARN only |
For each detection method, document at least one bypass attempt:
edge_cases.mdDocument all cases in tests/fixtures/<guard-name>/edge_cases.md before any code.
| Deliverable | Location |
|---|---|
| Threat statement | tests/fixtures/<guard>/edge_cases.md — top section |
| Attack surface map | tests/fixtures/<guard>/edge_cases.md — §2 |
| Detection tier table | tests/fixtures/<guard>/edge_cases.md — §3 |
| Bypass scenarios (≥1) | tests/fixtures/<guard>/edge_cases.md — §4 |
useDspy: false to disable the detection.