Individual skill
threat-model
Build a threat model for a change, feature, or system. Maps data flows, trust boundaries, assets, and entry points (including agent tool calls, retrieved documents, MCP servers, and memory), then ranks abuse paths and ties each mitigation to a test that proves it. Use for "threat model this" or "what could an attacker do here".
plugins/requie/endostack/skills/threat-model/SKILL.md
Source commit d780783eba4ecc7c8b9429f95c9362df95f07c61
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Network or broad shell
- Last checked
- Nov 4, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 1,532
- Repository last updated
- Nov 6, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- ai-coding Repository topic
- awesome Repository topic
- awesome-list Repository topic
- codex Repository topic
- codex-plugins Repository topic
- openai Repository topic
- codex-skill Repository topic
- codex-skills Repository topic
- marketplace Repository topic
- codex-marketplace Repository topic
- data Derived category
- security Derived category
- testing Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 11,646 bytesreferences/checklist.mddoc · 5,961 bytesreferences/mapper-brief.mddoc · 2,340 bytesreferences/template.mddoc · 1,992 bytes
Read excerpt
# threat-model
Produce `threat-model.md`: a ranked list of concrete ways an attacker can abuse the thing being built, each paired with a mitigation and the test or check that shows the mitigation works. A threat model that lists risks without proof steps gets read once and forgotten. Tying every mitigation to a check turns the model into work items the implementation can be held to.
Run it before implementation when a plan exists, so mitigations land in the plan instead of in a later patch. Run it on existing code when someone asks what an attacker could do with a system you are about to change or expose.
## When to skip
Skip it, with a one-line note in your reply saying why, when the change moves no trust boundary. Examples: a rename, extracting a function, reformatting, a dependency bump with no new capability, or a refactor where every input still arrives through the same validated path and reaches the same sinks with the same privileges. The test is concrete: if the data-flow map you would draw before and after the change is identical, there is nothing new to model.
Do not skip because the change is small. A one-line change that adds a tool to an agent's allowlist, a new outbound HTTP call, a new environment variable read by CI, or a new field passed to an LLM prompt moves a boundary. When in doubt, run step 1 and 2 only; if the map shows a new edge, continue.
For reviewing a finished diff for exploitable bugs, use the `security-review` skill (`../security-review/SKILL.md`) instead. This skill reasons about design; that one hunts defects in code that exists.