security-threat-model

Generate repository-grounded threat models with prioritized risks and mitigations.

5|Updated Oct 22, 2025
One-click install
npx skills add https://github.com/marchatton/agent-skills --skill security-threat-model-marchatton
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-threat-model
Source: https://github.com/marchatton/agent-skills/tree/main/.agents/skills/05-review/security/security-threat-model
Command: npx skills add https://github.com/marchatton/agent-skills --skill security-threat-model-marchatton

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the generation of repository-grounded threat models, identifying critical security risks and providing actionable mitigation advice.

Core Features & Use Cases

  • Repository-Specific Threat Modeling: Analyzes codebase to identify trust boundaries, assets, attacker capabilities, and abuse paths.
  • Prioritized Risk Assessment: Enumerate threats with explicit likelihood and impact reasoning, assigning a priority.
  • Actionable Recommendations: Suggests concrete mitigations and focus paths for manual security review.
  • Use Case: A development team can use this Skill to proactively identify and address security vulnerabilities in their new microservice before deployment, ensuring a robust security posture.

Quick Start

Use the security-threat-model skill to generate a threat model for the current repository.

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 for my codebase?

A repository-grounded threat model analyzes your actual source code to identify security risks, rather than relying on generic design diagrams. It maps trust boundaries, assets, and attacker capabilities specific to your application's implementation to find concrete abuse paths.

How does automated threat modeling prioritize security risks?

Automated threat modeling prioritizes security risks by evaluating explicit likelihood and impact reasoning for each identified abuse path. It assigns a priority level to each threat, helping AppSec engineers focus manual code review efforts on the most critical vulnerabilities first.

Can I use this for proactive AppSec risk assessment before deployment?

Yes, you can use this Skill for proactive AppSec risk assessment before deployment. It analyzes your new microservice or application codebase to identify trust boundaries and potential abuse paths, ensuring a robust security posture prior to release.

What's the best way to identify abuse paths in source code?

The best way to identify abuse paths in source code is to analyze attacker capabilities against mapped trust boundaries and assets within the repository. This Skill automates that process, enumerating concrete abuse paths and providing actionable mitigation recommendations.

Does this threat modeling approach require external dependencies?

No, this threat modeling approach requires no external dependencies to function. It operates directly on your repository contents using built-in scripts and references to enumerate security risks and generate actionable mitigation advice.