Getting Started with ThreatForest¶
Welcome to ThreatForest! This guide will help you get up and running with AI-powered threat modeling in minutes.
Installation Steps¶
Step 1: Install ThreatForest¶
# Clone repository
git clone https://github.com/aws-samples/sample-agentic-attack-tree-generator.git
cd sample-agentic-attack-tree-generator
# Create virtual environment
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install
pip install .
# Run ThreatForest
threatforest
Step 2: Configure your LLM provider¶
AWS Bedrock recommended
AWS Bedrock is fully tested and supported. Other providers (Anthropic, OpenAI, Gemini, Ollama, SageMaker) are experimental.
Configure an AWS profile with IAM permissions for:
bedrock:InvokeModelbedrock:InvokeModelWithResponseStream
Set your API key for Anthropic, OpenAI, or Gemini — or point to a local Ollama instance. See Configuration for all provider options.
Run the configuration wizard (or use the Configure page in the web console):
Step 3: Prepare Your Project¶
At minimum, ThreatForest needs one of the following in your project directory:
- ThreatComposer file (
.tc.json) - Recommended, created at threat-composer - README.md - Application description and architecture overview
- Architecture diagrams - PNG, PDF, Mermaid, or other diagram formats
Quick Setup:
Learn More
See the User Guide → Preparing Your Project for complete details on supported formats and best practices.
Step 4: Run Your First Analysis¶
Opens the web console at http://localhost:8000 automatically. From there:
- Go to Applications and select your project
- Click New Run to start an analysis
- Watch real-time progress on the Run page
- View results in the interactive dashboard when complete
Next Steps¶
Now that you have ThreatForest installed, explore these guides:
🚀 Running ThreatForest
Web console, terminal mode, and CLI options
📁 Preparing Your Project
Optimize inputs for better threat analysis results
📊 Understanding Results
Explore outputs and use the interactive dashboard
⚙️ Configuration
LLM providers, config file, and advanced settings
Need Help?¶
Having issues? Check the FAQ Troubleshooting section for common problems and solutions.