MCPInstall

threat-modeling-techniques

Threat modeling methodologies using STRIDE, attack trees, and risk assessment for proactive security analysis. Use when designing secure systems, conducting security reviews, or identifying potential attack vectors in applications.

Installs
357
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/nickcrew/claude-cortex --skill threat-modeling-techniques
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads threat-modeling-techniques automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Threat Modeling Techniques

Systematic framework for identifying, analyzing, and mitigating security threats during system design and architecture phases using proven methodologies like STRIDE, attack trees, and risk assessment frameworks.

When to Use This Skill

  • Designing new systems or features with security requirements
  • Conducting security architecture reviews
  • Identifying attack vectors and threat scenarios
  • Assessing security risks before implementation
  • Creating security requirements and controls
  • Evaluating third-party integrations for security impact
  • Planning security testing strategies
  • Documenting security design decisions
  • Training teams on proactive security thinking
  • Supporting security compliance initiatives (SOC 2, ISO 27001)

Core Process

Five-Stage Threat Modeling Process:

  1. Define - Understand the system and create architecture diagrams
  2. Identify - Enumerate threats using structured methodologies (STRIDE, attack trees)
  3. Assess - Evaluate risk severity and likelihood (DREAD scoring)
  4. Mitigate - Design controls and countermeasures
  5. Validate - Review and test security controls

Quick Reference

TaskLoad reference
STRIDE: Spoofing Identityskills/threat-modeling-techniques/references/stride-spoofing.md
STRIDE: Tampering with Dataskills/threat-modeling-techniques/references/stride-tampering.md
STRIDE: Repudiationskills/threat-modeling-techniques/references/stride-repudiation.md
STRIDE: Information Disclosureskills/threat-modeling-techniques/references/stride-disclosure.md
STRIDE: Denial of Serviceskills/threat-modeling-techniques/references/stride-dos.md
STRIDE: Elevation of Privilegeskills/threat-modeling-techniques/references/stride-elevation.md
Attack Treesskills/threat-modeling-techniques/references/attack-trees.md
Data Flow Diagrams (DFD)skills/threat-modeling-techniques/references/data-flow-diagrams.md
DREAD Risk Scoringskills/threat-modeling-techniques/references/dread-scoring.md
Mitigation Strategiesskills/threat-modeling-techniques/references/mitigation-strategies.md
Tools & Processskills/threat-modeling-techniques/references/tools-and-process.md

Core Concepts

STRIDE Methodology

STRIDE categorizes threats into six types:

  • Spoofing: Pretending to be someone/something else (authentication bypass, credential theft)
  • Tampering: Malicious modification of data (MITM attacks, data corruption)
  • Repudiation: Denying actions without proof (lack of audit trails)
  • Information Disclosure: Exposing sensitive data (data leaks, verbose errors)
  • Denial of Service: Making systems unavailable (resource exhaustion, DDoS)
  • Elevation of Privilege: Gaining unauthorized capabilities (privilege escalation, IDOR)

Apply STRIDE to:

  • Each component in data flow diagrams
  • Every trust boundary crossing
  • All data stores and processes
  • External integrations and APIs

Attack Trees

Hierarchical diagrams showing attack paths from goals to methods:

[Root: Attack Goal]
    |
    +-- [OR] Method 1 (alternative paths)
    |       |
    |       +-- [AND] Required Step 1.1
    |       +-- [AND] Required Step 1.2
    |
    +-- [OR] Method 2 (alternative paths)

Use attack trees to:

  • Visualize attack scenarios
  • Identify easiest attack paths
  • Assign attributes (cost, skill, detection likelihood)
  • Prioritize mitigations for high-risk paths

DREAD Risk Scoring

DREAD quantifies threat severity (each criterion scored 0-10, average = risk score):

  • Damage Potential: How much damage if exploited?
  • Reproducibility: How easy to reproduce?
  • Exploitability: How easy to exploit?
  • Affected Users: How many users affected?
  • Discoverability: How easy to discover?

Risk Levels:

  • 7.1-10.0: Critical (immediate action)
  • 5.1-7.0: High (next sprint)
  • 3.1-5.0: Medium (upcoming releases)
  • 0.0-3.0: Low (backlog)

Trust Boundaries

Lines separating different trust levels:

  • Network: Internet → DMZ → Internal
  • Process: User Mode → Kernel, Container → Host
  • User: Anonymous → Authenticated → Admin

At each boundary, verify:

  • Authentication required?
  • Authorization checks enforced?
  • Data encrypted?
  • Inputs validated?
  • Actions logged?

Practical Workflow

1. Scope Definition (30 min)

  • Identify system components in scope
  • Define trust boundaries
  • List assets requiring protection
  • Identify compliance requirements

2. Architecture Decomposition (1 hour)

  • Create data flow diagrams (DFDs)
  • Document external dependencies
  • Identify authentication/authorization points
  • Map data storage locations

3. Threat Identification (1-2 hours)

  • Apply STRIDE to each DFD element
  • Create attack trees for high-value assets
  • Brainstorm threat scenarios with team
  • Use threat modeling tools for suggestions

4. Risk Assessment (1 hour)

  • Apply DREAD scoring to each threat
  • Prioritize threats by risk score
  • Consider business context and compliance
  • Identify quick wins vs. long-term efforts

5. Mitigation Planning (1 hour)

  • Design security controls (eliminate, reduce, transfer, accept)
  • Document mitigation strategies
  • Create security requirements (SEC-### format)
  • Assign ownership for implementation

6. Documentation (30 min)

  • Export threat model diagrams
  • Create security requirements document
  • Document risk acceptance decisions
  • Share with stakeholders

Common Mistakes

Avoid:

  • Threat modeling too late (after implementation complete)
  • Focusing only on external threats (ignore insider threats)
  • Creating static threat models (never updating them)
  • Over-complicating diagrams (too much detail)
  • Ignoring low-likelihood, high-impact threats
  • Failing to document assumptions and decisions
  • Not following through on mitigations

Best Practices

Team Involvement:

  • Developers: Implementation details, code-level threats
  • Architects: System design, integration points
  • Security Team: Threat expertise, attack scenarios
  • Operations: Deployment, monitoring, incident response
  • Product Owners: Business impact, risk acceptance decisions

Process Integration:

  • Design phase: Threat model before implementation
  • Development: Implement controls, create security tests
  • Deployment: Verify controls, enable monitoring
  • Maintenance: Update model when features change

Tools

Microsoft Threat Modeling Tool: Visual DFD editor, automated STRIDE threat generation OWASP Threat Dragon: Open source, cross-platform, web and desktop versions IriusRisk: Commercial platform, DevSecOps integration, compliance mapping ThreatModeler: Collaborative, cloud architecture support

Resources

FAQ

What does the threat-modeling-techniques skill do?

Threat modeling methodologies using STRIDE, attack trees, and risk assessment for proactive security analysis. Use when designing secure systems, conducting security reviews, or identifying potential attack vectors in applications.

How do I install threat-modeling-techniques?

Run npx skills add https://github.com/nickcrew/claude-cortex --skill threat-modeling-techniques in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/threat-modeling-techniques/ (personal) or .claude/skills/threat-modeling-techniques/ (project).

Which AI agents can use threat-modeling-techniques?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is threat-modeling-techniques safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains threat-modeling-techniques?

It is published by nickcrew in nickcrew/claude-cortex. It has 357 recorded installs.

More from nickcrew/claude-cortex

View all →

react-performance-optimization

nickcrew/claude-cortex

React performance optimization patterns using memoization, code splitting, and efficient rendering strategies. Use when optimizing slow React applications, reducing bundle size, or improving user experience with large datasets.

Frontend & Design1.9K installs

owasp-top-10

nickcrew/claude-cortex

OWASP Top 10 security vulnerabilities with detection and remediation patterns. Use when conducting security audits, implementing secure coding practices, or reviewing code for common security vulnerabilities.

Security758 installs

ui-design-aesthetics

nickcrew/claude-cortex

Generates high-quality, non-generic UI designs with a focus on performance, progressive disclosure, and distinctive aesthetics.

Frontend & Design358 installs

token-efficiency

nickcrew/claude-cortex

Compressed communication using symbols and abbreviations. Use when context is limited or brevity is needed.

228 installs

helm-chart-patterns

nickcrew/claude-cortex

Helm chart development patterns for packaging and deploying Kubernetes applications. Use when creating reusable Helm charts, managing multi-environment deployments, or building application catalogs for Kubernetes.

DevOps & Cloud179 installs

repo-cleanup

nickcrew/claude-cortex

Open the skill to read its SKILL.md instructions.

174 installs

Popular security skills

View category →

azure-compliance

microsoft/azure-skills

Run Azure compliance and security audits with azqr plus Key Vault expiration checks. Covers best-practice assessment, resource review, policy/compliance validation, and security posture checks. WHEN: compliance scan, security audit, BEFORE running azqr (compliance cli tool), Azure best practices, Key Vault expiration check, expired certificates, expiring secrets, orphaned resources, compliance assessment.

OfficialSecurity567K installs

minimal-run-and-audit

lllllllama/rigorpilot-skills

Rigor Run skill for README-first deep learning repo reproduction. Use when the task is specifically to capture or normalize evidence from the selected smoke test or documented inference or evaluation command and write standardized reprooutputs/ files, including patch notes when repository files changed. Do not use for training execution, initial repo intake, generic environment setup, paper lookup, target selection, hidden scientific-meaning changes, or end-to-end orchestration by itself.

Security477.4K installs

seo-audit

coreyhaines31/marketingskills

When the user wants to audit, review, or diagnose SEO issues on their site. Also use when the user mentions "SEO audit," "technical SEO," "why am I not ranking," "SEO issues," "on-page SEO," "meta tags review," "SEO health check," "my traffic dropped," "lost rankings," "not showing up in Google," "site isn't ranking," "Google update hit me," "page speed," "core web vitals," "crawl errors," "indexing issues," "stuck on page 2," "striking distance keywords," "title tag rewrite," "low CTR," "local SEO," "Google Business Profile," or "map pack." Use this even if the user just says something vague like "my SEO is bad" or "help with SEO" — start with an audit. For building pages at scale to target keywords, see programmatic-seo. For adding structured data, see schema. For AI search optimization, see ai-seo.

Security238.7K installs

firebase-security-rules-auditor

firebase/agent-skills

Audits Firebase (Firestore, Cloud Storage) security rules for vulnerabilities, privilege escalation, role bypasses, create vs update inconsistencies, resource exhaustion, type safety, size limits, and hasOnly ownership checks. Use when auditing/reviewing rules, running red-team rule assessments, or scoring against auditor checklists. Don't use for Firebase CLI (login, deploy), Auth, Crashlytics, Remote Config, or database queries.

OfficialSecurity139.1K installs

audit

pbakaus/impeccable

Run technical quality checks across accessibility, performance, theming, responsive design, and anti-patterns. Generates a scored report with P0-P3 severity ratings and actionable plan. Use when the user wants an accessibility check, performance audit, or technical quality review.

Security81.9K installs

competitors

coreyhaines31/marketingskills

When the user wants to create competitor comparison or alternative pages for SEO and buyer-facing use. Also use when the user mentions 'alternative page,' 'vs page,' 'competitor comparison,' 'comparison page,' '[Product] vs [Product],' '[Product] alternative,' 'competitive landing pages,' 'how do we compare to X,' 'competitor teardown,' 'audit our competitor pages,' 'are our comparison pages out of date,' or 'competitive asset audit.' Use this for any content that positions your product against competitors. Covers four formats: singular alternative, plural alternatives, you vs competitor, and competitor vs competitor. For auditing existing claims (not researching competitors from scratch, which is competitor-profiling; not technical SEO on these pages, which is seo-audit), use the asset audit here. For internal battle cards and sales-specific competitor docs, see sales-enablement.

Security79.3K installs