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, tìm 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-a7034.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-a7034.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-a7034.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-a7034.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.
Attack Tree Construction
Systematic attack path visualization and analysis.
When to Use This Skill
- Visualizing complex attack scenarios
- Identifying defense gaps and priorities
- Communicating risks to stakeholders
- Planning defensive investments
- Penetration test planning
- Security architecture review
Core Concepts
1. Attack Tree Structure
[Root Goal]
|
┌────────────┴────────────┐
│ │
[Sub-goal 1] [Sub-goal 2]
(OR node) (AND node)
│ │
┌─────┴─────┐ ┌─────┴─────┐
│ │ │ │
[Attack] [Attack] [Attack] [Attack]
(leaf) (leaf) (leaf) (leaf)2. Node Types
| Type | Symbol | Description |
| -------- | --------- | ----------------------- |
| OR | Oval | Any child achieves goal |
| AND | Rectangle | All children required |
| Leaf | Box | Atomic attack step |
3. Attack Attributes
| Attribute | Description | Values |
| ------------- | ----------------------- | ------------------ |
| Cost | Resources needed | $, $$, $$$ |
| Time | Duration to execute | Hours, Days, Weeks |
| Skill | Expertise required | Low, Medium, High |
| Detection | Likelihood of detection | Low, Medium, High |
Templates and detailed worked examples
Full template library lives in references/details.md. Read that file when you need concrete templates for this skill.
Best Practices
Do's
- Start with clear goals - Define what attacker wants
- Be exhaustive - Consider all attack vectors
- Attribute attacks - Cost, skill, and detection
- Update regularly - New threats emerge
- Validate with experts - Red team review
Don'ts
- Don't oversimplify - Real attacks are complex
- Don't ignore dependencies - AND nodes matter
- Don't forget insider threats - Not all attackers are external
- Don't skip mitigations - Trees are for defense planning
- Don't make it static - Threat landscape evolves
Skill liên quan
- cache-attack – Đầu độc cache CDN hoặc đánh lừa khi phát hiện header X-Cache.
- aso – Khi người dùng muốn kiểm tra hoặc tối ưu trang niêm yết trên App Store hoặc Google Play…
- cms-detection – Nhận diện CMS, framework và công nghệ server trên các host đang hoạt động.
- ai-security – Dùng khi đánh giá hệ thống AI/ML về prompt injection, lỗ hổng jailbreak, rủi ro model…
- cors-credential-wordpress – Khai thác phản chiếu credential CORS trên WP để đánh cắp dữ liệu.
- aims-audit – /compliance-os:aims-audit [scope] — Kiểm toán nội bộ AIMS theo ISO/IEC 42001 với 6 câu…
- agenttrace-session-audit – Kiểm toán phiên làm việc của agent lập trình AI cục bộ bằng agenttrace: chi phí, lỗi…
- agy-auto – Cấu hình cổng bảo mật PreToolUse agy-auto để chạy Antigravity CLI (agy) không cần giám…