security-threat-model

Generate repository-grounded threat models with trust boundaries, assets, and mitigations.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the creation of detailed, repository-specific threat models, helping security engineers quickly identify and prioritize potential security risks in codebases.

Core Features & Use Cases

  • Automated Threat Enumeration: Identifies trust boundaries, assets, attacker capabilities, and abuse paths based on repository content.
  • Risk Prioritization: Assigns likelihood, impact, and priority to identified threats with clear justifications.
  • Use Case: When launching a new feature, use this Skill to generate a threat model for the associated codebase, ensuring security considerations are addressed early in the development lifecycle.

Quick Start

Use the security-threat-model skill to threat model the repository located at '/app/src/my_project'.

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?

Generate a threat model by pointing the skill at your repository path to enumerate trust boundaries, assets, attacker capabilities, and abuse paths. The skill requires explicit evidence anchors from the repository content to ground the analysis and identify potential security risks.

What is repository-grounded threat modeling?

Repository-grounded threat modeling is an AppSec process that analyzes actual source code to identify security threats. It enumerates trust boundaries and abuse paths while requiring explicit evidence anchors from the repository, ensuring the threat model reflects the real codebase architecture.

Can I use this for security design reviews of new features?

Yes, you can use this skill for security design reviews of new features by targeting the associated codebase path. It identifies threats and abuse paths early in the development lifecycle, assigning likelihood, impact, and priority to each identified risk with clear justifications.

How are security risks prioritized during the threat modeling process?

Security risks are prioritized by assigning likelihood, impact, and priority levels to identified threats. The skill provides clear justifications for each risk assessment based on the enumerated attacker capabilities and abuse paths found within the repository's trust boundaries.

Does the skill work without explicit evidence from the repository?

No, the skill requires explicit evidence anchors from the repository to generate accurate threat models. It follows a structured workflow that grounds the analysis in actual codebase content, ensuring the identified trust boundaries and abuse paths are verifiable.

What is the best way to identify abuse paths in an application?

The best way to identify abuse paths is through automated threat enumeration based on repository content. The skill maps attacker capabilities against trust boundaries and assets within the codebase, generating a structured analysis of potential abuse paths and corresponding mitigations.