本文へスキップ
Skillpedia
セキュリティ20k · #10468

ThreatModel

できること

このスキルは、機密データが設定のどこにあるかを地図化し、システムが侵害された場合に何が起きるかを描き、その結果のリスクを追跡します。自分のシステムを、明確で防御的な視点から見たい人向けです。

使う場面

  • ✓機密データがシステム全体のどこに保存されているかを知りたいとき。
  • ✓一つのシステムが侵害されたら何が起きうるかを確認したいとき。
  • ✓セキュリティリスクの一覧を記録し、レビューしたいとき。

スキルのリンク

https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/ThreatModel/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/ThreatModel/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

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_DIR overrides it. Tools/RiskRegister.ts structurally refuses any data dir that resolves inside a skills/ 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_DIR when 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

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル