agentleFS
mtarcuremtarcure/claude-vibe-squad/.agents/skills/security-threat-model/SKILL.md

security-threat-model

Skill162 starsChanged 3 months agoMITView on GitHub

Use before designing or reviewing a system whose assets, adversary, trust zones, and residual risks are not yet explicit: enumerate reachable STRIDE threats at each boundary, distinguish observed controls from assumptions, and terminate at a declared reporting floor.

19 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use frontend-design, improve-codebase-architecture and 2 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • VercelSkill

    frontend-design

    Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

    Also in 6 projects that use this

  • AWSSkill

    improve-codebase-architecture

    Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.

    Also in 3 projects that use this

  • MicrosoftSkill

    grill-with-docs

    Grilling session that challenges your plan against the existing domain model, sharpens terminology, and updates documentation (CONTEXT.md, ADRs) inline as decisions crystallise. Use when user wants to stress-test a plan against their project's language and documented decisions.

    Also in 3 projects that use this

  • MicrosoftSkill

    mcp-builder

    Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 17 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When the model keeps producing unmitigable criticals on one mechanism, remove or bound that mechanism — chasing an airtight control is the …

    line 19
  2. Distinctive:

    Write the assumptions down as first-class output.

    line 20
  3. Distinctive:

    Every control is marked observed or assumed.

    line 25

“Common” is measured: kept by at least 6 in 10 of the 17 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Security Threat Model

Build a threat model that is right-sized to the system and that terminates, rather than one that expands until every mechanism looks unsafe.

Steps

  1. State the asset: what is actually worth protecting here — data, funds, availability, integrity of a decision — and what its loss would cost.
  2. State the adversary: capability, position, and motivation. An unbounded adversary produces an unbounded model and no decisions.
  3. Draw the system as trust zones and the flows that cross them. Every trust-zone crossing is where the model does its work; flows inside a zone rarely are.
  4. For each crossing, enumerate threats systematically — spoofing, tampering, repudiation, disclosure, denial, elevation — and keep only those the stated adversary can reach.
  5. Record the existing control for each retained threat and whether it was observed working or merely assumed to exist. Assumed controls are gaps.
  6. Rank residual risk by asset loss × adversary reach, using review-severity-ladder, and stop enumerating below the agreed floor.
  7. Decide per residual: mitigate, bound the mechanism, remove the mechanism, or accept with a documented rationale and a revisit condition.
  8. When the model keeps producing unmitigable criticals on one mechanism, remove or bound that mechanism — chasing an airtight control is the wrong response.
  9. Write the assumptions down as first-class output; the assumptions are what will be wrong later, and they are what a reviewer should attack.

Acceptance

  • Asset, adversary capability, and trust zones are stated before any threat is listed.
  • Threats are enumerated per trust-zone crossing and filtered to the stated adversary.
  • Every control is marked observed or assumed; assumed controls are treated as gaps.
  • Residuals carry an explicit decision — mitigate, bound, remove, or accept with rationale and revisit condition.
  • Assumptions are recorded as their own section, and the model terminates at a stated floor.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.