security-threat-model

Generates repository-grounded threat models with trust boundaries, abuse paths, and prioritized mitigations.

Updated Aug 25, 2026
One-click install
npx skills add https://github.com/AliJ021/labelmod-core --skill security-threat-model-alij021
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-threat-model
Source: https://github.com/AliJ021/labelmod-core/tree/main/.claude/skills/security-threat-model
Command: npx skills add https://github.com/AliJ021/labelmod-core --skill security-threat-model-alij021

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Security teams need threat models that reflect the actual codebase rather than generic checklists, but manually mapping trust boundaries, entry points, and abuse paths across a repository is slow and error-prone. ## Core Features & Use Cases - Evidence-Anchored Analysis: Enumerates components, trust boundaries, assets, and entry points with every claim tied to a repository path or symbol. - Prioritized Abuse Paths: Produces attacker-goal-driven threat scenarios with qualitative likelihood, impact, and priority ratings adjusted for existing controls. - Structured Output Contract: Writes a Markdown threat model with a Mermaid diagram, threat table, criticality calibration, and focus paths for manual review. - Use Case: Point the Skill at a web API repository before a release; it maps endpoints and auth flows, validates assumptions with you, then delivers a review-ready threat model file. ## Quick Start Ask the assistant to threat model this repository and produce a prioritized list of abuse paths and mitigations.

Frequently Asked Questions about security-threat-model

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a threat model for a codebase?

Provide the repository path and any known context such as deployment model and internet exposure, then ask for a threat model. The Skill maps components, trust boundaries, and entry points from repo evidence, confirms assumptions with you, and writes a Markdown threat model file.

What does a repo-grounded threat model include?

It includes a system model with a Mermaid diagram, an asset table, attacker capabilities and non-capabilities, entry points with evidence anchors, 5-10 abuse paths, a prioritized threat table, and focus paths for manual security review.

When should I trigger threat modeling versus a code review?

Trigger it only when you explicitly want threat enumeration, abuse paths, or AppSec threat modeling of a codebase or path. It is not intended for general architecture summaries, code review, or non-security design work.

How are threats prioritized in the threat model?

Each threat receives qualitative likelihood and impact ratings with short justifications, combined into a critical, high, medium, or low priority adjusted for existing controls. The Skill states which assumptions most influence the ranking.

Does the threat model require user input before finalizing?

Yes, it summarizes key assumptions and asks 1-3 targeted questions about deployment, exposure, and data sensitivity, then waits for your response. If you cannot answer, it proceeds with explicit assumptions and marks conditional conclusions.