/security:threat-modelfrom security
Whole-repo threat model, built before security review: trust boundaries, assets, attacker stories, and the severity basis reviews inherit. Use when the user says "threat model this service", "what's our attack surface", or "map the trust boundaries". Not for accidental failures (failure-mode-analysis), one change (security-diff-review), or fixing findings (hardening-proposal).
Ships in security. 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.
Read when SKILL.md points to them.
Adapted from openai/codex-security (Apache-2.0); see repo-root NOTICES.md.
Map assets, attacker capabilities, entry points, and trust boundaries so later reviews can assess vulnerabilities on a consistent basis.
Use the requested service or repository as the starting boundary. Trace its relevant dependencies and external interfaces far enough to understand trust changes. State exclusions; do not expand a scoped request into an unrelated whole-repository audit. Use codebase-survey when available for orientation, or inspect entry points, deployment configuration, and sensitive operations directly.
Identify valuable data and operations, principals, tenant boundaries, and where untrusted input reaches privileged behavior. Distinguish stated deployment assumptions from verified configuration. Record what must be true for existing controls to hold.
For each material entry point identify an attacker, their starting access, the asset or operation they seek, and the path across a trust boundary. Ground stories in real interfaces while keeping hypothetical exploits distinct from confirmed findings. Account for authenticated users, administrators, supply chain or CI access, and anonymous production traffic where relevant.
Developer-only reach is a different prerequisite from anonymous reach; neither is automatically low impact. A CI compromise exposing deployment credentials can matter more than a low-impact public endpoint. Rank using both access conditions and consequences.
Follow the repository's model location, or use docs/THREAT_MODEL.md when none exists. Include scope, assets, trust boundaries, attacker stories, assumptions, controls, and a severity basis with its rationale. The expanded format is in references/threat-model-guidance.md.
Preserve the user's risk priorities and existing model. Identify contradictions with observed behavior and propose explicit updates; writing a model does not make every assumption permanently authoritative. Revise when architecture, exposure, or important assumptions change.
The model connects attackers to assets through actual boundaries and makes uncertainty visible. It supplies a consistent assessment basis without claiming that listed threats are discovered vulnerabilities. Report the artifact and material coverage limits.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub smithdak/skillsmith --plugin security3 skills in this plugin
/hardening-proposalTurns security findings into a hardening proposal: clusters them by violated invariant and lays out a baseline plus two or three distinct options with tradeoffs. Use when the user says "how should we fix these findings", "propose a hardening plan", or "options to close this class of bugs". Not for one change (security-diff-review), trust boundaries (threat-model), or triaging findings./security-diff-reviewSecurity review of one code change — a diff, PR, or branch — anchored to what changed, swept out to sibling call sites of any shared helper it touches. Use when the user says "security review this PR", "is this change safe to merge", or "run a security pass on my feature branch". Not for trust boundaries (threat-model), fixing a set of findings (hardening-proposal), or whole-repo audits.Other plugins' skills for the same job