Full Threat Modeling Workflow

VerifiedSafe

Orchestrates the complete threat modeling workflow from initialization through reporting, including asset discovery, threat analysis, control verification, compliance mapping, and documentation generation. Use when performing a full security assessment or generating comprehensive threat documentation.

Sby Skills Guide Bot
SecurityAdvanced
6/2/2026
Claude Code
#threat-modeling#risk-analysis#security-assessment#compliance-mapping#architecture-review

Recommended for

Automated summary

Orchestrates the complete threat modeling workflow from initialization through reporting, integrating analysis, verification, and compliance mapping.

Strengths

  • Automates the entire threat modeling process in a single command.
  • Integrates multiple frameworks (STRIDE, PASTA) and compliance standards (OWASP, SOC2, ISO27001).
  • Produces comprehensive documentation including diagrams, risk registers, and control evidence.
  • Verifies security controls directly in the source code.

Limitations

  • Requires existing, well-structured architecture documentation.
  • Can be time-consuming on large or complex systems.
  • Relies on the ability to search the codebase for control verification.
When to use it

Use this skill to perform a full threat model analysis on a well-documented system, generating detailed reports for both technical and non-technical stakeholders.

When not to use it

Do not use it for quick, ad-hoc assessments or when architecture documentation is lacking or incomplete.

Security analysis

Safe
Quality score92/100

The skill uses only safe file and directory tools (Read, Write, Glob, Grep, and restricted Bash commands mkdir and ls) to perform a threat modeling workflow. No destructive commands, network access, or code execution capabilities are present.

No concerns found

How this analysis is made

Examples

Default full threat model
/tm-full --docs ./architecture-docs
Detailed model with PASTA and multiple compliance frameworks
/tm-full --framework pasta --compliance owasp,soc2,iso27001 --report-level detailed --output ./threat-report
Executive summary threat model
/tm-full --docs ./system-design --report-level executive

name: tm-full description: Run the complete threat modeling workflow from initialization through reporting. Orchestrates all other skills in sequence. Use when performing full threat model analysis, running complete security assessment, or generating comprehensive threat documentation. allowed-tools: Read, Write, Glob, Grep, Bash(mkdir:), Bash(ls:)

Full Threat Modeling Workflow

Purpose

Orchestrate the complete threat modeling workflow in a single command:

  1. Initialize - Discover assets and architecture
  2. Analyze - Identify and assess threats
  3. Verify - Check control implementations
  4. Comply - Map to frameworks
  5. Report - Generate comprehensive documentation

Usage

/tm-full [--docs <path>] [--framework stride|pasta] [--compliance <list>] [--output <path>] [--report-level executive|standard|detailed]

Arguments:

  • --docs: Path to architecture documentation (default: ./docs)
  • --framework: Threat framework (default: stride)
  • --compliance: Compliance frameworks, comma-separated (default: owasp)
  • --output: Output directory (default: .threatmodel)
  • --report-level: Report detail level (default: standard)

Workflow Steps

┌─────────────────────────────────────────────────────────────┐
│                    FULL WORKFLOW                             │
├─────────────────────────────────────────────────────────────┤
│                                                             │
│  [1/5] INITIALIZATION                                       │
│  ─────────────────────                                      │
│  • Read architecture documentation                          │
│  • Extract assets and classify                              │
│  • Map data flows                                           │
│  • Identify trust boundaries                                │
│  • Catalog attack surface                                   │
│  • Generate architecture diagrams                           │
│                                                             │
│  Output: assets.json, dataflows.json, trust-boundaries.json │
│          attack-surface.json, diagrams/*.mmd                │
│                                                             │
├─────────────────────────────────────────────────────────────┤
│                                                             │
│  [2/5] THREAT ANALYSIS                                      │
│  ─────────────────────                                      │
│  • Apply STRIDE to each component                           │
│  • Enumerate threats per attack surface                     │
│  • Build attack trees for critical threats                  │
│  • Assess likelihood and impact                             │
│  • Calculate risk scores                                    │
│  • Create risk register                                     │
│                                                             │
│  Output: threats.json, attack-trees.json, risk-register.json│
│                                                             │
├─────────────────────────────────────────────────────────────┤
│                                                             │
│  [3/5] CONTROL VERIFICATION                                 │
│  ─────────────────────────                                  │
│  • Identify required controls                               │
│  • Search codebase for implementations                      │
│  • Verify configurations                                    │
│  • Collect evidence                                         │
│  • Document gaps                                            │
│                                                             │
│  Output: controls.json, gaps.json, verification.json        │
│                                                             │
├─────────────────────────────────────────────────────────────┤
│                                                             │
│  [4/5] COMPLIANCE MAPPING                                   │
│  ───────────────────────                                    │
│  • Map threats to framework requirements                    │
│  • Map controls to requirements                             │
│  • Calculate coverage percentages                           │
│  • Identify compliance gaps                                 │
│                                                             │
│  Output: compliance.json, compliance-report.md              │
│                                                             │
├─────────────────────────────────────────────────────────────┤
│                                                             │
│  [5/5] REPORT GENERATION                                    │
│  ───────────────────────                                    │
│  • Aggregate all findings                                   │
│  • Prioritize risks                                         │
│  • Generate countermeasures                                 │
│  • Create executive summary                                 │
│  • Compile detailed report                                  │
│  • Create baseline snapshot                                 │
│                                                             │
│  Output: risk-report.md, executive-summary.md,              │
│          baseline/snapshot-{date}.json                      │
│                                                             │
└─────────────────────────────────────────────────────────────┘

Progress Display

═══════════════════════════════════════════════════════════════
            THREAT MODELING - FULL WORKFLOW
═══════════════════════════════════════════════════════════════

Project: My Application
Documentation: ./docs/architecture
Framework: STRIDE
Compliance: OWASP, SOC2

───────────────────────────────────────────────────────────────

[1/5] Initializing...
      ├── Scanning documentation...
      ├── Extracting assets... found 14
      ├── Mapping data flows... found 22
      ├── Identifying trust boundaries... found 5
      ├── Cataloging attack surface... found 12 entries
      └── Generating diagrams... done
      ✓ Initialization complete

[2/5] Analyzing threats...
      ├── Applying STRIDE framework...
      ├── Processing 14 assets...
      ├── Analyzing 8 trust boundary crossings...
      ├── Building attack trees for critical threats...
      └── Creating risk register...
      ✓ Threat analysis complete (47 threats identified)

[3/5] Verifying controls...
      ├── Identifying required controls... 29 needed
      ├── Searching codebase...
      ├── Verifying implementations...
      └── Documenting gaps...
      ✓ Verification complete (18 verified, 7 partial, 4 missing)

[4/5] Mapping compliance...
      ├── Mapping to OWASP Top 10...
      ├── Mapping to SOC2...
      └── Calculating coverage...
      ✓ Compliance mapping complete (OWASP: 82%, SOC2: 88%)

[5/5] Generating reports...
      ├── Aggregating findings...
      ├── Prioritizing risks...
      ├── Generating countermeasures...
      ├── Creating executive summary...
      ├── Compiling detailed report...
      └── Creating baseline snapshot...
      ✓ Reports generated

───────────────────────────────────────────────────────────────
                         SUMMARY
───────────────────────────────────────────────────────────────

Discovery:
  • 14 assets discovered
  • 22 data flows mapped
  • 5 trust boundaries identified
  • 12 attack surface entries cataloged

Threats:
  • 47 threats identified
  • 5 critical, 12 high, 18 medium, 12 low
  • 3 unmitigated critical threats

Controls:
  • 29 controls required
  • 62% fully implemented
  • 11 gaps identified (2 critical)

Compliance:
  • OWASP Top 10: 82%
  • SOC2: 88%

───────────────────────────────────────────────────────────────
                    CRITICAL FINDINGS
───────────────────────────────────────────────────────────────

1. [CRITICAL] Credential Stuffing Attack
   Risk: 8.5 | Target: Auth API | Gap: Rate limiting insufficient

2. [CRITICAL] SQL Injection in Legacy Module
   Risk: 8.2 | Target: Reports API | Gap: Queries not parameterized

3. [CRITICAL] JWT Token Theft via XSS
   Risk: 8.0 | Target: Session | Gap: HttpOnly not set

───────────────────────────────────────────────────────────────
                       FILES CREATED
───────────────────────────────────────────────────────────────

.threatmodel/
├── config.yaml
├── state/
│   ├── assets.json
│   ├── dataflows.json
│   ├── trust-boundaries.json
│   ├── attack-surface.json
│   ├── threats.json
│   ├── controls.json
│   ├── gaps.json
│   ├── risk-register.json
│   └── compliance.json
├── diagrams/
│   ├── architecture.mmd
│   ├── dataflow.mmd
│   └── trust-boundaries.mmd
├── reports/
│   ├── risk-report.md
│   ├── executive-summary.md
│   └── compliance-report.md
└── baseline/
    └── snapshot-20250120.json

───────────────────────────────────────────────────────────────
                      NEXT STEPS
───────────────────────────────────────────────────────────────

1. Review risk report: .threatmodel/reports/risk-report.md
2. Address critical findings immediately
3. Share executive summary with stakeholders
4. Create Jira tickets for gaps
5. Schedule follow-up assessment

═══════════════════════════════════════════════════════════════
                  THREAT MODEL COMPLETE
═══════════════════════════════════════════════════════════════

Error Handling

Documentation Not Found

[1/5] Initializing...
      └── ERROR: No documentation found at ./docs

Please specify documentation path:
  /tm-full --docs /path/to/architecture/docs

Or create documentation first.

Partial Failure

[3/5] Verifying controls...
      └── WARNING: Could not access codebase at ./src

Continuing with available information...
Control verification skipped.

To include verification:
  /tm-verify --thorough

Continuing to next step...

Instructions for Claude

When executing this skill:

  1. Parse arguments:

    • Extract --docs, --framework, --compliance, --output, --report-level
    • Use defaults for missing values
  2. Execute Step 1 - Initialize:

    • Follow /tm-init process
    • Display progress
    • Report findings
  3. Execute Step 2 - Threat Analysis:

    • Follow /tm-threats process
    • Use specified framework
    • Include abuse cases
    • Display progress
  4. Execute Step 3 - Verification:

    • Follow /tm-verify process
    • Use thorough mode
    • Collect evidence
    • Display progress
  5. Execute Step 4 - Compliance:

    • Follow /tm-compliance process
    • Map to specified frameworks
    • Display progress
  6. Execute Step 5 - Reporting:

    • Follow /tm-report process
    • Use specified detail level
    • Create baseline
    • Display progress
  7. Handle errors gracefully:

    • Continue if possible
    • Report what couldn't be completed
    • Suggest remediation
  8. Display final summary:

    • Key statistics
    • Critical findings
    • Files created
    • Next steps

Timing Guidance

The full workflow processes multiple phases. Between phases:

  • Display clear progress indicators
  • Show intermediate results
  • Allow for interruption if needed

Reference

This skill orchestrates:

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/full-threat-modeling-workflow-mm5t8brt/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/full-threat-modeling-workflow-mm5t8brt' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/full-threat-modeling-workflow-mm5t8brt/download' --output '.skill-downloads/full-threat-modeling-workflow-mm5t8brt/SKILL.md.part' && mv '.skill-downloads/full-threat-modeling-workflow-mm5t8brt/SKILL.md.part' '.skill-downloads/full-threat-modeling-workflow-mm5t8brt/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

Tools declared by the author (check availability in your agent): Read, Write, Glob, Grep, Bash(mkdir:*), Bash(ls:*)

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/full-threat-modeling-workflow-mm5t8brt/SKILL.md' && test -s '.skill-downloads/full-threat-modeling-workflow-mm5t8brt/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/tm-full' && cp -R '.skill-downloads/full-threat-modeling-workflow-mm5t8brt' '.claude/skills/tm-full'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/full-threat-modeling-workflow-mm5t8brt'

openskills read 'full-threat-modeling-workflow-mm5t8brt'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/full-threat-modeling-workflow-mm5t8brt/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills