attack-tree-construction – skill Bảo mật cho agent AI
Xây dựng cây tấn công toàn diện để trực quan hóa các đường đi của mối đe dọa. Dùng khi lập bản đồ kịch bản tấn công, xác định lỗ hổng phòng thủ, hoặc truyền đạt rủi ro bảo mật cho các bên liên quan.
Cài skill attack-tree-construction bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/attack-tree-construction-3d21c.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /attack-tree-construction – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/attack-tree-construction-3d21c.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $attack-tree-construction – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/attack-tree-construction-3d21c.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /attack-tree-construction – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/attack-tree-construction-3d21c.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /attack-tree-construction – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
> ⚠️ AUTHORIZED USE ONLY
> This skill is for educational purposes or authorized security assessments only.
> You must have explicit, written permission from the system owner before using this tool.
> Misuse of this tool is illegal and strictly prohibited.
> Mandatory confirmation gate
> Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:
> 1. Ask the user to state the exact target URL, IP, account, or resource.
> 2. Ask the user to confirm written authorization and the permitted scope.
> 3. Show the exact command(s) and explain their expected effect.
> 4. Wait for explicit confirmation in the current conversation.
>
> Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.
> AUTHORIZED USE ONLY: Use this skill only for authorized security assessments, defensive validation, or controlled educational environments.
Attack Tree Construction
Systematic attack path visualization and analysis.
Use this skill when
- Visualizing complex attack scenarios
- Identifying defense gaps and priorities
- Communicating risks to stakeholders
- Planning defensive investments or test scopes
Do not use this skill when
- You lack authorization or a defined scope to model the system
- The task is a general risk review without attack-path modeling
- The request is unrelated to security assessment or design
Instructions
- Confirm scope, assets, and the attacker goal for the root node.
- Decompose into sub-goals with AND/OR structure.
- Annotate leaves with cost, skill, time, and detectability.
- Map mitigations per branch and prioritize high-impact paths.
- If detailed templates are required, open
resources/implementation-playbook.md.
Safety
- Share attack trees only with authorized stakeholders.
- Avoid including sensitive exploit details unless required.
Resources
resources/implementation-playbook.mdfor detailed patterns, templates, and examples.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Model validity and metric limits
Validate a finite acyclic tree with unique IDs, nonempty AND/OR nodes and no children on leaves before recursion/export. The builder does not supply full validation, cycle detection or an enumeration cap; path products can grow exponentially. “Easiest” now uses the same max-difficulty convention as node aggregation, and detection uses a stated worst-step ordinal index, not a probability. The cost enum is an ordinal score; summing it does not produce dollars. Shared prerequisites, correlated detection, parallel time and resource reuse require a richer model.
Coverage means the fraction of enumerated modeled paths intersecting a supplied blocked-leaf set. A mitigation label is not evidence it fully blocks a leaf or that paths have equal likelihood; do not call the percentage real security coverage. Escape user-supplied diagram labels in the target grammar before rendering; the exporter sketches still assume reviewed safe labels. CVE references need actual affected-version/configuration evidence. No exploit, renderer or attack-tree implementation was executed during review.
Skill liên quan
- ciso-advisor – Lãnh đạo bảo mật cho các công ty đang tăng trưởng. Định lượng rủi ro bằng tiền, lộ trình…
- security-threat-model – Mô hình hóa mối đe dọa dựa trên kho mã, liệt kê ranh giới tin cậy, tài sản, năng lực kẻ…
- hunt-idor – Skill săn lỗ hổng IDOR. Được xây dựng từ 26 báo cáo bug bounty công khai. Dùng khi săn…
- audit-context-building – Cho phép phân tích mã cực chi tiết, từng dòng, để xây dựng ngữ cảnh kiến trúc sâu trước…
- audit-log – Sổ nhật ký kiểm toán: dấu thời gian, người dùng, module, bản ghi, hành động, trường bị…
- audit-logging – Triển khai ghi nhật ký kiểm toán tập trung và tích hợp SIEM. Cấu hình thời gian lưu giữ…
- audit-preparation – Sổ đăng ký chuẩn bị kiểm toán: tài liệu bắt buộc, kỳ được bao phủ, ngày yêu cầu và ngày…
- audit-skills – Chuyên gia kiểm toán bảo mật cho AI Skills và Bundles. Thực hiện phân tích tĩnh không…