threat-model

threat-model is a skill for Claude Code, Codex from navikt/copilot. It costs 34 tokens per session (4,164 once invoked), scanned A, original, MIT.

A STRIDE-A threat-modeling guide for NAIS microservices. Threat modeling is the process of finding security risks in a system before or during development.

In plain words
What is it for?
Use it before launching a service, changing architecture or authentication, adding data flows or APIs, reviewing compliance, or analyzing an incident.
Why use it?
It provides a structured way to map data flows, trust boundaries, threats, mitigations, and remaining risk.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: $skill-name invocation.

Good fit Use it before launching a service, changing architecture or authentication, adding data flows or APIs, reviewing compliance, or analyzing an incident.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/navikt/copilot/threat-model
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.

Any agent
npx skills add navikt/copilot --skill threat-model
Clone the repo
git clone --depth 1 https://github.com/navikt/copilot

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/navikt/copilot/threat-model/github.svg)](https://agentmods.dev/skills/navikt/copilot/threat-model)
Your own site
<a href="https://agentmods.dev/skills/navikt/copilot/threat-model"><img src="https://agentmods.dev/badge/skills/navikt/copilot/threat-model/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for threat-model

Your own site · 80×15
<a href="https://agentmods.dev/skills/navikt/copilot/threat-model"><img src="https://agentmods.dev/badge/skills/navikt/copilot/threat-model.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,164 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 264
    Skill allows unbounded resource consumption (API calls, storage, compute). Without rate limits or quotas, a compromised or misbehaving agent can cause denial-of-service or cost overruns.
    Fix: Set explicit rate limits, timeouts, and resource quotas for API calls, file operations, and compute. Implement circuit breakers for runaway loops.
How audits are shown
Origin original 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.1 $0.00034 $0.04164
Opus 5.5 $0.00014 $0.01666
Sonnet 5.5 $0.00007 $0.00833
Haiku 4.5 $0.00003 $0.00416

Measured 1mo ago against content hash 9372aa1408da, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

threat-model 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 1mo ago.

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/threat-model/SKILL.md · 492 lines

How it starts

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

Threat Model — STRIDE-A Analysis

Systematic threat identification for NAIS microservices using the STRIDE-A methodology. Produces a data flow diagram, structured threats table, prioritized mitigations, and residual risk summary.

When to Use

  • Before launching a new service
  • Major architecture changes (new data stores, auth mechanism changes)
  • New data flows (especially involving PII)
  • External integrations (partner APIs, third-party services)
  • API exposure (new public or internal endpoints)
  • Regulatory or compliance reviews
  • Post-incident analysis to update existing threat models

Step 1: Define Scope

Start by answering these questions to establish the threat model boundary:

Service Identity

  • What does the service do? (one sentence — e.g., "Processes dagpenger applications")
  • What team owns it?
  • What cluster and namespace does it run in? (dev-gcp, prod-gcp)

Data Classification

  • What data does the service process?
  • PII classification level:
    • Strengt fortrolig — FNR, health data, criminal records
    • Fortrolig — name, address, phone, email
    • Intern — case IDs, team metadata
    • Åpen — public statistics, documentation

Consumers and Dependencies

  • Who consumes this service? (end users, other services, external partners)
  • What does this service depend on? (databases, Kafka topics, upstream APIs)
  • What auth mechanisms are in play? (ID-porten, Entra ID, TokenX, Maskinporten)

Deployment Context

  • Nais cluster: dev-gcp / prod-gcp
  • Ingress type: intern.nav.no (internal) / nav.no (public) / none
  • Has egress to external services? Which ones?

Step 2: Data Flow Diagram (DFD)

Map the system using these element types:

Element Types

Symbol Element Example
[External Entity] User or external system [Citizen Browser], [Partner API]
(Process) Your service or component (dp-soknad), (dp-behandling)
{Data Store} Database, topic, bucket {PostgreSQL}, {kafka: dp.soknad.v1}, {GCS Bucket}
--> Data flow [User] --> (API)
== boundary == Trust boundary == Internet/Ingress ==

Read the full file on GitHub · 492 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago Changed 9372aa1408da
  2. 2mo ago Changed 70bd2db3d455
  3. 3mo ago First seen · 492 lines · 34 tokens per session scan A 347f2167d828

Subscribe to this mod's changes

threat-model is a skill published in the GitHub repository navikt/copilot (65 stars, last pushed today), licensed MIT. It adds 34 tokens to every session and 4,164 once invoked, about $0.0001 per session on Opus 5.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-08-30.

Related

threat-model compared with skills from other repositories

threat-model next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
threat-modelnavikt/copilotSkill65todayMITA34Claude Code, Codex
skill-guideAndyElessar/skillsSkill27d agononeA102Claude Code
plugin-creatorAndyElessar/skillsSkill27d agononeA181Claude Code
csharp-source-generatorAndyElessar/skillsSkill27d agononeA112Claude Code
prose-guideAndyElessar/skillsSkill27d agononeA162Claude Code
agents-creatorAndyElessar/skillsSkill27d agononeC150Claude Code
cf-clicloudflare/skillsSkill3.5k5d agoApache-2.0A78Claude Code