About Threat Composer
Threat Composer is an MCP server published by awslabs in the Science category: a simple threat modeling tool to help humans to reduce time-to-value when threat modeling. Conduid read 5 tools from its source: threat_modeling_get_tc_schema, threat_modeling_get_workflow_logs, threat_modeling_list_workflow_sessions, threat_modeling_start_workflow and threat_modeling_validate_tc_schema. No package is published for it, so it installs from a source checkout.
The repository has 802 stars and 129 forks, is licensed Apache-2.0, and its last commit was on 30 Nov 2026. The latest release is v1.0.94 (29 Nov 2026): Bug Fixes ai: Resolve file tool paths before reading and writing (c24fb0e). It follows v1.0.93 (11 Nov 2026), and the 5 most recent releases go back to v1.0.90 (5 Nov 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include threat-modeling, threat-modeling-tool, threat-modelling-tool, threatmodeling, threatmodelling and vscode-extension.
Install
git clone https://github.com/awslabs/threat-composerTools (5)
threat_modeling_get_tc_schemaGet the Threat Composer v1 schema JSON content.threat_modeling_get_workflow_logsGet the workflow logs for a running or completed session.| Parameter | Type | Description |
|---|---|---|
| output_directory * | string | The output directory path returned by start_workflow |
| session_id * | string | The session ID returned by start_workflow |
| tail_lines | integer | Optional number of lines to return from end of log (default: all lines) |
threat_modeling_list_workflow_sessionsList available workflow sessions in a directory.| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum number of sessions to return (default: 50) |
| search_directory * | string | Directory to recursively search for sessions |
| sort_by | string | Sort order - "created_at", "updated_at", or "session_id" (default: "created_at") |
threat_modeling_start_workflowStart a new threat modeling workflow or re-run from previous session.| Parameter | Type | Description |
|---|---|---|
| directory_path * | string | Path to directory to analyze (required) |
| rerun_from_session_id | string | Session ID to re-run from (optional) |
| search_directory | string | Directory to search for rerun session (required if rerun_from_session_id provided) |
threat_modeling_validate_tc_schemaValidate JSON data against the Threat Composer v1 schema.| Parameter | Type | Description |
|---|---|---|
| data | string | Raw JSON string to validate (optional) |
| file_path | string | Path to JSON file to validate (optional) |
Security checks
Static checks derived from the repository 2 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.1K words.
- ✓License declaredThe repository declares the Apache-2.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by pnpm-lock.yaml and packages/threat-composer-ai/uv.lock.
- !No dynamic code executionScanned 532 source files and found 1 call to eval or shell execution, in packages/threat-composer-ai/src/threat_composer_ai/eval/consistency/benchmark.py:165. Review how tool inputs reach them before granting credentials.
1 check has not been run yet.
What the source scan found
- Starts other programs
- 2 callspackages/threat-composer-ai/src/threat_composer_ai/eval/quality.py:163, packages/threat-composer-ai/src/threat_composer_ai/validation/graphviz_validator.py:47
- Outbound network calls
- 3 callspackages/threat-composer-app-browser-extension/src/entrypoints/background.ts:47, packages/threat-composer-app/src/serviceWorkerRegistration.ts:109, packages/threat-composer-app/src/utils/convertToDocx/fetchImage.ts:37
- Writes or deletes files
- 18 callspackages/threat-composer-ai/src/threat_composer_ai/agents/common.py:148, packages/threat-composer-ai/src/threat_composer_ai/agents/common.py:166, packages/threat-composer-ai/src/threat_composer_ai/config/app_config.py:354
- Lockfile
- pnpm-lock.yaml and packages/threat-composer-ai/uv.lock
Pattern matches on the source text of 532 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 1.1K words, fetched 2 days ago. The original in the repository is authoritative.
Read full README