Threat Model logo

Threat Model

Community
686f6c61
threat-model

Usar para modelar amenazas con metodología STRIDE. También: análisis de amenazas, STRIDE, superficie de ataque, vectores de ataque, modelado de amenazas.

Overview

Publisher686f6c61
Repositoryalfred-dev
Skill namethreat-model
Stars
115
Forks
7
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by 686f6c61 on GitHub. Read the source before you install it.

Installation

Install the Threat Model AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/686f6c61/alfred-dev.git /tmp/alfred-dev
mkdir -p .claude/skills
cp -r /tmp/alfred-dev/skills/threat-model .claude/skills/threat-model
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Threat Model in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Threat Model on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Threat Model is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Modelado de amenazas STRIDE

Resumen

Este skill aplica la metodología STRIDE para identificar y clasificar amenazas de seguridad en el sistema. STRIDE es un modelo desarrollado por Microsoft que categoriza las amenazas en seis tipos, proporcionando un framework sistemático para no dejarse nada en el tintero.

El modelado de amenazas se hace idealmente al principio del desarrollo (cuando es más barato corregir), pero también es valioso como ejercicio periódico para sistemas existentes.

Proceso

  1. Identificar los componentes del sistema. Listar todos los elementos relevantes:

    • Aplicaciones y servicios.
    • Bases de datos y almacenes de datos.
    • APIs e interfaces externas.
    • Infraestructura (servidores, redes, balanceadores).
    • Usuarios y roles.
    • Flujos de datos entre componentes.
  2. Generar diagrama de flujo de datos (DFD). Dibujar con Mermaid los flujos de datos entre componentes, identificando los límites de confianza (trust boundaries). Las amenazas suelen concentrarse en los puntos donde los datos cruzan un límite de confianza.

  3. Aplicar STRIDE a cada componente. Para cada elemento del diagrama, evaluar las seis categorías:

    CategoríaDescripciónPregunta clave
    Spoofing (suplantación)Un atacante se hace pasar por otro usuario o sistema.Cómo se verifica la identidad en este punto?
    Tampering (manipulación)Un atacante modifica datos en tránsito o en reposo.Cómo se garantiza la integridad de los datos?
    Repudiation (repudio)Un usuario niega haber realizado una acción.Hay registro de auditoría fiable?
    Information Disclosure (fuga de información)Datos sensibles se exponen a quien no debería verlos.Qué datos se exponen y a quién?
    Denial of Service (denegación de servicio)El sistema se vuelve inaccesible para usuarios legítimos.Qué recursos se pueden agotar?
    Elevation of Privilege (elevación de privilegios)Un usuario obtiene permisos que no le corresponden.Cómo se aplican los controles de acceso?
  4. Clasificar cada amenaza por riesgo. Usar una matriz de probabilidad e impacto:

    • Probabilidad: alta (fácil de explotar, atacante poco sofisticado) / media / baja (requiere acceso interno y conocimiento especializado).
    • Impacto: crítico (pérdida de datos, brecha de seguridad) / alto (interrupción del servicio) / medio (degradación parcial) / bajo (molestia menor).
  5. Proponer mitigaciones para cada amenaza. Las mitigaciones deben ser concretas y accionables:

    • No: "mejorar la seguridad".
    • Sí: "implementar rate limiting de 100 peticiones/minuto en el endpoint de login".
  6. Priorizar por ratio riesgo/esfuerzo. Las mitigaciones de alto impacto y bajo esfuerzo van primero. Las de bajo impacto y alto esfuerzo se documentan pero se posponen.

  7. Documentar el modelo. Destino canónico: docs/project/threat-model.md. Si no existe, créalo con sync-project-docs. Parte de componentes y flujos reales, no de una lista genérica. Usa templates/threat-model.md como forma. Sustituye <!-- alfred-doc:scaffold --> por <!-- alfred-doc:filled -->.

Criterios de éxito

  • Todos los componentes del sistema han sido evaluados contra las 6 categorías STRIDE.
  • Las amenazas están clasificadas por probabilidad e impacto.
  • Cada amenaza tiene al menos una mitigación propuesta.
  • Las mitigaciones están priorizadas por ratio riesgo/esfuerzo.
  • El modelo vive en docs/project/threat-model.md con marcador filled.
  • Las amenazas y mitigaciones se han registrado en la memoria del proyecto.

Paso de memoria

Registrar las amenazas identificadas y las mitigaciones propuestas en la memoria del proyecto con memory_log_decision. Esto permite hacer seguimiento del estado de las mitigaciones entre sesiones y detectar si aparecen nuevas superficies de ataque con la evolución del sistema.

Qué NO hacer

  • No modelar amenazas en abstracto sin conocer la arquitectura real del sistema. El modelo debe partir de los componentes y flujos de datos concretos, no de una lista genérica.
  • No limitarse a las amenazas técnicas. Las amenazas organizativas (ingeniería social, acceso físico, insiders) también son relevantes si el sistema maneja datos sensibles.
  • No dejar el modelo de amenazas como un documento estático. Debe revisarse cuando cambia la arquitectura, se añaden integraciones o se despliega en un nuevo entorno.
  • No proponer mitigaciones vagas como "mejorar la seguridad". Cada mitigación debe ser concreta, implementable y verificable.

Frequently asked questions

What does the Threat Model AI skill do?

Usar para modelar amenazas con metodología STRIDE. También: análisis de amenazas, STRIDE, superficie de ataque, vectores de ataque, modelado de amenazas.

Why use Threat Model on TypingMind?

Because you install it once and use it with any model. Threat Model is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Threat Model in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/686f6c61/alfred-dev/tree/main/skills/threat-model. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Threat Model?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Threat Model?

As many as you like. As long as a model supports skills, you can use Threat Model with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Threat Model AI skill free?

Yes. It is published on GitHub by 686f6c61 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇