/ccc-dashboard:threat-modelfrom Claude Command Center
Spawns a CCC session to map abuse surfaces of a specific diff touching a trust boundary (endpoint, input parser, file handler, subprocess, auth check). Ranks abuse cases by impact/likelihood and outputs a prioritized ledger for security review.
Ships in Claude Command Center. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Threat-model spawns a single fresh CCC session that looks at one bounded
change — a diff, a new endpoint, a new input path — and asks the one question
a feature author is worst at answering about their own work: how would someone
misuse this? It enumerates abuse cases against the change, ranks them by impact
and likelihood, notes the mitigation already present and the gap that remains,
and hands you a ledger you route into /security-review and code fixes. It
builds on the spawn/report_to mechanics in the ccc-orchestration skill — read
that first for the full Spawn/Inject/Ask API.
This is a defensive map: the session describes attack paths and the defenses that close them. It does not write working exploits, run attacks against live services, or produce weaponized payloads — the deliverable is the threat model that tells you where to look, feeding the existing security review and your own fixes.
1 spawned session. Each spawn is a real billed session on the user's kanban — tell the user the count before spawning. Scope it to a bounded change (one endpoint, one parser, one diff) — "threat-model the whole app" is not one session's job, and an unbounded map is a shallow one. Skip it for changes that touch no trust boundary at all (pure UI copy, an internal refactor with no new input) — there's no abuse surface to map.
CCC_URL="$(cat ~/.claude/command-center/port.txt 2>/dev/null || echo "${CCC_URL:-http://127.0.0.1:8090}")"
curl -sf --max-time 2 "$CCC_URL/api/version" >/dev/null 2>&1 || CCC_URL="http://127.0.0.1:8090"
curl -sf --max-time 2 "$CCC_URL/api/version" >/dev/null 2>&1 || CCC_DOWN=1
repo_path in query strings (+ → %2B, space → %20).$CLAUDE_SESSION_ID, else the newest
*.jsonl under ~/.claude/projects/<slugified-cwd>/ (see ccc-orchestration).curl -s -X POST "$CCC_URL/api/sessions/spawn" -H "Content-Type: application/json" -d @- <<'JSON'
{
"prompt": "Threat-model ONE bounded change. This is a DEFENSIVE exercise: map the abuse surface and the defenses that close it. Do NOT write working exploits, do NOT run attacks against any live service, do NOT produce weaponized payloads — describe attack paths at the design level and the mitigation for each. SCOPE: <diff / ref range / endpoint / files>. TRUST BOUNDARY: <network endpoint / input parser / path handler / subprocess / auth-origin check / deserialization / secret path>. THREAT CONTEXT: <who can reach it, and what 'bad' means here>. Method: 1) Read the change and the code it touches. 2) Enumerate abuse cases: for each, state the adversary (who), the entry point (what they control), the malicious input or action, and the failure it triggers. Cover the boundary types in scope — e.g. for an input handler: injection, path traversal, oversized/malformed input, encoding tricks; for an endpoint: missing auth/origin check, CSRF, parameter tampering, DoS; for a subprocess: argument injection, unsanitized interpolation. 3) For EACH abuse case, record: impact (CRITICAL / HIGH / MEDIUM / LOW), likelihood (how reachable — is the precondition already met in normal deployment?), the mitigation ALREADY in the code (quote it with file:line, or 'none found'), and the GAP that remains. 4) Rank the ledger by impact x likelihood, worst first. Finish with: the single highest-risk gap, and a short list of exactly what /security-review or a code fix should check next. Report the ranked abuse-case ledger and that shortlist — no exploit code.",
"repo_path": "/abs/path/to/repo",
"report_to": "<your-session-id>"
}
JSON
Omit "model" and "reasoning_effort": the server spawn defaults (Settings →
Spawn defaults) apply. Pass either explicitly to keep cost down, with
"engine" alongside it, since both are validated per engine (see
ccc-orchestration § 2 for the per-engine effort ladders). CCC appends the
return-address footer (report_to), so the modeler injects its ledger back to
you when it finishes.
After spawning, end your turn. Tell the user a threat modeler is mapping the
change and give its session id. The ledger arrives by injection (report_to) —
do not poll or sleep-loop. If it never arrives, check
GET /api/sessions/spawned for whether the child is still alive.
The ledger is a to-do list ranked for you, not a verdict:
/security-review (point it at the
exact file:line and abuse case) and fix before shipping. For a public repo
these ship the moment you push, so treat an unmitigated HIGH like a release
blocker.Before touching server.py network binding, origin checks, or path validation
off the back of this, re-read SECURITY.md — the ledger tells you where to
look, that file tells you what the intended posture is.
If the arguments contain dry-run, print the exact payload — session count (1),
the full modeler prompt with the scope, boundary, and threat context filled in,
and the target repo — and POST nothing.
If CCC_DOWN=1 or the spawn curl returns connection refused (exit 7), fall back
to the built-in Task tool subagent with the same defensive threat-model
prompt. The value here is the independent adversarial framing — you designed the
feature, so you rationalize its safety — and a subagent supplies that just as
well; you lose only kanban visibility. Never pretend the CCC spawn ran.
/security-review — that scans code for known vulnerability classes and
reports concrete findings in what exists. Threat-model runs before it and
feeds it: it maps the abuse surface of a change so the review knows where to
aim. Run threat-model to decide what to worry about; run /security-review to
confirm each worry against the code.wt critique or /code-review — those judge whether the change is
correct and well-built. This assumes it works and asks how it's abused.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
threat-modeling, abuse-case, security-review, trust-boundary
20 skills in this plugin
/a-b-copyUse when you want a marketing-copy A/B — spawns two writer sibling sessions via CCC that draft the SAME message architecture in DIFFERENT voices, then a judge session (which saw neither draft happen) scores both and picks a winner./bug-raceUse when a bug has already survived at least one debugging attempt and you have 2-3 genuinely distinct root-cause hypotheses — spawns one racer sibling session per hypothesis via CCC, referees the first CONFIRMED root cause with reproducible evidence, and stands the others down via inject./ccc-orchestrationSpawn, inject into, and ask questions of persistent sibling sessions via Claude Command Center (CCC).npx claudepluginhub amirfish1/claude-command-center --plugin ccc-dashboardOther plugins' skills for the same job