Feature threat model
Walks a feature through who could abuse it and what that would cost.
Works with: Claude Code, Claude.ai, Any agent
A structured pass over a design before it is built, asking who benefits from misusing it and what the cheapest attack is. Deliberately scoped to design-level abuse rather than code-level vulnerabilities, which is where a review of finished code is more useful.
Files in this package
--- name: feature-threat-model description: Threat-model a feature at design time — who would abuse it, how, and what it costs. Use before building anything that handles money, identity, user content or messaging. --- # Feature threat model ## When this applies At design time, before the code exists. A threat model of finished code is a code review; the value here is catching a design that cannot be secured no matter how it is implemented. ## The questions 1. **What does this feature let someone do?** State it plainly, including the version an attacker would state. 2. **Who wants to abuse it, and for what?** Be concrete: money, access, someone else's data, reach for spam, harassment of a specific person. Different motives produce different attacks. 3. **What is the cheapest attack?** Attackers are economically rational. The cheapest one is the one that happens. 4. **What does it cost us** when it works — money, data, trust, a regulatory obligation? 5. **What is the blast radius** of one compromised account? One leaked key? ## Patterns to check specifically - **Anything that sends** — mail, SMS, notifications — is a spam vector and a cost amplifier the moment an attacker can trigger it in a loop. - **Anything that accepts user content** is a stored-XSS and phishing surface, and a moderation obligation. - **Anything that reveals whether something exists** — an account, an email, a document — is an enumeration oracle even when it returns no data. - **Anything free that costs us money per call** will be found and used. - **Anything involving other people's data** needs to answer "why can this user see this record" and not just "is this user logged in". ## Output Per threat: who, how, cost to them, cost to us, and the mitigation. Then the **one design change** that removes the most threats at once — there usually is one, and it is usually cheaper than mitigating each. ## Never - Never produce a generic list of security best practices. Threats specific to this feature only. - Never rate severity without saying what the impact actually is. - If the honest finding is that the feature should not be built as described, say that.
How to install
Download the zip, then add it on the platform you use.
- Claude Code. Unzip into
.claude/skills/in your project, or~/.claude/skills/to make it available everywhere. The agent picks it up from the folder name and the description in the front matter. There is no registration step. - Claude.ai. Skills need "Code execution and file creation" switched on. On Free, Pro, Max and Ultra you find it under Settings > Capabilities, where the updated Settings layout calls it "Create and edit files". On Team and Enterprise, an owner checks that it and Skills are both on in Organization settings > Plugins & skills, on the Policy tab. Go to Customize > Skills, click "+", then "+ Create skill", select "Upload a skill" and upload the zip as it is. The skill appears in your skills list, where you can toggle it on or off.
- Any agent. Unpack the zip into your agent's skills directory.
Then describe the feature you plan to build and ask for a threat model. Claude uses an installed skill on its own when the request fits.
Related skills
Incident timeline builder
Assembles a blameless timeline separating fact from inference.