security-threat-model

Generate repository-grounded AppSec threat models covering assets, trust boundaries, abuse paths, and mitigations.

507|40|Updated Apr 26, 2026
One-click install
npx skills add https://github.com/waybarrios/opencode-power-pack --skill security-threat-model-waybarrios
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: security-threat-model
Source: https://github.com/waybarrios/opencode-power-pack/tree/main/skills/security-threat-model
Command: npx skills add https://github.com/waybarrios/opencode-power-pack --skill security-threat-model-waybarrios

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Security teams often produce generic threat-model checklists disconnected from the actual codebase. This Skill produces an AppSec-grade threat model anchored to real evidence in a specific repository, with explicit assumptions, prioritized risks, and concrete mitigations. ## Core Features & Use Cases - Evidence-Anchored Modeling: Maps components, data flows, trust boundaries, and entry points directly to repo paths and symbols, with a compact Mermaid diagram. - Prioritized Threat Enumeration: Generates abuse paths with likelihood and impact reasoning, stable threat IDs (TM-001...), and a criticality calibration tailored to the repo. - Assumption Validation Workflow: Pauses to confirm deployment, exposure, and data-sensitivity context with the user before producing the final report. - Use Case: Point it at a web service repository before a launch review to get a Markdown threat model with a threat table, focus paths for manual review, and mitigation recommendations. ## Quick Start Ask the AI to create a threat model for this repository and save the report as a Markdown file.

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

Provide the repo path and any known context such as deployment model and internet exposure. The Skill maps components, trust boundaries, and entry points from code evidence, then enumerates prioritized threats and writes a Markdown report named after the repository.

What does a threat model report include?▼

The report contains an executive summary, scope and assumptions, a system model with a Mermaid diagram, an assets table, an attacker model, abuse paths, a threat table with likelihood and impact, criticality calibration, and focus paths for manual security review.

When should I use threat modeling instead of a code review?▼

Use this Skill only for explicit threat-modeling requests, not general architecture analysis or code review. It focuses on attacker goals, abuse paths, and risk prioritization rather than finding individual bugs or style issues.

Does the threat model require user input before finishing?▼

Yes. Before producing the final report, the Skill summarizes key assumptions and asks one to three targeted questions about deployment, exposure, and data sensitivity. If you cannot answer, it proceeds with explicit assumptions and marks conditional conclusions.

How are threats prioritized in the report?▼

Each threat receives qualitative likelihood and impact ratings (low, medium, high) with short justifications, combined into a priority of critical, high, medium, or low. Existing controls found in the repo adjust the ranking, and the assumptions influencing it are stated.