security-threat-model

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

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

Core Features & Use Cases

  • Repository-Grounded Analysis: Creates threat models directly from codebase analysis, not generic checklists.
  • Abuse Path Enumeration: Identifies concrete attack sequences and their potential impact.
  • Mitigation Recommendations: Suggests specific security controls and focus areas for review.
  • Use Case: A security engineer needs to assess the security posture of a new microservice. This Skill can analyze the service's codebase, identify trust boundaries, enumerate potential threats like data exfiltration or privilege escalation, and recommend specific code changes or architectural adjustments.

Quick Start

Generate a repository-grounded threat model for the codebase located at /path/to/your/codebase.

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 source code repository?

To generate a threat model from your source code repository, analyze the codebase to enumerate trust boundaries, assets, attacker capabilities, and abuse paths, producing a concise Markdown report with mitigation recommendations.

What is repository-grounded threat modeling and how does it differ from generic security checklists?

Repository-grounded threat modeling analyzes your actual codebase to identify specific trust boundaries and abuse paths, unlike generic security checklists. It produces a Markdown threat model tailored to your code's unique architecture and potential vulnerabilities.

Can I use this AppSec threat modeling approach for a new microservice codebase?

Yes, you can use this AppSec threat modeling approach for a new microservice codebase. It analyzes the service's code to identify trust boundaries, enumerate threats like data exfiltration or privilege escalation, and recommend specific architectural adjustments.

What does a codebase security analysis cover when enumerating abuse paths?

Codebase security analysis covers the enumeration of concrete attack sequences, attacker capabilities, and potential impact. It identifies abuse paths within your repository and suggests specific security controls and focus areas for code review.

When should I avoid using automated threat modeling for code review?

You should avoid using automated threat modeling for general code review or non-security design tasks. This approach is triggered explicitly for codebase threat enumeration, focusing solely on security posture, vulnerabilities, and architectural risk assessment.

What is the best way to identify trust boundaries and attacker capabilities in my application?

The best way to identify trust boundaries and attacker capabilities is to perform a repository-grounded analysis of your application code. This enumerates potential abuse paths, assesses security posture, and outputs a concise Markdown threat model with mitigations.