security-threat-model

Identify repository-specific security threats and document evidence-backed threat models.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Threat modeling for repository security is complex and error-prone; this Skill provides a structured, evidence-backed approach to enumerate trust boundaries, assets, attacker capabilities, abuse paths, and mitigations tailored to a codebase.

Core Features & Use Cases

  • Repository-specific threat modeling anchored to evidence in the repo.
  • Enumerates assets, trust boundaries, attacker capabilities, abuse paths, and mitigations.
  • Produces a concise, actionable threat model suitable for AppSec reviews and risk assessments.

Quick Start

Run the threat-model process on the target repository to generate an evidence-backed model.

Frequently Asked Questions about security-threat-model

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform threat modeling for a specific codebase?

Threat modeling for a codebase involves identifying repository-specific components, data flows, and trust boundaries, then tying attacker goals to assets and mitigations. This Skill generates an evidence-backed threat model anchored to repository paths for AppSec reviews.

What is evidence-based threat modeling in application security?

Evidence-based threat modeling anchors security analysis to actual repository paths and code structures. It identifies trust boundaries, enumerates attacker capabilities and abuse paths, and outputs a structured model linking threats to assets and mitigations for risk assessment.

How do I identify trust boundaries and assets for a repository security review?

Identifying trust boundaries and assets requires analyzing the repository's data flows and component architecture. This Skill performs repository analysis to map entry points, document attacker capabilities, and produce a concise threat model suitable for AppSec risk assessments.

Can I generate a structured threat model tied to specific repository paths?

Yes, you can generate a structured threat model tied to repository paths. The process performs evidence-backed repository analysis to document primary components, data flows, and trust boundaries, mapping attacker goals to entry points and mitigations.

Does this approach work for AppSec risk assessment without external dependencies?

Yes, this approach works for AppSec risk assessment without external dependencies. It performs repository-grounded analysis internally to enumerate assets, trust boundaries, and abuse paths, outputting an actionable threat model tailored to the codebase.

What is the best way to document abuse paths and attacker capabilities for application security?

The best way to document abuse paths and attacker capabilities is through structured, evidence-backed threat modeling. This Skill analyzes repository-specific data flows and trust boundaries to enumerate attacker capabilities and map them to assets and mitigations.