security-threat-model

Generate repository-grounded threat models from trust boundaries, assets, and entry points.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill addresses the gap between generic security checklists and the specific architectural realities of a codebase, helping engineers identify and prioritize actual abuse paths.

Core Features & Use Cases

  • Evidence-Based Modeling: Anchors every threat and architectural claim to specific file paths and code symbols within the repository.
  • Abuse Path Analysis: Focuses on realistic attacker goals like privilege escalation, data exfiltration, and integrity compromise rather than theoretical vulnerabilities.
  • Use Case: Use this skill when onboarding a new service or performing a security review to quickly map trust boundaries, identify entry points, and generate a prioritized list of mitigations.

Quick Start

Ask the AI to perform a security threat model for the current repository path to identify potential abuse paths and necessary 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 generate a threat model grounded in my actual codebase?

To generate a repository-grounded threat model, analyze your codebase to map trust boundaries, identify entry points, and pinpoint specific abuse paths. This anchors every architectural claim to concrete file paths and code symbols.

When do I need architectural risk assessment for application security?

Architectural risk assessment is needed during security reviews or when onboarding a new service. It identifies concrete abuse paths like privilege escalation or data exfiltration, bridging the gap between generic checklists and actual codebase realities.

How do I identify abuse paths in my application architecture?

Identify abuse paths by analyzing your application architecture for realistic attacker goals such as privilege escalation, data exfiltration, and integrity compromise. This analysis focuses on actual architectural realities rather than theoretical vulnerabilities.

Can I use repository threat modeling for prioritized mitigation planning?

Repository threat modeling supports prioritized mitigation planning by generating evidence-backed security analysis. It maps trust boundaries and entry points within your codebase to produce a prioritized list of necessary mitigations.

What is the difference between generic security checklists and codebase-grounded threat models?

Codebase-grounded threat models address specific architectural realities by anchoring claims to repository file paths and code symbols. Generic security checklists lack this evidence-based mapping to actual trust boundaries and concrete abuse paths within the code.