Skip to content
SPECIFICTION
Get listed

pytm vs ThreatForge

pytm

github.com

ThreatForge

threatforge.dev

Side by side

FigurepytmThreatForge
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
Web—Yes
WindowsYesYes
macOSYesYes
LinuxYesYes
Plans published11
Spec score · Threat Modeling Software7.6 (#10)7.5 (#16)
Intended usersThe project describes its goal as shifting threat modeling earlier and making it more automated and developer-centric.The maker positions Threat Forge as a developer-friendly alternative for teams seeking threat modeling without an enterprise procurement cycle.

Plans

pytm

  • Open-source pytmFree

pytm pricing →

ThreatForge

  • Threat ForgeFree

ThreatForge pricing →

In their own words

pytm

pytm is a free, open-source Python framework for creating threat models from architectural descriptions. A model is defined in Python with elements such as servers, data stores, actors, processes, data flows, and trust boundaries. From it, pytm can generate data flow diagrams, sequence diagrams, and relevant threats. Templates can produce reports with diagrams and findings, and a RevealMD template can create slides for browser presentation. Data flow diagrams use Graphviz DOT, while sequence diagrams use PlantUML. Models can be imported from JSON with pytm's Python load function. Users can supply a custom threats file and change finding attributes such as CVSS score, response text, and severity. Requirements include Python 3.11 or later, Graphviz, Java OpenJDK 10 or 11, and plantuml.jar; Linux and macOS are listed, while Windows use is documented through Devbox in WSL. The project also documents container and Devbox dependency workflows. The README warns that strings in threats.json are evaluated with eval(), so the file's permissions need protection against unauthorized changes.

Visit github.com

ThreatForge

ThreatForge is an open-source app for building threat models with diagrams, automated STRIDE analysis, and AI-assisted threat discovery. Its drag-and-drop canvas has 44 typed components across 10 categories, plus trust boundaries, annotations, and automatically routed connections. A built-in rules engine generates threats from component types and data-flow patterns, and works offline. Users can also chat with Claude or GPT about a model to suggest threats, propose mitigations, or ask security questions; this uses their own API key. Models are human-readable YAML files that can be compared in Git diffs, reviewed in pull requests, and versioned. Six templates cover cloud microservices, e-commerce, mobile banking, SaaS, IoT smart buildings, and healthcare systems. ThreatForge supports Linux, macOS, Windows, and the web. The maker says there is no telemetry and models stay on the user's machine. No account is required to start. The full app is available for free under Apache 2.0, with no freemium upsells or enterprise-only features. The maker describes the download as approximately 10 MB.

Visit threatforge.dev