Ai Threat Model logo

Ai Threat Model

Organization
zero-lab-ai
ai-threat-model

Builds an evidence-bound AI threat model from partial architecture, trust, identity, data-flow, and control information. Use when scoping an AI assessment, reviewing a design, or prioritizing realistic attack paths under uncertainty.

Overview

Publisherzero-lab-ai
Repositoryskills
Skill nameai-threat-model
Stars
232
Forks
14
Bundled files
2
LicenseApache-2.0
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.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by zero-lab-ai on GitHub. Read the source before you install it.

Installation

Install the Ai 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.
    https://github.com/zero-lab-ai/skills/tree/main/plugins/engagement-operations/skills/ai-threat-model
  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/zero-lab-ai/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/plugins/engagement-operations/skills/ai-threat-model .claude/skills/ai-threat-model
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Ai 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 Ai 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 Ai 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.

AI threat model

Turn incomplete system knowledge into a decision-ready threat model without inventing architecture. Preserve uncertainty as a first-class result and update the model when evidence changes.

When to Use

  • Scoping an AI security review or penetration test.
  • Reviewing a design that combines models, retrieval, agents, tools, data, and conventional application or cloud services.
  • Prioritizing assessment paths when architecture evidence is incomplete or contradictory.

When NOT to Use

  • Do not treat the model as permission to validate a threat on a live target.
  • Do not use a generic AI risk list in place of the system's actual boundaries.
  • Do not assign likelihood or impact precision unsupported by evidence.

Workflow

  1. State the decision the threat model must support, the assessment scope, and the evidence cutoff date.
  2. Build an assumption register. For every unknown needed to continue, record the assumption, why it matters, the evidence that would resolve it, its owner, and the consequence if it is false.
  3. Identify crown jewels and safety properties. Include sensitive data, model behavior, tool authority, workload identity, evaluation integrity, deployment artifacts, human approvals, and availability where relevant.
  4. Map components and trust zones. Include users, applications, model gateways, model providers, retrieval pipelines, agent runtimes, tools, memory, registries, CI/CD, monitoring, and administrative planes.
  5. Draw data, instruction, identity, and artifact flows separately. A component can trust data but not instructions, or accept an artifact without loading it.
  6. For each boundary, ask what can cross, who authorizes it, which identity is used, what validation occurs, what logs survive, and what downstream consumer acts on the result.
  7. Construct attack-path hypotheses from evidence-backed transitions. Label every step observed, assumed, inferred, or blocked; one unknown step prevents the full path from being called demonstrated.
  8. Evaluate threats across the AI-specific surfaces:
    • instruction and context control;
    • retrieval and knowledge integrity;
    • agent and tool authority;
    • model and artifact supply chain;
    • identity and secret propagation;
    • output consumption and automation;
    • monitoring, evaluation, and human oversight.
  9. Prioritize by plausible consequence, exposed preconditions, boundary count, control evidence, and uncertainty. Do not multiply arbitrary numbers to manufacture precision.
  10. Convert priorities into bounded review questions, control gaps, evidence requests, and separately authorized validation objectives.
  11. Version the model. Record which new evidence confirmed, weakened, blocked, or split each path.

Deliverable

Return a threat-model package containing the system purpose, scope, evidence cutoff, crown jewels, component and trust-zone map, separated flow maps, assumption register, attack-path hypotheses, control observations, prioritized review questions, and change log.

Rationalizations to reject

  • “This is a standard RAG architecture.” Shared labels do not prove shared trust boundaries or controls.
  • “The diagram is authoritative because the client supplied it.” Supplied architecture is reported evidence and may be stale.
  • “An assumed step is probably true, so the path is complete.” A path is no stronger than its weakest unsupported transition.
  • “Map every framework technique.” Exhaustive taxonomy mapping can obscure the system-specific decisions the model exists to support.
  • “A low likelihood makes the control gap unimportant.” Weak evidence for likelihood should remain uncertainty, not become a reassuring score.
  • “The model is finished once the diagram is drawn.” A threat model is a versioned decision artifact, not a static picture.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Ai Threat Model AI skill do?

Builds an evidence-bound AI threat model from partial architecture, trust, identity, data-flow, and control information. Use when scoping an AI assessment, reviewing a design, or prioritizing realistic attack paths under uncertainty.

Why use Ai Threat Model on TypingMind?

Because you install it once and use it with any model. Ai 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 Ai Threat Model in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/zero-lab-ai/skills/tree/main/plugins/engagement-operations/skills/ai-threat-model. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Ai 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 Ai Threat Model?

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

Is the Ai Threat Model AI skill free?

Yes. It is published on GitHub by zero-lab-ai under the Apache-2.0 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 👇