Skip to content
Back to skills

Threat Modeling

ASecurity

Threat model software, architecture, features or trust-boundary changes. Identify assets, data flows, attacker capabilities, security invariants, abuse cases and mitigations.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 5, 2026
ai-agentsrustgogitapici/cdsecurity

Works with

  • api

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add gethacked-ai/agent-security-skills --skill threat-modeling --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Threat Modeling?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Threat Modeling
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gethacked-ai-threat-modeling/badge)](https://www.skillsdirectory.com/skills/gethacked-ai-threat-modeling)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: threat-modeling
description: >-
  Threat model software, architecture, features or trust-boundary changes. Identify assets, data flows, attacker capabilities, security invariants, abuse cases and mitigations.
metadata:
  version: "4.0.1"
---

# Threat modeling

## When to use

Use for design decisions, architectural changes or explicit threat-model requests. Not a scanner or implementation workflow; reuse existing evidence.

Model the actual system and decisions, not a generic STRIDE table. Use authorized project information, avoid secret values, and label inferred or missing architecture. Do not test external systems or edit implementation unless requested.

## Workflow

1. Define scope, intended behavior, important assets and unacceptable outcomes, including integrity, availability, confidentiality and privacy where relevant. Read architecture, entry points, infrastructure, identity/data schemas and deployment files as relevant. For a change, model the changed boundary and affected dependencies; reuse an existing model after checking its revision and assumptions.
2. Trace the data and authority flows: actor/service → entry point → identity and policy decision → processing/storage → downstream systems.
   Include background workers, callbacks, admin/recovery paths, CI/CD and external providers if relevant.
   Distinguish runtime, development and management planes.
   Mark where data sensitivity, identity, privilege or ownership changes.
   Distinguish observed code/configuration from deployment assumptions.
3. For each important asset/boundary, write the security invariant. Define relevant attacker capabilities and trust assumptions, including ordinary authenticated users, compromised components or suppliers where applicable. Do not assume all internal traffic or all authenticated actors are trusted.
4. Generate a small set of credible abuse cases that violate the invariants.
   Use STRIDE or other categorization as a coverage aid, not a required output matrix.
   Identify the initiating capability, impacted asset, existing control, plausible failure and consequence.
   Include abuse of legitimate operations, incorrect sequencing, repetition and concurrent actions where relevant.
   Threats are hypotheses, not confirmed vulnerabilities.
   For material third-party trust dependencies, use relevant current vendor advisories or verified exploitation intelligence when available; absence of published CVEs does not eliminate a threat.
   Avoid operational attack instructions; define defensive test conditions instead.
5. Prioritize mitigations by impact, exposure, prerequisites, existing protection and implementation cost.
   For each material threat, record an accountable control owner or unknown owner, control location, verification criterion and residual risk.
   Include detection and recovery owners for high-impact failures; check privacy retention/deletion constraints and relevant availability dependencies.
   Identify assumptions that could materially change the ranking and specific evidence needed to resolve them.
6. Challenge completeness: account for each in-scope boundary, privileged path and sensitive asset; consider failure/recovery behavior and missing trust dependencies. Check that the proposed controls are enforceable and do not merely move risk to another component. Record a re-review trigger (e.g. new trust boundary, identity provider, sensitive data flow or deployment model).

## Output

Provide a scoped model with a simple flow diagram or table where useful; assets and invariants; prioritized threats and mitigations; open questions and verification gates. Cite repository paths for observed components. Keep unsupported scenarios explicitly hypothetical. A model does not certify implementation correctness. Use security-review to validate suspected weaknesses and security-engineering to implement controls when requested, if available.

Reference: [OWASP Threat Modeling Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Threat_Modeling_Cheat_Sheet.html). Use the project's own threat model and risk methodology when applicable.

## Example

Example: an asynchronous tenant export crosses the API, queue, worker and storage boundaries. Invariant: only the authorized tenant can request and retrieve the export. Record worker identity, revocation behavior, expiry and how each control will be verified.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.