security-threat-model

Generate repository-grounded Markdown threat models with trust boundaries and abuse paths.

Updated Mar 14, 2026
One-click install
npx skills add https://github.com/Moliboy5000/.claude --skill security-threat-model-moliboy5000
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-threat-model
Source: https://github.com/Moliboy5000/.claude/tree/main/skills/security-threat-model
Command: npx skills add https://github.com/Moliboy5000/.claude --skill security-threat-model-moliboy5000

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation of detailed, repository-specific threat models, identifying potential security vulnerabilities and abuse paths within a codebase.

Core Features & Use Cases

  • Repository-Grounded Analysis: Generates threat models directly from code and documentation, ensuring relevance and accuracy.
  • Abuse Path Enumeration: Identifies and prioritizes realistic attack scenarios and their potential impact.
  • Mitigation Recommendations: Suggests concrete security controls and focus areas for manual review.
  • Use Case: A security engineer needs to assess the risk posture of a new microservice. They can use this Skill to quickly generate a threat model that highlights critical trust boundaries, potential data exfiltration paths, and recommended security hardening steps.

Quick Start

Use the security-threat-model skill to generate a threat model for the current repository, focusing on the 'api/' directory.

Frequently Asked Questions about security-threat-model

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

FAQPage Schema
How do I generate a threat model from my codebase?

Threat modeling a microservice involves mapping trust boundaries, data exfiltration paths, and attacker capabilities. This Skill automates that AppSec analysis directly from repository code, producing a Markdown threat model highlighting critical risks and hardening steps for new services.

What is repository-grounded threat modeling and when do I need it?

Abuse path enumeration is the process of identifying and prioritizing realistic attack scenarios within a codebase. This Skill performs abuse path enumeration by mapping attacker capabilities against trust boundaries and assets, outputting prioritized security risks and concrete mitigation recommendations.

Can I scope a threat model to a specific directory like my API endpoints?

Yes, you can generate a threat model for a specific directory by directing the analysis to target that path. The Skill scopes its repository-grounded assessment, enumerating assets and abuse paths exclusively within the specified directory to provide concise and relevant security findings.

Does this Skill provide general architecture summaries for non-security design work?

No, this Skill does not provide general architecture summaries. It is triggered exclusively by explicit requests for codebase threat modeling, abuse path enumeration, or AppSec risk assessment, avoiding non-security design work to focus strictly on identifying vulnerabilities and mitigations.

What format does the codebase threat model output use?

The threat model output is a concise Markdown document. It systematically details identified trust boundaries, assets, attacker capabilities, abuse paths, and suggested security controls, providing a structured format for security engineers to review and implement mitigations.

What's the best way to enumerate attack scenarios and prioritize security risks in a repository?

The best way to enumerate attack scenarios is to map attacker capabilities against trust boundaries and assets within the code. This Skill automates that risk assessment, prioritizing realistic abuse paths and suggesting concrete security controls to focus manual review efforts effectively.