/bitwarden-security-engineer:threat-modelingfrom bitwarden-security-engineer
Implements Bitwarden's 4-phase threat modeling process: creates data flow diagrams, security definitions, and identifies threats using STRIDE.
Ships in bitwarden-security-engineer. 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.
Bitwarden follows a 4-phase engagement model for security work. This skill primarily supports Phase 1 (engineering-owned) and assists with Phase 2-4 artifacts.
${CLAUDE_PLUGIN_ROOT}/references/adr-alignment.md) — a threat model should align with already-accepted architecture, not silently re-derive or contradict itreferences/stride-framework.md)Security Definitions (SDs) are Bitwarden's formal construct for communicating the security posture of a system. Each definition has three components: a threat model (attacker capabilities), security goals (what the system guarantees), and an accepted goal status (honest assessment of whether the goal is currently met).
Use Bitwarden's standard vocabulary when writing definitions — see references/bitwarden-vocabulary.md for the full glossary. Align security goals with Bitwarden's security principles (P01-P06) — see references/security-principles.md.
Describe attacker capabilities AND limitations — what they can and cannot do. Always state both sides to scope the definition precisely:
Include concrete examples where helpful (e.g., "An example for this is a stolen device"). Don't assume external mitigations are in place — even if obtaining an auth token is difficult, still explore what happens if an attacker has one.
Apply these rules when scoping the threat model:
references/writing-quality-sds.md for the dominated-threat anti-pattern and the term Dominated Threat in references/bitwarden-vocabulary.md.State concise, testable guarantees about what cannot happen given the threat model. Reference specific assets (tokens, keys, vault data):
Every goal carries a Rationale — three pieces, one line each:
references/security-principles.md.A goal without a rationale is a claim, not a requirement. Rationales let reviewers judge whether the goal is load-bearing or can be cut.
Two additional rules on goal framing:
process.env or argv, the implementation MUST use stdin or an inherited file descriptor. An SD whose goal forbids env exposure but whose implementation passes the secret through env is internally inconsistent — fix the design, or fix the goal, but do not ship both.Provide an honest assessment of the current state:
When a goal is known to be broken, link to the relevant tracking issue. Note scoping caveats (e.g., "These definitions do not apply in the case of a Vault Timeout set to Never").
Two additional rules:
bw unlock, which scales with KDF iterations and vault size — observed between 1 and 8 seconds on representative hardware." Brief without a number is not an accepted status — it is a hope. See the Exposure Window vocabulary entry.references/writing-quality-sds.md for the prioritization heuristic.Use the templates in examples/ when generating artifacts:
examples/security-definition-document.md — Full SD document template with glossary, numbered definitions, Criticality tagging, goal rationale, and accepted goal statusexamples/data-flow-diagram.md — Mermaid DFD template with trust boundariesexamples/threat-catalog.md — Threat catalog table and mitigation tracking templatesConsult these references when writing or reviewing SDs:
references/writing-quality-sds.md — Anti-patterns (dominated threats, adversarial-only attackers, unenforceable goals, aspirational limitations, shell-quoting SDs, the "brief exposure" trap) and the self-consistency checklistreferences/bitwarden-vocabulary.md — Standard terms, including Passive Observer, Dominated Threat, and Exposure Windowreferences/security-principles.md — P01–P06, referenced by every goal's Rationale linereferences/stride-framework.md — STRIDE categories for structured threat identification${CLAUDE_PLUGIN_ROOT}/references/adr-alignment.md — Architecture Decision Record alignment checks shared across security-engineer skillsTeams should initiate a full engagement with the AppSec team (#team-eng-appsec) when:
Quick questions (e.g., concerns about a third-party library or coding practice) don't need a full engagement — post those directly to #team-eng-appsec.
Before finalizing a set of SDs, apply the self-consistency checklist in references/writing-quality-sds.md.
examples/data-flow-diagram.md (opens in a new tab)examples/security-definition-document.md (opens in a new tab)examples/threat-catalog.md (opens in a new tab)references/bitwarden-vocabulary.md (opens in a new tab)references/security-principles.md (opens in a new tab)references/stride-framework.md (opens in a new tab)references/writing-quality-sds.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
10 skills in this plugin
/analyzing-code-securityThis skill should be used when the user asks to "analyze code for security issues", "check for OWASP vulnerabilities", "review code against CWE Top 25", "find injection vulnerabilities", "do a security code review", or needs manual security analysis against OWASP Top 10, API Top 10, Mobile Top 10, or CWE/SANS frameworks./auditing-external-claude-pluginsAudits an external (third-party) Claude Code plugin pinned in this marketplace for security risk before it is vendored, and writes the report to a file for downstream posting. Use when asked to "audit an external plugin", "audit a vendored plugin", "run a plugin security audit", or when a new or updated external plugin pin needs a pre-merge security review./auditing-hackerone-vulnsAudit all open HackerOne-sourced VULN Jira tickets and their linked engineering child items to identify what needs action. Use this skill whenever the user wants to: check VULN ticket status, see which HackerOne findings need status updates, identify vulnerabilities ready to verify or close, run a remediation audit, check "what do I need to do on my VULN tickets today", or get a prioritized view of open vulnerabilities. Outputs a sorted action table with emoji tokens. Always use this skill for HackerOne/VULN remediation tracking and status correlation tasks — don't try to do it from scratch./bitwarden-security-contextBitwarden's security principles (P01-P06), security vocabulary, and data classification standards. Use when you need foundational security context for any Bitwarden development, review, or security task — such as understanding trust boundaries, data protection requirements, or Bitwarden-specific security terminology./detecting-secretsThis skill should be used when the user asks to "find hardcoded secrets", "audit for credential leaks", "check for API keys in code", "review secret scanning alerts", "rotate a leaked secret", or needs to detect hardcoded credentials, review secret handling patterns, or remediate exposed secrets./perform-security-reviewPerforms a security-focused code review by launching multiple specialized agents and a verification agent to ensure comprehensive coverage and accurate findings. Use this skill when the user asks for a "perform-security-review", "bitwarden-security-review", "execute a security review", "run a comprehensive security audit", "perform an end-to-end security assessment", or needs to coordinate multiple security checks across code, dependencies, secrets, and configurations. The skill manages the workflow, delegates tasks to specialized agents, and presents final findings to the user.npx claudepluginhub bitwarden/ai-plugins --plugin bitwarden-security-engineerOther plugins' skills for the same job