threat-modeling

Identify and document security threats in codebases into a structured THREAT_MODEL.md.

125|42|Updated May 19, 2025
One-click install
npx skills add https://github.com/SocketDev/socket-mcp --skill threat-modeling-socketdev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: threat-modeling
Source: https://github.com/SocketDev/socket-mcp/tree/main/.claude/skills/fleet/threat-modeling
Command: npx skills add https://github.com/SocketDev/socket-mcp --skill threat-modeling-socketdev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Identify and document security threats in codebases to produce a formal THREAT_MODEL.md that guides mitigations using a structured schema.

Core Features & Use Cases

  • Supports two modes: "interview" (owner input) and "bootstrap" (code + vulnerability history) to seed threat models.
  • Emits THREAT_MODEL.md conforming to the fleet schema, enabling integration with downstream triage tools.
  • Provides provenance, open questions, and recommended mitigations to support risk management workflows.

Quick Start

Invoke the fleet threat-modeling workflow against a local target directory to produce a complete THREAT_MODEL.md.

Frequently Asked Questions about threat-modeling

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a threat model from my codebase?

To generate a threat model from your codebase, you can run the threat-modeling workflow against your local target directory to automatically produce a formal THREAT_MODEL.md document. It reads your target code, design documents, and vulnerability history to classify validated threats.

What is STRIDE threat modeling and how does it apply to code?

STRIDE threat modeling is a structured risk-assessment technique used to identify and validate security threats in your code. This approach applies STRIDE to analyze your codebase, document findings, and output a formal THREAT_MODEL.md with recommended mitigations.

Can I create a security threat model without any manual input?

Yes, you can create a security threat model without manual input by using the bootstrap mode. This mode automatically seeds the threat model by directly analyzing your existing code and vulnerability history to produce the structured THREAT_MODEL.md output.

How do I document security threats and mitigations for a code audit?

To document security threats and mitigations for a code audit, use the threat-modeling workflow to generate a THREAT_MODEL.md file. It conforms to a structured schema and includes sections for provenance, open questions, and recommended mitigations to support risk management.

What is the best way to integrate threat modeling into risk management workflows?

The best way to integrate threat modeling into risk management workflows is by emitting a structured THREAT_MODEL.md file. This standardized output conforms to a fleet schema, enabling seamless integration with downstream triage tools and providing provenance for identified threats.