Skip to content

🌳 ThreatForest [samples-agentic-attack-tree-generator]

AI powered threat modeling and attack tree generator

Get comprehensive threat models for your application, with autonomous AI agents that analyze, generate, and visualize attack trees mapped to MITRE ATT&CK

ThreatForest Demo

Get Started

💻 GitHub Repository


✨ What is ThreatForest?

🤖 Autonomous Agents

A pipeline of specialized AI agents developed by threat modeling and data science experts, built on the Strands framework — scanner, threat identifier, attack tree generator, TTP mapper, and mitigation advisor — run automatically in sequence with parallel per-threat processing

🛡️ MITRE ATT&CK Integration

Automatically maps attack steps to TTPs (Tactics, Techniques, and Procedures) using semantic similarity and vector embeddings

📊 Interactive Dashboards

Explore threats visually with interactive dashboards, complete with filtering and real-time search

⚙️ AWS Bedrock Support

Officially supports AWS Bedrock (Claude models). Other providers (Anthropic, OpenAI, Gemini, Ollama) are experimental and not fully tested

🚀 Quick Example

Generate comprehensive attack trees in minutes:

Prerequisites

Before starting, ensure you have Python 3.11+ and an LLM provider configured. AWS Bedrock is fully supported and recommended.

ThreatForest Demo

🎯 Key Features

Intelligent Analysis

Repository Scanning

Scanner Agent autonomously navigates your project using Strands tools to discover:

  • Architecture diagrams and documentation
  • Technology stack and cloud provider
  • Data flows and trust boundaries
  • Auth mechanisms and entry points

Threat Identification

Threat Agent reads scanner context and produces a structured threat list from:

  • ThreatComposer workspaces (.tc.json)
  • JSON, YAML, and Markdown formats
  • AI-generated threats when no file exists

Parallel Analysis

Per-threat pipeline runs concurrently for every identified threat:

  • Attack tree generation
  • MITRE ATT&CK TTP mapping (ATTACK-BERT embeddings)
  • Mitigation recommendations

💼 Use Cases

  • 🛡️ Security Teams


    Automate threat modeling, generate attack trees, map to MITRE ATT&CK for compliance

  • 🔄 DevSecOps


    Integrate into CI/CD, analyze changes, generate security documentation

  • 🏗️ Architects & Developers


    Understand security implications, identify vulnerabilities early, learn attack patterns

  • 📋 Compliance & Auditors


    Document threats, demonstrate due diligence, generate compliance reports


📊 What You Get

⭐ Interactive Dashboard

ThreatForest DashboardInteractive dashboard with graph visualization

Features:

  • Visual network graph with pan/zoom
  • Interactive node exploration
  • Real-time filtering and search
  • MITRE ATT&CK technique details
  • Expandable mitigation strategies
  • Export and sharing capabilities

🔒 Privacy & Security

Data Privacy

ThreatForest sends application context to your configured LLM provider for analysis. AWS Bedrock provides enterprise-grade data handling. For other providers, review their data policies.

Best Practices:

  • Use AWS Bedrock for production workloads (officially supported)
  • Remove secrets and credentials from project files before analysis
  • Review generated output for any sensitive information
  • Store outputs in secure, access-controlled locations

🆘 Need Help?