
Description
threat-model is an agent skill for building a threat model for a target codebase. A threat model answers what could go wrong with a system, who would do it, and what should be done about it, whether or not a specific bug has been found yet. The skill has three modes. The interview mode walks an application owner through a four-question framework and produces a threat model from their answers, which suits teams that know their system but have not written down its risks. The skill is part of the defending-code reference harness repository from Anthropic. Install it with npx skills add https://github.com/anthropics/defending-code-reference-harness --skill threat-model. The skill's listing is on skills.sh, which shows the security audit results for the skill.…
Highlights
- Builds a threat model for a codebase
- Interview mode with a four-question framework
- Works from the application owner's answers
- Part of an Anthropic security harness
- Install with npx skills add
Ratings & Reviews
No ratings yet
Be the first to rate threat-model.
People also visit

cybersecurity-reviewer
Security analysis agent for vulnerability assessment and threat modeling

owasp-security
Reviews code for security vulnerabilities and guides secure implementation
openai/security-threat-model
Generate repo-specific threat models identifying trust boundaries
threat-model FAQ
What does threat-model produce?
A threat model for a codebase: what could go wrong, who might cause it, and what to do about it.
What is interview mode?
A mode that walks an application owner through a four-question framework and builds the threat model from their answers.
When is it useful?
Before a security review, before a feature that handles sensitive data, or when someone needs to learn a system's security posture.
How do I install it?
Run npx skills add https://github.com/anthropics/defending-code-reference-harness --skill threat-model.
Does it need a bug to be found first?
No. The skill says a threat model is independent of whether a specific bug has been found.
What are the best threat-model alternatives?
Popular alternatives to threat-model include security-and-hardening, cybersecurity-reviewer and security-review. See all threat-model alternatives












