
Sh threat model
Builds a STRIDE threat model of a codebase or design doc with trust boundaries and risks
Sh threat model is an open-source agent skill for security. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 44
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Sh threat model
This skill guides an agent through threat modeling a codebase, a design document or a specific change. It has the agent identify actors, assets, data flows and trust boundaries, note the controls present at each boundary, and rank STRIDE threats by risk. The output includes a data flow diagram and a hunt plan that a later security review can follow.
The skill is orchestrated as a short pipeline: a mapping step (reusing a recent map when one exists) followed by a modelling step run by a dedicated subagent. It supports a diff mode that models only what changed since a given git ref, and a design mode that works from Markdown, text, ADR or RFC documents without scanning code. It is static analysis only and avoids live testing.
It expects a target folder or a design document and a git repository for diff mode. It depends on companion skills from the same plugin, and writes its run files, including a JSON threat model, under a local security-harness directory in the target.
When your agent uses it
Threat-model a codebase, a design document, or a change: actors, assets, data flows, trust boundaries with the controls at each, STRIDE threats ranked by risk, a data flow diagram, and a hunt plan for a security review. Use when the user asks for a threat model, trust boundaries, a data flow diagram, STRIDE, an attack surface or architecture risk review, or 'what could go wrong' with a system or design. Usually invoked via the indra skill.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (4 KB) on GitHub on 5 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the indra plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add dmdhrumilmistry/indra
/plugin install indra@indraOr copy only this skill to ~/.claude/skills/sh-threat-model:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/sh-threat-model &&
cp -R "$tmp/plugins/indra/skills/sh-threat-model" ~/.claude/skills/sh-threat-model &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/sh-threat-model inside it instead.
Copy the skill folder to ~/.agents/skills/sh-threat-model to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/sh-threat-model &&
cp -R "$tmp/plugins/indra/skills/sh-threat-model" ~/.agents/skills/sh-threat-model &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/sh-threat-model inside it instead.
Copy the skill folder to ~/.cursor/skills/sh-threat-model to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/sh-threat-model &&
cp -R "$tmp/plugins/indra/skills/sh-threat-model" ~/.cursor/skills/sh-threat-model &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/sh-threat-model inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/dmdhrumilmistry/indra.git --path plugins/indra/skills/sh-threat-modelOr copy the folder to ~/.gemini/skills/sh-threat-model yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/sh-threat-model:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/sh-threat-model &&
cp -R "$tmp/plugins/indra/skills/sh-threat-model" ~/.copilot/skills/sh-threat-model &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/sh-threat-model inside it instead.
Get the folder:
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.gitThen copy indra/plugins/indra/skills/sh-threat-model into your agent's skills folder as sh-threat-model. Agents that support SKILL.md read one folder per skill.
What it does
- STRIDE threat ranking
- Lists threats across the STRIDE categories and orders them by assessed risk.
- Trust boundary mapping
- Identifies trust boundaries and the controls in place at each one.
- Data flow diagram
- Produces a diagram of how data moves between actors, assets and components.
- Design document review
- Models threats from Markdown, text, ADR or RFC design documents without scanning code.
- Diff-based modelling
- Limits the model to changes since a chosen git branch, tag or commit.
- Security review hunt plan
- Generates a plan of open threats for a follow-up security review to investigate.
Good for
- Threat model my service before we launch it
- Map trust boundaries and data flows in this codebase
- Run STRIDE on this architecture design document
- Assess what changed in this branch since main from a security angle
- Ask what could go wrong with this system design
Sh threat model FAQ
What inputs does Sh threat model need?
A target codebase folder (defaulting to the current directory) or one or more design documents, and optionally a git ref for diff mode.
Does Sh threat model test the running system?
No. It performs static analysis of code and documents only, with no live testing.
Where are the results written?
Into a run directory under a .security-harness folder in the target, including a JSON threat model and a Markdown version.
Which tools does Sh threat model need installed?
No scanners are needed, since a threat model does not run security tools.
How do I install Sh threat model in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/sh-threat-model to use it in all your projects, or to .claude/skills/sh-threat-model in one project. Or install the indra plugin, which includes it: /plugin marketplace add dmdhrumilmistry/indra, then /plugin install indra@indra.
Does Sh threat model run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Sh threat model?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Sh threat model?
The closest alternatives to Sh threat model are Security threat model, Threat modeling, Threat model analyst, Threat model and Security reasoning.
Where this comes from
- Description: from the skill's own SKILL.md.
More from dmdhrumilmistry/indra

Lets an agent triage SIEM alerts and logs, sweep indicators and build evidenced timelines
- Open source
- 44 GitHub stars
- Security

Gives a security review agent persistent Markdown memory of past findings and learnings
- Open source
- 44 GitHub stars
- Knowledge and memory

Security-reviews a GitHub pull request and reports findings as inline comments
- Open source
- 44 GitHub stars
- Developer tools

Publishes security review findings as de-duplicated Jira, GitHub, Confluence or Notion
- Open source
- 44 GitHub stars
- Knowledge and memory

Plans and runs approved purple-team tests to check whether SIEM detections fire
- Open source
- 44 GitHub stars
- Security

Re-checks one earlier security finding against current code or recorded traffic
- Open source
- 44 GitHub stars
- Security







