A simple threat modeling tool to help humans to reduce time-to-value when threat modeling
A simple threat modeling tool to help humans to reduce time-to-value when threat modeling
An ecosystem of threat modeling tools to help humans reduce time-to-value when threat modeling.
Live Demo | Documentation | Getting Started
Threat Composer is a threat modeling ecosystem that helps you identify security issues and develop strategies to address them in the context of your system. The various tools has been designed to support the iterative and non-linear nature of real-world threat modeling.
Threat Composer is available in multiple complementary tools to fit your workflow:
Hosted or Self-Hosted Static Website
Automated Threat Modeling
Native Threat Modeling in Your IDE
.tc.json files directly in VS CodeVS Code Extension Documentation
View Threat Models on the Web
.tc.json files on GitHub, GitLab, Bitbucket and Amazon CodeCatalystBrowser Extension Documentation
Web Application: Visit the live demo to start threat modeling immediately in your browser.
VS Code: Install the AWS Toolkit extension to view and edit local .tc.json files.
Generate threat models automatically from your codebase with the CLI, or integrate with AI assistants using the MCP server:
# Install with uv (provides both CLI and MCP server)
uv tool install --from "git+https://github.com/awslabs/threat-composer.git#subdirectory=packages/threat-composer-ai" threat-composer-ai
# Use the CLI to analyze your codebase
threat-composer-ai-cli /path/to/your/codeMCP Server Configuration (for Kiro, Cline, Claude Desktop, etc.):
{
"mcpServers": {
"threat-composer-ai": {
"command": "threat-composer-ai-mcp",
"env": {
"AWS_PROFILE": "your-profile-name",
"AWS_REGION": "us-west-2"
}
}
}
}Or run directly with uvx (no installation required):
{
"mcpServers": {
"threat-composer-ai": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/awslabs/threat-composer.git#subdirectory=packages/threat-composer-ai",
"threat-composer-ai-mcp"
]
}
}
}The MCP server provides tools for starting workflows, monitoring progress, managing sessions, and validating threat models against the Threat Composer schema.
** Best Experience**: For the best experience when using the CLI from VS Code/Kiro terminal or when using AI assistants via MCP, install the AWS Toolkit extension which includes the Threat Composer VS Code extension. This allows you to view and edit the generated .tc.json files directly in your IDE with full visual editing capabilities.
See AI/CLI/MCP Documentation for complete installation and usage instructions.
Deploy Threat Composer to your AWS account:
git clone https://github.com/awslabs/threat-composer.git
cd threat-composer
./scripts/deployDev.shSee Web App Documentation for detailed deployment options including CI/CD setup.
We've included an example threat model of the Threat Composer Web App itself. This provides a reference point for getting started.
To view it, switch to the Example workspace in the application. Note: Changes in the Example workspace are not saved.
We value your input!
This is a monorepo containing multiple packages:
| Package | Description | Documentation |
|---|---|---|
| threat-composer | Core UI components library | README |
| threat-composer-app | Web application (SPA) | README |
| threat-composer-app-browser-extension | Browser extension | README |
| threat-composer-infra | AWS CDK infrastructure | README |
| threat-composer-ai | AI CLI & MCP server (Experimental) | README |
Contributions are welcome! Please see our Contributing Guidelines for details on:
See CONTRIBUTING for information on reporting security issues.
This project is licensed under the Apache-2.0 License. See the LICENSE file for details.
Built with:
No open issues yet, or sync has not completed.