Logotipo de Threat Modeling

Threat Modeling

Comunidad
Omar-Obando
threat-modeling

Use when performing threat modeling, identifying security threats, analyzing attack vectors, creating threat models, and implementing threat mitigation strategies. Includes STRIDE, DREAD, attack trees, and threat modeling frameworks. Based on CISSP, CSSLP certifications and OWASP threat modeling standards.

Descripción general

EditorOmar-Obando
Repositorioqwen-orchestrator
Nombre de la habilidadthreat-modeling
Estrellas
53
Forks
13
Archivos incluidos
Solo instrucciones
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por Omar-Obando en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Threat Modeling en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/Omar-Obando/qwen-orchestrator/tree/main/skills/threat-modeling
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Omar-Obando/qwen-orchestrator.git /tmp/qwen-orchestrator
mkdir -p .claude/skills
cp -r /tmp/qwen-orchestrator/skills/threat-modeling .claude/skills/threat-modeling
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Threat Modeling en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Threat Modeling automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Threat Modeling no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

Threat Modeling Skill — Cybersecurity Engineer

Overview

This skill provides comprehensive guidance for threat modeling and security analysis. It covers threat identification, attack vector analysis, threat model creation, and threat mitigation following CISSP and CSSLP certifications and OWASP threat modeling standards.

When to Use

Use this skill when:

  • Performing threat modeling for systems
  • Identifying security threats and vulnerabilities
  • Analyzing attack vectors and attack paths
  • Creating threat models for applications
  • Implementing STRIDE threat modeling
  • Using DREAD risk assessment
  • Creating attack trees
  • Performing threat modeling workshops
  • Identifying security requirements
  • Creating threat mitigation strategies
  • Documenting threat models
  • Performing threat modeling for APIs
  • Creating threat models for microservices
  • Performing threat modeling for cloud systems
  • Identifying insider threats
  • Analyzing supply chain threats
  • Creating security requirements
  • Performing threat modeling for mobile apps
  • Identifying data flow threats
  • Creating threat models for IoT systems
  • Performing threat modeling for web applications
  • Identifying authentication threats
  • Analyzing authorization threats
  • Creating threat models for databases

Do NOT use this skill when:

  • Writing application business logic (use domain-driven skill)
  • Designing database schemas (use database-design skill)
  • Writing API endpoint specifications (use api-design skill)
  • Performing general code review (use code-review skill)
  • Writing SQL queries (use sql-best-practices skill)
  • Designing multi-page website layouts (use design-system skill)
  • Analyzing deployment configurations (use deployment skill)
  • Writing documentation (use documentation-best-practices skill)

Threat Modeling Frameworks

STRIDE Model

┌─────────────────────────────────────────────────────────────┐
│              STRIDE Threat Modeling                         │
├─────────────────────────────────────────────────────────────┤
│  S - Spoofing Identity:                                     │
│  - Impersonating users or systems                           │
│  - Attack examples: Credential theft, token theft           │
│  - Mitigations: Authentication, MFA, certificates           │
│                                                              │
│  T - Tampering with Data:                                   │
│  - Modifying data in transit or at rest                     │
│  - Attack examples: Data manipulation, code injection       │
│  - Mitigations: Integrity checks, digital signatures        │
│                                                              │
│  R - Repudiation:                                           │
│  - Actions cannot be traced to actor                        │
│  - Attack examples: Denying actions, log tampering          │
│  - Mitigations: Audit logging, non-repudiation              │
│                                                              │
│  I - Information Disclosure:                                │
│  - Unauthorized access to information                       │
│  - Attack examples: Data breaches, eavesdropping            │
│  - Mitigations: Encryption, access controls                 │
│                                                              │
│  D - Denial of Service:                                     │
│  - Service unavailable to legitimate users                  │
│  - Attack examples: DDoS, resource exhaustion               │
│  - Mitigations: Rate limiting, redundancy                   │
│                                                              │
│  E - Elevation of Privilege:                                │
│  - Gaining higher privileges than intended                  │
│  - Attack examples: Privilege escalation, code execution    │
│  - Mitigations: Least privilege, access controls            │
└─────────────────────────────────────────────────────────────┘

DREAD Risk Assessment

┌─────────────────────────────────────────────────────────────┐
│              DREAD Risk Assessment                          │
├─────────────────────────────────────────────────────────────┤
│  D - Damage Potential:                                      │
│  - How much damage can this threat cause?                   │
│  - Scale: 1-10 (1=minor, 10=catastrophic)                   │
│                                                              │
│  R - Reproducibility:                                       │
│  - Can the attack be reproduced consistently?               │
│  - Scale: 1-10 (1=rare, 10=always)                          │
│                                                              │
│  E - Exploitability:                                        │
│  - How easy is it to exploit this threat?                   │
│  - Scale: 1-10 (1=difficult, 10=trivial)                    │
│                                                              │
│  A - Affected Users:                                        │
│  - How many users can be affected?                          │
│  - Scale: 1-10 (1=few, 10=all)                              │
│                                                              │
│  D - Discoverability:                                       │
│  - How easy is it to discover this vulnerability?           │
│  - Scale: 1-10 (1=hard, 10=obvious)                         │
│                                                              │
│  Risk Score = (D + R + E + A + D) / 5                       │
│  - Critical: 8.0+                                           │
│  - High: 6.0-7.9                                            │
│  - Medium: 4.0-5.9                                          │
│  - Low: 0.0-3.9                                             │
└─────────────────────────────────────────────────────────────┘

Threat Modeling Process

Threat Modeling Workflow

┌─────────────────────────────────────────────────────────────┐
│              Threat Modeling Process                        │
├─────────────────────────────────────────────────────────────┤
│  1. Define Scope                                            │
│     - System boundaries                                     │
│  - Assets to protect                                       │
│  - Threat model audience                                   │
│                                                              │
│  2. Identify Assets                                         │
│     - Data in transit                                       │
│  - Data at rest                                            │
│  - Compute resources                                       │
│  - Network boundaries                                      │
│                                                              │
│  3. Identify Threats                                        │
│     - Use STRIDE framework                                  │
│  - Analyze data flow diagrams                              │
│  - Identify attack vectors                                 │
│                                                              │
│  4. Analyze Threats                                         │
│     - Use DREAD assessment                                  │
│  - Prioritize threats                                      │
│  - Document threat details                                 │
│                                                              │
│  5. Mitigate Threats                                        │
│     - Implement security controls                           │
│  - Update threat model                                     │
│  - Document mitigations                                    │
│                                                              │
│  6. Validate                                                │
│     - Review threat model                                   │
│  - Test mitigations                                        │
│  - Update documentation                                    │
└─────────────────────────────────────────────────────────────┘

Data Flow Diagram

┌─────────────────────────────────────────────────────────────┐
│              Data Flow Diagram                              │
├─────────────────────────────────────────────────────────────┤
│  ┌─────────────┐       ┌─────────────┐       ┌───────────┐ │
│  │   Actor     │──────>│   System    │──────>│  Database │ │
│  │  (User)     │       │   (App)     │       │   (DB)    │ │
│  └─────────────┘       └─────────────┘       └───────────┘ │
│         │                      │                     │      │
│         │                      │                     │      │
│         ▼                      ▼                     ▼      │
│  ┌─────────────┐       ┌─────────────┐       ┌───────────┐ │
│  │   External  │       │   Internal  │       │  Storage  │ │
│  │   Services  │       │   Services  │       │   (Data)  │ │
│  └─────────────┘       └─────────────┘       └───────────┘ │
│                                                              │
│  Threats:                                                   │
│  - Spoofing (Actor identity)                                │
│  - Tampering (Data in transit)                              │
│  - Repudiation (Actions not logged)                         │
│  - Information Disclosure (Data at rest)                    │
└─────────────────────────────────────────────────────────────┘

Attack Trees

Attack Tree Structure

┌─────────────────────────────────────────────────────────────┐
│              Attack Tree                                    │
├─────────────────────────────────────────────────────────────┤
│  Root: Gain Admin Access                                    │
│  └── OR:                                                    │
│      ├── AND: Steal Admin Credentials                       │
│      │   ├── Phishing attack                                │
│      │   ├── Keylogger infection                            │
│      │   └── Password reuse                                 │
│      │                                                       │
│      ├── AND: Exploit Vulnerability                         │
│      │   ├── SQL injection                                  │
│      │   ├── XSS attack                                     │
│      │   └── CSRF attack                                    │
│      │                                                       │
│      └── AND: Social Engineering                            │
│          ├── Impersonate admin                              │
│          ├── Bypass MFA                                     │
│          └── Social engineering                             │
│                                                              │
│  Mitigations:                                               │
│  - Multi-factor authentication                              │
│  - Input validation                                         │
│  - Security awareness training                              │
│  - Regular vulnerability scanning                           │
└─────────────────────────────────────────────────────────────┘

Threat Modeling Tools

Threat Modeling Tools

┌─────────────────────────────────────────────────────────────┐
│              Threat Modeling Tools                          │
├─────────────────────────────────────────────────────────────┤
│  OWASP Threat Dragon:                                       │
│  - Open-source threat modeling tool                         │
│  - Draw threat diagrams                                     │
│  - Generate threat lists                                    │
│  - Export threat models                                     │
│                                                              │
│  Microsoft Threat Modeling Tool:                            │
│  - STRIDE-based threat modeling                             │
│  - Template-based approach                                  │
│  - Integration with Azure DevOps                            │
│  - Threat library                                           │
│                                                              │
│  ThreatModeler:                                             │
│  - Cloud-based threat modeling                              │
│  - Automated threat generation                              │
│  - Integration with DevOps tools                            │
│  - Collaborative threat modeling                            │
│                                                              │
│  Custom Tools:                                              │
│  - Excel/Google Sheets templates                            │
│  - Whiteboard sessions                                      │
│  - Documentation-based approach                             │
└─────────────────────────────────────────────────────────────┘

Real-World Impact

Before this skill:

  • No threat modeling
  • Security vulnerabilities discovered late
  • Reactive security approach
  • Incomplete security requirements
  • Security gaps in design

After this skill:

  • Proactive threat identification
  • Security integrated in design
  • Threat-informed decisions
  • Complete security requirements
  • Proven security controls

Cross-References

  • security-auditor - For security audits
  • security-code-review - For code security review
  • devops-pipeline - For security CI/CD gates

References

Preguntas frecuentes

¿Qué hace la habilidad de IA Threat Modeling?

Use when performing threat modeling, identifying security threats, analyzing attack vectors, creating threat models, and implementing threat mitigation strategies. Includes STRIDE, DREAD, attack trees, and threat modeling frameworks. Based on CISSP, CSSLP certifications and OWASP threat modeling standards.

¿Por qué usar Threat Modeling en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Threat Modeling está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Threat Modeling en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/Omar-Obando/qwen-orchestrator/tree/main/skills/threat-modeling. TypingMind lee el archivo SKILL.md de esa carpeta e instala su contenido como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Threat Modeling?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Threat Modeling?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Threat Modeling con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Threat Modeling?

Sí. Omar-Obando la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇