ThreatModel

ThreatModel is a skill for Claude Code, Codex from danielmiessler/LifeOS. It costs 0 tokens per session (2,138 once invoked), scanned A, original, MIT.

A defensive process for identifying sensitive data, imagining what could happen if systems were compromised, and recording risks with owners and mitigations.

In plain words
What is it for?
Use it to classify data, analyse compromise scenarios, estimate likelihood and impact, assign owners, and track mitigations.
Why use it?
It helps you understand the damage a breach could cause and keeps security risks from being forgotten.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Good fit Use it to classify data, analyse compromise scenarios, estimate likelihood and impact, assign owners, and track mitigations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/danielmiessler/lifeos/threatmodel
About the project

LifeOS is an AI-assisted personal operating system that records a person’s goals, values, context, and current situation to help move them toward a desired future state. It supports work such as building applications, starting businesses, and creative projects. Its catalogue entries extend the system through skills, hooks, agents, and commands.

danielmiessler/LifeOS · 20,481 stars · on GitHub · ourlifeos.ai

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 danielmiessler/LifeOS --skill threatmodel
Clone the repo
git clone --depth 1 https://github.com/danielmiessler/LifeOS

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 ThreatModel

README.md
[![agentmods](https://agentmods.dev/badge/skills/danielmiessler/lifeos/threatmodel/github.svg)](https://agentmods.dev/skills/danielmiessler/lifeos/threatmodel)
Your own site
<a href="https://agentmods.dev/skills/danielmiessler/lifeos/threatmodel"><img src="https://agentmods.dev/badge/skills/danielmiessler/lifeos/threatmodel/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 ThreatModel

Your own site · 80×15
<a href="https://agentmods.dev/skills/danielmiessler/lifeos/threatmodel"><img src="https://agentmods.dev/badge/skills/danielmiessler/lifeos/threatmodel.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,138 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
  • Snyk pass 7 Sept 2026
  • 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 Data Exfiltration · line 33
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
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.00000 $0.02138
Opus 5.5 $0.00000 $0.00855
Sonnet 5.5 $0.00000 $0.00428
Haiku 4.5 $0.00000 $0.00214

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

Security

Grade A, and why

ThreatModel 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.

The scan reads SKILL.md. This mod also ships 1 executable file (Tools/RiskRegister.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

LifeOS/install/skills/ThreatModel/SKILL.md · 121 lines

How it starts

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

ThreatModel

Contents: Ideal State · Intent Routing · Data & Config (safety gate) · Risk Scoring · Asset Graph Integration · Continuous review and the TELOS link · Gotchas · Examples

Threat modeling for the estate you actually run. Three moves: classify where sensitive data lives, simulate compromise of the assets that hold it, and keep the resulting risks in a register that gets reviewed instead of forgotten.

Ideal State

  • Every artifact a run produces (data map, scenario, injection map, target model, register entry) sits in the private data dir with no secret value in it, and the skill tree holds code only.
  • Impact and likelihood rest on evidence: data classes and what an asset can reach for impact, exposure for likelihood, Atlas output where the install has it and a stated hand-built inventory where it does not.
  • Every real risk a run surfaces lands in the register through the CLI with a score, a scope and a review date, so the Socrates review loop (References/Continuous.md) reviews it instead of it being forgotten.
  • The estate is modeled, never touched: no run exploits, scans or changes an asset, and the audit writes none of the registers it reads.

Intent Routing

Intent Trigger File
SensitiveDataMap "where is our sensitive data", "data classification", "which assets hold sensitive data" Intents/SensitiveDataMap.md
CompromiseScenario "what if X got hacked", "compromise scenario", "blast radius of X" Intents/CompromiseScenario.md
ThreatModelTarget "threat model X", "threat model the estate", "risk assessment of X" Intents/ThreatModelTarget.md
InjectionSurfaceMap "prompt injection", "injection surfaces", "where can untrusted content get in", "trust boundaries", "what can inject into the agent", "lethal trifecta" Intents/InjectionSurfaceMap.md
RiskRegister "risk register", "add a risk", "risk review", "accept risk", "close risk" Intents/RiskRegister.md
SecurityAudit "run a full security audit", "security audit", "how exposed am I", "audit our security", "latest audit" Intents/SecurityAudit.md

Read the full file on GitHub · 121 lines

Files

What ships with it

8 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 · +10 lines · -182 tokens per session 60af7f11b6b3
  2. 2mo ago First seen · 111 lines · 182 tokens per session scan A 873cf9153179

Subscribe to this mod's changes

ThreatModel is a skill published in the GitHub repository danielmiessler/LifeOS (20,481 stars, last pushed 11d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,138 tokens. 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

ThreatModel compared with skills from other repositories

ThreatModel next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ThreatModeldanielmiessler/LifeOSSkill20k11d agoMITA0Claude Code, Codex
long-running-workZfinix/asterSkill14329d agoApache-2.0A0Claude Code, Codex
i-have-adhdZfinix/asterSkill14329d agoApache-2.0A60Claude Code, Codex
shortcutsZfinix/asterSkill14329d agoApache-2.0A0Claude Code, Codex
plan-devex-reviewGlobal-mindee/WAYSkill112mo agoMITA156Codex
aster-capabilitiesZfinix/asterSkill14329d agoApache-2.0C0Claude Code, Codex
plan-tuneGlobal-mindee/WAYSkill112mo agoMITA170Codex