/threat-model:threat-model-recon <path or name of the repo/package to orient on>from threat-model
Orients on an open-source repository for threat modeling by reading README, docs, maintainer rulings, and changelogs. Produces an orientation brief for phases 3.1-3.2.
Ships in threat-model. 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.
Phases 3.1–3.2. The cheap reading that lets every later phase ask informed
questions. Minutes, not hours — the detailed code reading is
threat-model-surface's job. This is read-only: form hypotheses, do not
produce findings, do not edit code.
Read principles.md first.
Scope to the published, committed state. Orient on a released tag or merged commit — the code, docs, and rulings a downstream reader can actually see. Do not pull in uncommitted local edits, unmerged branches, draft PRs, or stashes; they are invisible to anyone the shipped model is written for. Note the exact ref you modeled for the §1.1 version binding.
Do a light pass and record hypotheses:
README, top-level docs, and any existing SECURITY*, THREAT*, or
docs/ content. If a document titled "threat model" is structurally an
audit/risk-register/findings-list (likelihood×impact scoring, "recommended
mitigations", owner/due-date columns), do not silently supersede it. Mine
only statements explicitly presented as maintainer policy or contract;
findings and recommendations are not contract evidence. Raise a coexistence
question for §1.18.NOTES/CAVEATS/LIMITATIONS
docs, issue closures labeled "wontfix"/"by design"/"not a bug", changelog
entries explaining why. These often answer threat-model questions before
they are asked. Tag what you find documented, naming the exact source in the tag.security-context.md in the working directory. A
runner may pre-fetch the repository's off-repo public record into this file
(via fetch_security_context.py): published advisories, OSV.dev records,
security-related issues (labeled or mentioning security), issues maintainers
closed as not-planned/wontfix/invalid, security/audit links discovered on
the project homepage, and optionally the vendored text of named external
documents (e.g. a commissioned audit report). Treat its entries as
point-in-time copies of maintainer-authored or maintainer-acknowledged
public record — mine rulings and advisory text exactly like on-repo sources,
citing it as documented with the original issue or advisory URL in the tag;
follow homepage references and read them (a maintainer-linked audit is on
the record); and hand the vulnerability history to phase 3.6 as backtest
corpus seed material. It is mining input, not project source: per the
leave-out list, never copy its CVE list or individual findings into the
model, and never cite the file itself as the source.
contrib/, examples/, vendor/,
third_party/, test/, demos, generated bindings). Decide in/out explicitly.configure, Makefile*, CMakeLists.txt, or
the packaging manifest and list the source files that actually land in the
shipped artifact — including default-on, platform-conditional ones. zlib is
the standing example: configure defaults enable_crcvx=1 and on s390x
compiles contrib/crc32vx/crc32_vx.c into libz, where the public crc32()
dispatches to it. A "samples" directory is in the library.
Getting this wrong fails open — OUT-OF-MODEL: unsupported-component is
second in the §1.17 precedence order, so a real memory-safety report in code
that ships closes as out of scope before anything else is considered. So:
a file the supported build compiles is in scope wherever it lives; when a
mostly-excluded directory is partly built in, §1.3 names the exact path and
the platform or flag that pulls it in, and §1.6 carries that flag; and every
"no third-party code" or "zero dependencies" claim is checked against the
build's file list rather than the tree.Many projects ship a SECURITY.md that is part disclosure process (out of
scope) and part embedded threat model — the single highest-authority
documented source, since it is maintainer policy that already survived
public review. When such content exists:
SECURITY.md already
states means the orient pass was skipped.SECURITY.md statement →
threat-model §", one row per claim, proving coverage.SECURITY.md links to,
or (c) sit alongside? Resolve before publishing.The same treatment applies to any artifact stating maintainer security policy in
the project's own voice: docs/security-model.md, a "Security Considerations"
section of an implemented RFC, a bug-bounty scope page, or a wiki page the issue
tracker cites when closing reports.
Hand back to the orchestrator:
SECURITY.md back-map + the coexistence question for wave 1.Everything not lifted from a document is a hypothesis for the surface pass and interview to confirm — leave it (inferred, QN) with the matching question ID, or (assumption, QN) where a conservative default is clearly safe.
Mine before you infer. Every fact you can attribute to a maintainer-authored
source (README, Javadoc/package-info, header comments, manpage, FAQ, changelog
rationale, issue rulings) is documented and does not escalate. The recon
pass is the cheapest place to convert would-be inferences into documented
claims; a draft that is mostly inferred usually means this mining was thin,
not that the project is genuinely undocumented. Where the docs verifiably make
no guarantee (no thread-safety statement, no resource bound), that absence is
itself documented — carry it forward as a §1.12 disclaimer, not an open
question.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
threat-model, security-recon, orientation, open-source-audit
npx claudepluginhub alpha-omega-security/threat-model --plugin threat-model8 skills in this plugin
/threat-modelProduce a threat model for a targeted open-source repository or package: its implicit security contract (assumptions, guarantees, disclaimed properties, and known misuses), not an audit, pentest, CVE list, or build-hygiene review. USE WHEN asked to produce, write, or generate a threat model, model the security contract, or explain which threats a library accepts. This orchestrator runs the canonical workflow, delegates to threat-model-* specialists, and publishes threat-model.md, threat-model.yaml, and threat-model.json (authority: prose > YAML > JSON). To classify a finding against an existing model, use threat-model-triage. DO NOT USE FOR bug hunting, code review, CVE enumeration, or supply-chain/SDLC hygiene.
/threat-model-authoringDraft phase 3.5 of a threat model from the orientation brief, surface analysis, and maintainer answers. USE WHEN writing threat-model.md to the canonical §1.1–§1.19 structure. Combines concise prose with the §1.7 trust table and contract matrix, §1.8 output statements, §1.17 disposition table, §1.1 triager quick-start, and any prior-policy back-map. Tags every non-trivial claim as documented, maintainer, or inferred; maps inferred claims to §1.18; and maintains confidence counts. DO NOT USE FOR: sidecar generation, backtesting, or triage./threat-model-backtestBacktest phase 3.6 of threat-model production against historical findings before sign-off. USE WHEN a draft model must prove it can uniquely route real reports. Builds a stratified producer-side corpus across components and contract dimensions, clusters large corpora by sink and attack class, and routes each item blind to one §1.17 disposition. Reports MODEL-GAP, contradictory or ambiguous routing, coverage, qualified §1.15 candidates, and §1.18 questions. The corpus is not published. DO NOT USE FOR: drafting, sidecar generation, or triaging one new finding./threat-model-interviewRun phase 3.4 maintainer question waves for threat-model production. USE WHEN inferred claims need ratification or interview-first versus draft-first mode must be chosen. Asks 3–7 prioritized proposed-answer questions per wave; wave 1 always covers scope, intended use, configuration support, and host side effects. Records answers, promotes inferred provenance to dated maintainer provenance, and retires matching §1.18 questions. Supports the phase 3.7 termination policy. DO NOT USE FOR: fabricating maintainer positions, drafting the whole model, or triage./threat-model-sidecarEmit and validate the §1.19 machine-readable companions: threat-model.yaml using schema threat-model-sidecar/v2, and the flat threat-model.json export conforming to schema.json. USE WHEN an orchestrated threat model is ready for publication, automated or AI-assisted triage, dependency compatibility analysis, or companion regeneration after prose changes. Projects provenance- backed components, input obligations, contract dimensions, outputs, adversaries, dependencies, configurations, properties, misuses, non-findings, and the closed disposition enum. Prose remains canonical; authority order is prose > yaml > json. DO NOT USE FOR: writing prose or routing a finding./threat-model-surfacePerform phase 3.3 deep analysis of an in-scope attack surface for a threat model. USE WHEN the orientation brief is ready and code must be read to derive the §1.7 per-input trust table and contract-dimension matrix, §1.5 no-surprise side-effects inventory, §1.4 reachability preconditions, and §1.8 output taint. Reads public entry points for contract rather than defects, timeboxes each component family, and marks uncovered surface inferred. Produces a surface analysis. Read-only. DO NOT USE FOR: bug hunting, code review, orientation, or drafting the prose model.Other plugins' skills for the same job