pytm
OfficialProgrammatic STRIDE threat modeling in Python
AuthorAgentSecOps
Version1.0.0
Installs0
System Documentation
What problem does it solve?
pytm provides a programmatic approach to threat modeling by enabling STRIDE-based analysis and automated threat identification directly from Python code, reducing manual diagramming and documentation effort.
Core Features & Use Cases
- Programmatic threat modeling using Python code with pytm
- Automatic generation of Data Flow Diagrams (DFDs) and STRIDE threat enumeration
- Threat reports and risk insights aligned with major frameworks (STRIDE, OWASP, MITRE-ATT&CK, NIST)
- CI/CD integration for shift-left security and architecture-as-code workflows
- Threat modeling maintained as code for version control and automation
Quick Start
Create a minimal threat model in Python using pytm and run the process to generate threats and a DFD.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: pytm Download link: https://github.com/AgentSecOps/SecOpsAgentKit/archive/main.zip#pytm Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.