security-threat-model

Generates repository-grounded threat models with trust boundaries, abuse paths, and prioritized mitigations.

Updated Feb 4, 2026
One-click install
npx skills add https://github.com/pchemguy/AISandbox --skill security-threat-model-pchemguy
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: security-threat-model
Source: https://github.com/pchemguy/AISandbox/tree/main/docs/AgentSkills/openai/skills/skills/.curated/security-threat-model
Command: npx skills add https://github.com/pchemguy/AISandbox --skill security-threat-model-pchemguy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Security teams need threat models that reflect the actual codebase rather than generic checklists, but manually mapping trust boundaries, assets, and abuse paths across a repository is slow and error-prone. ## Core Features & Use Cases - Repo-Grounded Analysis: Enumerates components, trust boundaries, entry points, and assets with evidence anchors tied to real repository paths. - Prioritized Threat Enumeration: Produces abuse paths with qualitative likelihood and impact ratings, existing controls, gaps, and concrete mitigations. - Structured Output Contract: Writes a concise Markdown threat model with a Mermaid diagram, threat table, and focus paths for manual security review. - Use Case: Point the Skill at a web service repository before a launch review to receive an AppSec-grade threat model identifying pre-auth risks, data exfiltration paths, and the files most needing deeper review. ## Quick Start Ask the assistant to create a repository-grounded threat model for this codebase with prioritized abuse paths and mitigations.

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 codebase?▼

Provide the repository path and any known context such as deployment model, internet exposure, and data sensitivity. The Skill maps components, trust boundaries, and entry points from repo evidence, then enumerates prioritized abuse paths and writes a Markdown threat model file.

What does a repo-grounded threat model include?▼

It includes a system model with a Mermaid diagram, an assets table, an attacker model, entry points with evidence anchors, top abuse paths, a threat table with likelihood and impact ratings, mitigations, and focus paths for manual security review.

When should I use threat modeling versus a code review?▼

Use threat modeling when you need to understand attacker goals, trust boundaries, and prioritized abuse paths across the whole system. Use code review for line-level defect detection; this Skill explicitly does not trigger for general code review or architecture summaries.

Does the threat model require deployment context to work?▼

No, but context improves accuracy. The Skill infers missing details, marks them as explicit assumptions, and asks 1-3 targeted questions about exposure, auth, and data sensitivity before producing the final report.

What are the limitations of automated threat modeling?▼

Findings depend on evidence discoverable in the repository, so undocumented infrastructure, runtime configuration, and organizational controls may be missed. Conclusions based on unresolved assumptions are marked conditional and should be validated by the service owner.