add_threat
Add new threats to your threat model, either individually or in batch. Define source, prerequisites, action, impact, and apply STRIDE categories to capture threats effectively.
Instructions
Add a new threat to the model. Supports batch operations via the 'items' parameter.
This tool adds one or more threats to the threat model. IMPORTANT: Each text field must be 200 characters or fewer to comply with the Threat Composer schema. For single item: provide threat_source, prerequisites, threat_action, threat_impact directly. For batch: provide a list of threat dicts in the 'items' parameter.
Args: ctx: MCP context for logging and error handling threat_source: Source of the threat, max 200 chars (required for single item mode) prerequisites: Prerequisites for the threat, max 200 chars (required for single item mode) threat_action: Action performed by the threat, max 200 chars (required for single item mode) threat_impact: Impact of the threat, max 200 chars (required for single item mode) category: STRIDE category of the threat severity: Severity of the threat likelihood: Likelihood of the threat affected_components: List of component IDs affected by the threat affected_assets: List of asset IDs affected by the threat tags: List of tags for the threat items: Optional list of threat dicts for batch operation
Returns: A confirmation message with the threat ID(s)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | ||
| items | No | ||
| category | No | ||
| severity | No | ||
| likelihood | No | ||
| prerequisites | No | ||
| threat_action | No | ||
| threat_impact | No | ||
| threat_source | No | ||
| affected_assets | No | ||
| affected_components | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |