Skip to content
Back to skills

Threat Modeling

ASecurity

Use this skill when the user says 'threat model', 'STRIDE', 'security by design', 'data flow diagram', 'trust boundary', 'attack surface analysis'. Identifies and mitigates architectural security flaws during design using STRIDE and DFDs, before code is written. Do NOT use for: code-level vulnerability scanning (use security/sast-dast), attack-technique deep dives (use security/attack-patterns), or runtime detection (use security/detection-engineering).

  • 46 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 27, 2026
ai-agentsrustawssecurity

Security analysis

A100/100

Scanned November 27, 2026

npx -y skills add j4flmao/agent-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/j4flmao-threat-modeling/badge)](https://www.skillsdirectory.com/skills/j4flmao-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: >
  Use this skill when the user says 'threat model', 'STRIDE', 'security by design', 'data flow diagram', 'trust boundary', 'attack surface analysis'. Identifies and mitigates architectural security flaws during design using STRIDE and DFDs, before code is written. Do NOT use for: code-level vulnerability scanning (use security/sast-dast), attack-technique deep dives (use security/attack-patterns), or runtime detection (use security/detection-engineering).
version: "1.0.0"
author: "j4flmao"
license: "MIT"
tags: [security, threat-modeling, stride, security-by-design, architecture]
---
# Threat Modeling (STRIDE)

## Purpose
Identify and mitigate architectural security flaws during the design phase, before any code is written. Decompose the system, enumerate threats with STRIDE across each trust boundary, assign mitigations, and validate — producing a threat model that drives secure design decisions.

## Agent Protocol

### Trigger
User phrases: "threat model this", "STRIDE analysis", "security by design", "data flow diagram", "trust boundaries".

### Input Context
- System/feature architecture and its external interfaces.
- Data sensitivity and compliance constraints.

### Output Artifact
A STRIDE threat table per trust boundary with mitigations and residual risk.

### Response Format
```
Component: {element}
STRIDE threat: {S/T/R/I/D/E}
Mitigation: {control}
Status: {open | mitigated | accepted}
```

## Methodology: STRIDE

*   **S**poofing: Impersonating something or someone else. (Mitigation: Strong Authentication)
*   **T**ampering: Modifying data or code. (Mitigation: Integrity checks, TLS)
*   **R**epudiation: Claiming to have not performed an action. (Mitigation: Secure Logging, Auditing)
*   **I**nformation Disclosure: Exposing information to unauthorized users. (Mitigation: Encryption at rest/transit)
*   **D**enial of Service: Denying or degrading service to users. (Mitigation: Rate limiting, WAF)
*   **E**levation of Privilege: Gaining capabilities without proper authorization. (Mitigation: RBAC, Least Privilege)

## Threat Modeling Process

```mermaid
%%{init: {"theme": "default", "flowchart": {"useMaxWidth": true}}}%%
graph TD
    A[Decompose Application] --> B[Identify Threats]
    B --> C[Determine Mitigations]
    C --> D[Validate]
    B -.-> E((STRIDE))
```

## Security-by-Design Checklist

- [ ] Data flow diagrams (DFDs) created for all trust boundaries.
- [ ] Authentication and Authorization defined at every entry point.
- [ ] Secrets management strategy established (no hardcoded credentials).
- [ ] Input validation and output encoding strictly enforced.

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.