security-threat-model

Generate repository-grounded threat models enumerating trust boundaries, assets, and abuse paths.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation of detailed, repository-specific threat models, identifying potential security vulnerabilities and abuse paths within a codebase.

Core Features & Use Cases

  • Automated Threat Modeling: Generates AppSec-grade threat models based on repository content.
  • Abuse Path Enumeration: Identifies and prioritizes realistic attacker goals and concrete impacts.
  • Mitigation Recommendations: Suggests specific security controls and focus areas for manual review.
  • Use Case: A development team is about to release a new microservice. They can use this Skill to proactively identify potential security risks, understand the attack surface, and implement necessary mitigations before deployment.

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 for an existing codebase repository?

To generate a threat model for a repository, this Skill analyzes the codebase content to enumerate trust boundaries, assets, attacker capabilities, and abuse paths. It produces AppSec-grade threat models grounded directly in your repository's specific code structure.

What is repository-grounded threat modeling and how does it differ from general code review?

Repository-grounded threat modeling focuses on identifying security vulnerabilities and realistic attacker abuse paths within a specific codebase. Unlike general code review or architecture summaries, it strictly enumerates trust boundaries, assets, and mitigations based on the actual repository content.

Can I use this to enumerate abuse paths and assess risk for a new microservice?

Yes, you can use this Skill to assess risk and enumerate abuse paths for a new microservice. It identifies attacker capabilities and concrete impacts, suggesting specific security controls and focus areas for manual review before deployment.

When do I need to perform AppSec threat modeling on my source code paths?

You need AppSec threat modeling when preparing to release a service or feature and must proactively identify security risks. It helps map the attack surface by detailing trust boundaries, assets, and abuse paths directly from your source code.

Does this threat modeling approach provide specific security mitigations for identified vulnerabilities?

Yes, the threat modeling approach provides specific mitigation recommendations. After identifying potential security vulnerabilities and prioritizing realistic attacker goals, it suggests targeted security controls and highlights areas requiring manual review.

What are the limitations of using automated threat modeling for security risk assessment?

Automated threat modeling is limited to generating repository-specific threat models, abuse paths, and mitigations. It is explicitly triggered for AppSec threat modeling and avoids providing general architecture summaries or conducting standard code reviews.