跳到正文
Skillpedia
安全20k · #10468

ThreatModel

它能做什么

映射敏感数据在你的系统中的位置,设想某个系统被入侵时会发生什么,并追踪由此产生的风险。它适用于希望清楚、防御性地审视自己系统的人。

适用场景

  • ✓当你想知道敏感数据分布在你的各个系统中的什么位置的时候。
  • ✓当你想看看某个系统被入侵后可能发生什么的时候。
  • ✓当你想记录并复查一份安全风险清单的时候。

技能链接

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

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/ThreatModel/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 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

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能