threat-model-analyst

threat-model-analyst is a skill for Claude Code, Codex from drvoss/everything-copilot-cli. It costs 53 tokens per session (1,205 once invoked), scanned A, original, MIT.

A structured security analysis that maps a system's architecture, data flows, trust boundaries, and possible abuse cases using STRIDE-A, a method for classifying security threats.

In plain words
What is it for?
Use it to create or update a threat model for a repository, service, integration, or major change and prioritize the resulting findings.
Why use it?
It reveals design-level risks that a scan for suspicious code patterns may miss, especially before building or changing a major system.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/drvoss/everything-copilot-cli/threat-model-analyst
Any agent
npx skills add drvoss/everything-copilot-cli --skill threat-model-analyst
Clone the repo
git clone --depth 1 https://github.com/drvoss/everything-copilot-cli

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for threat-model-analyst

README.md
[![agentmods](https://agentmods.dev/badge/skills/drvoss/everything-copilot-cli/threat-model-analyst.svg)](https://agentmods.dev/skills/drvoss/everything-copilot-cli/threat-model-analyst)
Your own site
<a href="https://agentmods.dev/skills/drvoss/everything-copilot-cli/threat-model-analyst"><img src="https://agentmods.dev/badge/skills/drvoss/everything-copilot-cli/threat-model-analyst.svg" alt="Measured on agentmods" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,205 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00053 $0.01205
Opus 5 $0.00026 $0.00602
Sonnet 5 $0.00011 $0.00241
Haiku 4.5 $0.00005 $0.00120

Measured today against content hash 92df3a3083e9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

threat-model-analyst scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/security/threat-model-analyst/SKILL.md · 183 lines

How it starts

The opening of the file, as written. The whole thing — 183 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Threat Model Analyst

Perform architecture-first security analysis using STRIDE-A: classic STRIDE plus explicit abuse-case thinking.

When to Use

  • A new system or subsystem needs an initial threat model
  • A major change landed and the question is "what changed security-wise?"
  • You need to reason about trust boundaries, data flows, or risky integrations before implementation
  • A security review needs architecture evidence, not only code-pattern scanning

When NOT to Use

Instead of threat-model-analyst Use
Code-level vulnerability scanning security-scan or pr-security-review
Broad repository posture scoring evaluate-repository
Agent-specific OWASP checklist review agent-owasp-check
Supply-chain integrity validation agent-supply-chain

Modes

Single Analysis

Use when there is no prior threat model or when the whole system needs review.

Incremental Analysis

Use when a previous threat model exists and you need to compare the current system or a specific commit against that baseline.

Incremental mode is often the better day-to-day workflow because it highlights:

  • new threats
  • resolved threats
  • still-present threats
  • trust-boundary changes
  • differences in severity or exploitability

Workflow

1. Define scope and assets

Clarify:

  • what system or subsystem is in scope
  • what assets matter most
  • what actors exist
  • what trust boundaries separate them

List obvious inputs and high-value outcomes before reading code in detail.

2. Build an architecture and data-flow sketch

You do not need perfect diagrams before analysis, but you do need a concrete model of:

  • components
  • entry points
  • data stores
  • external systems
  • privileged execution zones
  • trust boundaries between them

Represent the system as a lightweight DFD or component map if helpful.

3. Apply STRIDE-A to each component and flow

For each component or trust boundary, ask:

Dimension Question
Spoofing Who could impersonate a user, service, or agent?
Tampering What data or configuration could be modified without detection?
Repudiation What actions would be hard to prove later?
Information Disclosure What could leak across the boundary?
Denial of Service What could exhaust or block the system?
Elevation of Privilege What paths raise privileges unexpectedly?
Abuse What realistic misuse path would an attacker or insider choose?

Read the full file on GitHub · 183 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 183 lines · 53 tokens per session scan A 92df3a3083e9

Subscribe to this mod's changes

threat-model-analyst is a skill published in the GitHub repository drvoss/everything-copilot-cli (45 stars, last pushed 8d ago), licensed MIT. It adds 53 tokens to every session and 1,205 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

winui-design

Use when designing, reviewing, or fixing WinUI 3: sample and control discovery with winapp find-ui, layout planning, control choice, Fluent Design alignment, Light/Dark/High Contrast theming, typography, spacing, brushes, accessibility, and XAML data-binding design. Load before authoring new XAML, reviewing UI PRs…

microsoft/win-dev-skills · 119 tokens

winui-dev-workflow

Build and run workflow for WinUI 3 apps with WinApp CLI 0.6+ — project creation with winapp new, project-mode winapp run, BuildAndRun.ps1 analyzer integration, crash diagnosis, and prerequisites. Use when creating, building, running, or fixing build errors in a WinUI 3 project.

microsoft/win-dev-skills · 73 tokens

winui-packaging

MSIX packaging, code signing, and distribution for WinUI 3 apps — build for release, certificate generation (winapp cert generate), certificate trust, code signing (winapp sign), self-contained deployment, CI/CD with GitHub Actions, and Microsoft Store submission. Use when preparing for release, creating MSIX…

microsoft/win-dev-skills · 86 tokens

winui-session-report

Analyze the current or a recent agent session (GitHub Copilot CLI or Claude Code) and generate a diagnostic report. Use only when the user explicitly asks for session feedback, agent debugging, or a review of what happened during a build session. Do not inspect session data automatically.

microsoft/win-dev-skills · 61 tokens

microsoft-build

Your companion for Microsoft Build 2026. Helps you find sessions relevant to your project, discover what's new for your tech stack, scaffold projects from sessions, and plan your event schedule. Activate when users mention sessions, schedule, what's new, Build, Ignite, AI Tour, Microsoft event, conference, or…

microsoft/Build-CLI · 109 tokens

journey-template

Create new agentic journeys from app ideas. Generates README.md (learner walkthrough), PLAN.md (AI-readable spec), and app-specific skills for OSS deployments. Supports any stack (Node.js, Python, .NET, Java, Swift, Kotlin) and Azure service (Container Apps, AKS, Functions, App Service). USE FOR: new journey, scaffold…

DanWahlin/github-azure-agentic-journeys · 153 tokens