ThreatModel
Skill này làm gì
Lập bản đồ nơi dữ liệu nhạy cảm nằm trong hệ thống của bạn, hình dung điều gì sẽ xảy ra nếu một hệ thống bị xâm phạm, và theo dõi các rủi ro phát sinh. Dành cho người muốn có cái nhìn rõ ràng và mang tính phòng thủ về hệ thống của chính họ.
Khi nào nên dùng
- ✓Khi bạn muốn biết dữ liệu nhạy cảm được lưu ở đâu trong các hệ thống của mình.
- ✓Khi bạn muốn xem điều gì có thể xảy ra nếu một hệ thống bị xâm phạm.
- ✓Khi bạn muốn ghi lại và xem lại danh sách rủi ro bảo mật.
Liên kết skill
https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/ThreatModel/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Lập bản đồ nơi dữ liệu khách hàng của chúng tôi được lưu, và cho tôi biết vụ rò rỉ công cụ phân tích sẽ làm lộ những gì.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill phân loại nơi dữ liệu nhạy cảm nằm, mô phỏng một kịch bản xâm phạm cho từng tài sản và chấm điểm kết quả. Nó giữ các rủi ro trong một sổ đăng ký có ngày xem lại, và mô hình hóa hệ thống của bạn mà không chạm vào hay kiểm thử chúng.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Nó có tấn công hệ thống của tôi không?
Không. Nó mô hình hóa cách bạn thiết lập và không khai thác, quét hay thay đổi bất kỳ tài sản nào.
Các giá trị bí mật có được lưu trong tệp của nó không?
Không. Hồ sơ của nó không chứa giá trị bí mật nào và được giữ trong một thư mục dữ liệu riêng tư.
Rủi ro được xếp hạng thế nào?
Mức tác động và khả năng xảy ra được chấm điểm dựa trên loại dữ liệu, mức độ phơi bày và bằng chứng từ danh mục tài sản.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 20k
- Vị trí xếp hạng
- #10468
- Giấy phép
- MIT
- Cập nhật
- 28/10/2026
Bình luận
- …
Thêm skill từ kho mã này
LifeOS
20kGiúp agent của bạn thiết lập LifeOS, một hệ thống cá nhân ánh xạ trạng thái hiện tại tới trạng thái lý tưởng qua một cuộc phỏng vấn và một bảng điều khiển.
AnnualReports
20kGiúp agent của bạn tìm và so sánh báo cáo an ninh mạng thường niên từ các nhà cung cấp lớn, như xu hướng vi phạm và ransomware, có nguồn cho mọi số liệu.
ApertureOscillation
20kDạy agent của bạn kiểm tra một câu hỏi thiết kế ở phạm vi hẹp và phạm vi rộng, rồi chỉ ra chỗ hai câu trả lời mâu thuẫn trước khi bạn xây dựng.
Aphorisms
20kCho phép agent của bạn tìm, ghép và theo dõi các câu trích dẫn có ghi tác giả từ một bộ sưu tập được chọn lọc, tránh những câu vừa được dùng trong bản tin.
Skill tương tự
reverse-engineer-anything
422kGiúp agent của bạn xem bên trong các app và package đã phát hành để giải thích tính năng, so sánh phiên bản hoặc hướng dẫn dựng lại bằng công cụ REA.
1password
394kGiúp agent của bạn cài đặt CLI của 1Password, đăng nhập, và đọc hoặc đưa thông tin bí mật vào mà không in giá trị ra cuộc trò chuyện.
healthcheck
394kGiúp agent của bạn rà soát bảo mật máy tính hoặc máy chủ đang chạy OpenClaw, như SSH, tường lửa, cập nhật và sao lưu, rồi đề xuất cách sửa an toàn.