model_threats
Generate STRIDE threat models to identify security risks in system architectures. Analyze components, tech stacks, and data sensitivity to create actionable security assessments.
Instructions
Generate a STRIDE threat model for any system architecture. Cost: $0.010 USDC. Service: threatmodel.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| architecture | Yes | ||
| system_type | No | ||
| tech_stack | No | ||
| data_sensitivity | No |
Implementation Reference
- src/index.ts:166-223 (handler)The tool 'model_threats' is not hardcoded but dynamically fetched from a registry. This handler manages the execution of any tool, including 'model_threats', by looking it up in the registry and invoking the corresponding API endpoint.
server.setRequestHandler(CallToolRequestSchema, async (request) => { const { name, arguments: args } = request.params; let registry: Registry; try { registry = await fetchRegistry(); } catch (error) { return { content: [ { type: "text", text: JSON.stringify({ error: "Failed to fetch tool registry", detail: String(error) }), }, ], }; } const tool = registry.tools.find((t) => t.name === name); if (!tool) { return { content: [ { type: "text", text: JSON.stringify({ error: `Tool '${name}' not found`, available_tools: registry.tools.map((t) => t.name), }), }, ], }; } try { const result = await callTool(tool, args as Record<string, unknown>); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; } catch (error) { return { content: [ { type: "text", text: JSON.stringify({ error: "Tool call failed", tool: name, service: tool.service, detail: String(error), }), }, ], }; } });