security-threat-model

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

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

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-grounded threat models, helping security engineers identify and prioritize potential abuse paths and vulnerabilities before they are exploited.

Core Features & Use Cases

  • Repo-Grounded Analysis: Creates threat models directly from codebase evidence, not generic checklists.
  • Abuse Path Enumeration: Identifies concrete sequences of attacker actions leading to security incidents.
  • Prioritized Risk Assessment: Assesses likelihood and impact to rank threats, guiding security review efforts.
  • Use Case: You need to understand the security risks of a new microservice. This Skill will analyze its codebase, identify trust boundaries and assets, enumerate potential threats like data exfiltration or privilege escalation, and provide a prioritized list of risks and recommended mitigations.

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

Threat modeling from a codebase involves analyzing repository evidence to enumerate trust boundaries, assets, attacker capabilities, and abuse paths. This skill automates that process by generating a concise Markdown threat model with prioritized risks and recommended mitigations.

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

Repository-grounded threat modeling analyzes actual codebase evidence to identify concrete abuse paths and security impacts, rather than applying generic checklists. It prioritizes realistic attacker goals and produces a prioritized risk assessment tailored to your specific application architecture.

Can I use this for AppSec design reviews on a new microservice?

Yes, you can use this for AppSec design reviews on a new microservice. It analyzes the microservice codebase to identify trust boundaries, enumerate potential threats like data exfiltration or privilege escalation, and output a prioritized list of risks and recommended mitigations.

How do I enumerate abuse paths and attacker capabilities during a security review?

Enumerating abuse paths during a security review requires identifying concrete sequences of attacker actions leading to security incidents. This skill automates abuse path enumeration by analyzing your repository evidence to map attacker capabilities and prioritize realistic attack goals.

Does this threat modeling approach require any external security dependencies or tools?

No, this threat modeling approach does not require external dependencies or tools to function. It operates directly on your repository evidence using its internal scripts and references to assess risk likelihood, impact, and generate the final Markdown threat model.