ThreatModel
できること
このスキルは、機密データが設定のどこにあるかを地図化し、システムが侵害された場合に何が起きるかを描き、その結果のリスクを追跡します。自分のシステムを、明確で防御的な視点から見たい人向けです。
使う場面
- ✓機密データがシステム全体のどこに保存されているかを知りたいとき。
- ✓一つのシステムが侵害されたら何が起きうるかを確認したいとき。
- ✓セキュリティリスクの一覧を記録し、レビューしたいとき。
スキルのリンク
https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/ThreatModel/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“顧客データがどこに保存されているかを地図化し、分析ツールが侵害されたら何が露出するかを教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
スキルは、機密データがある場所を分類し、資産ごとに侵害のシナリオを模擬して、結果に点数を付けます。リスクはレビュー日付の付いた台帳に保管され、システムには触れたりテストしたりせず、モデル化します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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 |
| File | Read when |
|---|---|
References/Continuous.md |
Setting --telos-ref or scope on a row, exporting one scope, or changing what the daily Socrates questions check |
Data & Config (safety gate)
This skill directory is public code, so it never holds data.
- Data dir:
~/.claude/LIFEOS/USER/SECURITY/THREATMODEL/by default (release-excluded USER tree);THREATMODEL_DATA_DIRoverrides it.Tools/RiskRegister.tsstructurally refuses any data dir that resolves inside askills/path. - Register entries reference credentials by env-var name only, never by value. No tokens, keys, or cookies anywhere in threat-model output.
- Customizations:
<configRoot>/LIFEOS/USER/CUSTOMIZATIONS/SKILLS/ThreatModel/PREFERENCES.md, where configRoot is$CLAUDE_CONFIG_DIRwhen set, else~/.claude. When it exists, load and apply it before executing (data locations, sensitive-data class priorities, response runbook cross-references); otherwise use the defaults.
Risk Scoring
score = likelihood (1-5) × impact (1-5) → Low 1-4 · Medium 5-9 · High 10-14 · Critical 15-25. The CLI computes score and level from the two inputs.
Impact is anchored to data classes and blast radius: an asset whose compromise exposes credentials or customer data starts at impact 4+. A worker with no data of its own routinely inherits a 5 through its bindings.
- 5: credentials to many systems, customer data at scale, or financial/health PII
- 4: credentials to one data-bearing system, or a private data store
- 3: internal-only data, or write access to a public surface
- 2: limited internal exposure
- 1: public-only data, no pivot
Likelihood is anchored to exposure (public URL, auth boundary, patch state, credential hygiene).
Asset Graph Integration
If the install has Atlas (~/.claude/LIFEOS/ATLAS/Atlas.ts), intents use it as the current-state source of truth:
bun ~/.claude/LIFEOS/ATLAS/Atlas.ts blast <key> # what relies on this asset
bun ~/.claude/LIFEOS/ATLAS/Atlas.ts owns <key> # what deleting/losing it orphans
bun ~/.claude/LIFEOS/ATLAS/Atlas.ts exposed <key> # which credentials it would leak, priority-ordered
bun ~/.claude/LIFEOS/ATLAS/Atlas.ts injection # ingestion surfaces by trust class + control coverage
bun ~/.claude/LIFEOS/ATLAS/Atlas.ts
よくある質問
私のシステムを攻撃しますか?
いいえ。設定をモデル化するだけで、資産を悪用したり、スキャンしたり、変更したりすることはありません。
秘密の値はファイルに保存されますか?
いいえ。記録には秘密の値は含まれず、非公開のデータフォルダーに残ります。
リスクはどのように順位付けされますか?
影響と発生の可能性は、データの種類、露出、資産目録の証拠から点数化されます。
詳細
作者による元の説明
Defensive threat modeling of your own estate: sensitive-data map, trust boundaries, compromise scenarios, a scored risk register via CLI. USE WHEN run a full security audit, security audit, how exposed am I, threat model, risk register, risk assessment, what if X got hacked, compromise scenario, blast radius, sensitive data map, data classification, add a risk, accept a risk, injection surfaces, trust boundaries, lethal trifecta. NOT FOR pentesting (a private-only offensive skill), futures or stress-testing an idea (RedTeam, Research), running IR.
repo: danielmiessler/LifeOS
人気
- GitHubのスター
- 20k
- ランキング
- #10468
- ライセンス
- MIT
- 更新日
- 2026/10/28
コメント
- …
このリポジトリの他のスキル
LifeOS
20kインタビューとダッシュボードを通じて、現在の状態を理想の状態へ結びつける個人システム LifeOS を、エージェントが設定するのを支援します。
AnnualReports
20k主要ベンダーのサイバーセキュリティの年次レポートを探して比較し、侵害やランサムウェアの傾向などをまとめます。すべての数字に出典を付けます。
ApertureOscillation
20k一つの設計上の問いを、狭い範囲と広い範囲の両方でテストし、構築する前に二つの答えが食い違う箇所を指摘するよう、エージェントに教えます。
Aphorisms
20k新聞の編集テーマに合う、出典の確かな引用を、キュレーションされたコレクションから見つけ、照合し、最近使ったものを避けて管理するよう、エージェントを支援します。
似ているスキル
reverse-engineer-anything
422kREAツールを使って、出荷済みのアプリやパッケージの中身を調べ、機能の説明、版の比較、再構築の手順をエージェントが支援します。
1password
394k1Password CLIをセットアップし、サインインして、秘密情報の値を会話に表示せずに読み取ったり注入したりするようエージェントを支援します。
healthcheck
394kOpenClawを動かすコンピューターやサーバーを、SSH、ファイアウォール、更新、バックアップなどのセキュリティリスクについて監査し、安全な修正案を提案するようエージェントを支援します。