security-threat-model
Systematically identifies vulnerabilities, threats, and mitigations for systems handling sensitive data using STRIDE methodology, trust boundary mapping, and…
от lyndonkl★ 208 звёзд на GitHub
Установить security-threat-model в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Security Threat Model
Table of Contents
Workflow
Copy this checklist and track your progress:
Security Threat Model Progress:
- [ ] Step 1: Map system architecture and data flows
- [ ] Step 2: Identify trust boundaries
- [ ] Step 3: Classify data and compliance requirements
- [ ] Step 4: Apply STRIDE to identify threats
- [ ] Step 5: Define mitigations, monitoring, and prioritize risks
Step 1: Map system architecture and data flows
Document components, external services, users, data stores, and communication paths. See Common Patterns for architecture examples. For straightforward systems → Use resources/template.md.
Step 2: Identify trust boundaries
Mark where data crosses security domains (user → server, server → database, internal → third-party). See Trust Boundary Mapping for boundary types.
Step 3: Classify data and compliance requirements
Rate data sensitivity (public, internal, confidential, restricted), identify PII/PHI/PCI, document compliance obligations (GDPR, HIPAA, PCI DSS). See resources/template.md for classification tables.
Step 4: Apply STRIDE to identify threats
For each trust boundary and data flow, systematically check all six STRIDE threat categories. See STRIDE Framework for threat identification. For complex systems with multiple attack surfaces → Study resources/methodology.md for advanced attack tree analysis and DREAD scoring.
Step 5: Define mitigations, monitoring, and prioritize risks
Propose preventive/detective/corrective controls, establish monitoring and alerting, prioritize by risk score (likelihood × impact). Self-check using resources/evaluators/rubric_security_threat_model.json. Minimum standard: Average score ≥ 3.5.
STRIDE Framework
S - Spoofing Identity
- Threat: Attacker impersonates legitimate user or system
- Examples: Stolen credentials, session hijacking, caller ID spoofing, email spoofing
- Mitigations: Multi-factor authentication, certificate validation, cryptographic signatures, mutual TLS
T - Tampering with Data
- Threat: Unauthorized modification of data in transit or at rest
- Examples: Man-in-the-middle attacks, SQL injection, file modification, message replay
- Mitigations: HTTPS/TLS, input validation, parameterized queries, digital signatures, checksums, immutable storage
R - Repudiation
- Threat: User denies performing action, no proof of activity
- Examples: Deleted logs, unsigned transactions, missing audit trails
- Mitigations: Comprehensive audit logging, digital signatures on transactions, tamper-proof logs, third-party timestamping
I - Information Disclosure
- Threat: Exposure of sensitive information to unauthorized parties
- Examples: Database dumps, verbose error messages, unencrypted backups, API over-fetching
- Mitigations: Encryption at rest/in transit, access control, data minimization, secure deletion, redaction in logs
D - Denial of Service
- Threat: System becomes unavailable or degraded
- Examples: Resource exhaustion, distributed attacks, algorithmic complexity exploits, storage filling
- Mitigations: Rate limiting, auto-scaling, circuit breakers, input size limits, CDN/DDoS protection
E - Elevation of Privilege
- Threat: Attacker gains unauthorized access or permissions
- Examples: SQL injection to admin, IDOR to other user data, path traversal, privilege escalation bugs
- Mitigations: Principle of least privilege, input validation, authorization checks on every request, role-based access control
Trust Boundary Mapping
Trust boundary: Where data crosses security domains with different trust levels.
Common boundaries:
- User → Application: Untrusted input enters system (validate, sanitize, rate limit)
- Application → Database: Application credentials vs. user permissions (parameterized queries, connection pooling)
- Internal → External Service: Data leaves your control (encryption, audit logging, contract terms)
- Public → Private Network: Internet to internal systems (firewall, VPN, API gateway)
- Client-side → Server-side: JavaScript to backend (never trust client, re-validate server-side)
- Privileged → Unprivileged Code: Admin functions vs. user code (isolation, separate processes, security boundaries)
Boundary analysis questions:
- What data crosses this boundary? (classify sensitivity)
- Who/what is on each side? (authentication, authorization)
- What could go wrong at this crossing? (apply STRIDE)
- What controls
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- resources/evaluators/rubric_security_threat_model.json
- resources/methodology.md
- resources/template.md
FAQ
Что делает скилл security-threat-model?
Systematically identifies vulnerabilities, threats, and mitigations for systems handling sensitive data using STRIDE methodology, trust boundary mapping, and defense-in-depth principles. Use when designing or reviewing systems with PII/PHI/financial/auth data, building security-sensitive features (auth, payments, file uploads, APIs), preparing for audits or compliance (PCI, HIPAA, SOC 2), investigating incidents, or integrating third-party services. Use when user mentions threat model, STRIDE, trust boundaries, attack surface, or security review.
Как установить скилл security-threat-model?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл security-threat-model запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…