stride-analysis
Systematically identify and document threats using the STRIDE framework (Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service…
от sethdford★ 51 звезда на GitHub
Установить stride-analysis в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
STRIDE Threat Modeling
Conduct a systematic threat analysis of a system's architecture using Microsoft's STRIDE framework to identify vulnerabilities before they're exploited.
Context
You are a security architect helping a team identify threats in their system design. STRIDE is a structured approach that ensures comprehensive coverage across six threat categories. Unlike ad-hoc "security brainstorming," STRIDE forces you to ask the right questions for each component and data flow, ensuring threats aren't missed.
Done well, threat modeling catches design flaws early (when they're cheap to fix). Done poorly (checklist-style, without understanding), it generates noise and wastes engineering time.
Domain Context
- STRIDE Framework (Microsoft): Six threat categories that map to security properties:
- Spoofing (Identity): Can attackers impersonate a user, service, or component?
- Tampering (Integrity): Can attackers modify data in transit or at rest?
- Repudiation (Accountability): Can actors deny their actions? Are audit trails protected?
- Information Disclosure (Confidentiality): Can unauthorized parties access sensitive data?
- Denial of Service (Availability): Can attackers degrade or crash services?
- Elevation of Privilege (Authorization): Can attackers gain higher-privilege access than intended?
- Trust Boundaries: Foundational concept—threats cross boundaries; within boundaries, assume trust
- Data Flow Diagrams (DFD): Map components, actors, and data flows before analyzing threats
- Threat Severity: Likelihood × Impact (critical, high, medium, low)
- Mitigations: Controls that reduce threat severity (preventive, detective, compensating)
When to Use This Skill
- You're designing a new system or major architectural change and want to identify threats early
- You're conducting a security design review before engineering starts
- You need to document threats for audit/compliance purposes
- You're updating your threat model based on new features or architecture changes
- A security researcher or customer asks "Have you done threat modeling?"
Prerequisites
Before starting STRIDE analysis, gather:
- System architecture: Diagrams showing components, data flows, external systems, trust boundaries
- Authentication/authorization model: How are users/services identified and authorized?
- Data classification: What data is sensitive (PII, financial, healthcare)? Where is it stored and transmitted?
- Existing controls: What security measures already exist (encryption, logging, firewalls)?
- Compliance context: Are there regulatory requirements (PCI-DSS, HIPAA, SOC2) that drive threat severity?
If documentation is missing, start by drawing the architecture with the team.
Instructions
1. Map Components & Data Flows
Create or review a Data Flow Diagram (DFD) showing:
- External entities (users, APIs, partners)
- Processes (application, microservices, functions)
- Data stores (databases, caches, logs)
- Data flows (APIs, network calls, database queries)
- Trust boundaries (where privilege/trust levels change)
Example:
[User] --HTTPS--> [Web App] --SQL--> [Database]
|
[API Log]
|
[SIEM/Alert]
Trust boundary: Outside | Web App Layer | Database Layer
2. For Each Component, Apply STRIDE
For each process, data store, or data flow, systematically ask:
Spoofing (Identity) questions:
- Can someone impersonate this component/user?
- How is identity verified (authentication)?
- Can credentials be stolen or replayed?
- Is multi-factor authentication enforced?
Tampering (Integrity) questions:
- Can data be modified in transit (man-in-the-middle)?
- Can data be modified at rest (database compromise)?
- Is data integrity checked (signatures, hashes)?
- Are there version controls or audit trails?
Repudiation (Accountability) questions:
- Can actors deny their actions?
- Are actions logged?
- Are logs protected from tampering?
- Can logs be correlated across systems?
Information Disclosure (Confidentiality) questions:
- Is data encrypted in transit (HTTPS, TLS)?
- Is data encrypted at rest?
- Who has access to this data?
- Can data be extracted (logging, debugging, sidechannels)?
Denial of Service (Availability) questions:
- Can attackers consume resources (CPU, disk, memory)?
- Can service be crashed or rate-limited?
- Are there recovery mechanisms?
- Is capacity planning done?
Elevation of Privilege (Authorization) questions:
- Can users exceed their intended permissions?
- Is authorization checked on every action (not just at entry)?
- Are roles/permissions clearly defined?
- Are there administrative backdoors or emergency access?
3. Document Threats
For each threat, document:
- ID: Unique identifier (T1, T2, etc.)
- Category: STRIDE category
- **Compone
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Read - 02
Grep - 03
Glob - 04
Write - 05
Edit
Вложенные файлы
- examples/example-output.md
- template.md
FAQ
Что делает скилл stride-analysis?
Systematically identify and document threats using the STRIDE framework (Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, Elevation of Privilege). Use when designing systems, reviewing architectures, conducting security design reviews, or updating threat models.
Как установить скилл stride-analysis?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл stride-analysis запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…