Skip to content
Back to skills

Threat Modeling Stride

ASecurity

Use when threat modeling systems and applications.

  • 2 stars
  • 0 votes
  • 0 copies
  • 7 views
  • Added September 10, 2026
securitypythonrustgosqltestingdatabasesecurity

Security analysis

A100/100

Scanned September 10, 2026

npx -y skills add LoopyLuci/Skills --skill threat-modeling-stride --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Threat Modeling Stride?

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

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

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-stride
description: "Use when threat modeling systems and applications."
version: 1.0.0
author: Hermes Agent
license: MIT
metadata:
  hermes:
    tags: [threat-modeling, STRIDE, PASTA, attack-trees, DFD, risk-assessment]
    related_skills: [penetration-testing-methodology, vulnerability-assessment-scanning, webapp-penetration-testing, security-incident-response]
---

# Threat Modeling

Threat modeling systems and applications — from STRIDE and PASTA methodologies through Data Flow Diagrams, attack trees, and risk mitigation.

## When to Use

- Identifying security threats during system design
- Building threat models for existing applications
- Using STRIDE, PASTA, or LINDDUN methodologies
- Prioritizing security controls based on threat landscape

## Threat Modeling Methodologies

```python
THREAT_MODELING_METHODS = {
    'stride': 'Microsoft — Spoofing, Tampering, Repudiation, Info Disclosure, DoS, Elevation of Privilege',
    'pasta': 'Process for Attack Simulation and Threat Analysis — 7-stage risk-centric methodology',
    'linddun': 'Privacy-focused — Linkability, Identifiability, Non-repudiation, Det. Unlinkability, etc.',
    'attack_trees': 'Root goal (steal data) decomposed into sub-goals (phishing, exploit, physical)',
}

class ThreatModel:
    """Build threat models using STRIDE per component."""
    def __init__(self, system_name: str):
        self.name = system_name
        self.components = []
        self.data_flows = []
    
    def add_component(self, name: str, type: str = 'process', 
                       trust_boundary: str = 'internal'):
        self.components.append({
            'name': name, 'type': type, 'boundary': trust_boundary,
            'stride_threats': [],
        })
    
    def analyze_stride(self, component: str) -> List[str]:
        threats = []
        # Example analysis:
        if 'web' in component.lower():
            threats += ['Spoofing: user impersonation', 'Tampering: input validation', 'Info Disclosure: SQL injection']
        if 'database' in component.lower():
            threats += ['Tampering: unauthorized writes', 'Info Disclosure: unencrypted PII', 'DoS: connection exhaustion']
        return threats
```

## Verification Checklist

- [ ] System boundaries defined (trust boundaries, external entities)
- [ ] Data Flow Diagram (DFD) created
- [ ] STRIDE analysis per component/flow
- [ ] Threats ranked (DREAD or custom risk scoring)
- [ ] Mitigations identified per threat
- [ ] Attack trees for high-risk scenarios
- [ ] Threat model reviewed by stakeholders
- [ ] Threats tracked in remediation backlog
- [ ] Threat model updated when system changes

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.

Comments

Loading comments…