mapping-mitre-attack-techniques
Skill này làm gì
Công cụ này giúp bạn hiểu những kỹ thuật tấn công mạng cụ thể nào mà hệ thống bảo mật của bạn có thể phát hiện. Nó so sánh phòng thủ của bạn với danh mục các chiến thuật tấn công đã biết (MITRE ATT&CK) để cho thấy bạn được bảo vệ ở đâu và còn thiếu sót ở đâu.
Khi nào nên dùng
- ✓Để tạo bản đồ trực quan cho thấy những mối đe dọa mạng nào hệ thống bảo mật của bạn đã phát hiện.
- ✓Để sắp xếp và gắn nhãn cảnh báo bảo mật theo loại tấn công mà chúng nhận diện.
- ✓Để lên kế hoạch cải thiện bảo mật tốt hơn dựa trên cách kẻ tấn công thực sự hoạt động.
Liên kết skill
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/mapping-mitre-attack-techniques/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
“Hãy cho tôi xem những kỹ thuật tấn công mạng nào mà các quy tắc bảo mật hiện tại của tôi có thể phát hiện.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Công cụ dùng danh mục chính thức các chiến thuật tấn công (MITRE ATT&CK) và so sánh các quy tắc bảo mật của bạn với nó. Nó xác định những kỹ thuật tấn công nào đã được bao phủ và những kỹ thuật nào chưa, rồi tạo báo cáo hoặc bản đồ trực quan.
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.
Mapping MITRE ATT&CK Techniques
When to Use
Use this skill when:
- Generating an ATT&CK coverage heatmap to show which techniques your detection stack addresses
- Tagging existing SIEM use cases or Sigma rules with ATT&CK technique IDs for structured reporting
- Aligning your security program roadmap to specific adversary groups known to target your sector
Do not use this skill for real-time incident triage — ATT&CK mapping is an analytical activity best performed post-detection or during threat hunting planning.
Prerequisites
- Access to MITRE ATT&CK knowledge base (https://attack.mitre.org) or local ATT&CK STIX data bundle
- ATT&CK Navigator web app or local installation (https://mitre-attack.github.io/attack-navigator/)
- Inventory of existing detection rules (Sigma, Splunk, Sentinel KQL) to assess current coverage
- ATT&CK Python library:
pip install mitreattack-python
Workflow
Step 1: Obtain Current ATT&CK Data
Download the latest ATT&CK STIX bundle for the relevant matrix (Enterprise, Mobile, ICS):
curl -o enterprise-attack.json \
https://raw.githubusercontent.com/mitre/cti/master/enterprise-attack/enterprise-attack.json
Use the mitreattack-python library to query techniques programmatically:
from mitreattack.stix20 import MitreAttackData
mitre = MitreAttackData("enterprise-attack.json")
techniques = mitre.get_techniques(remove_revoked_deprecated=True)
for t in techniques[:5]:
print(t["external_references"][0]["external_id"], t["name"])
Step 2: Map Existing Detections to Techniques
For each SIEM rule or Sigma file, assign ATT&CK technique IDs. Sigma rules support native ATT&CK tagging:
tags:
- attack.execution
- attack.t1059.001 # PowerShell
- attack.t1059.003 # Windows Command Shell
Create a coverage matrix: list each technique ID and mark as: Detected (alert fires), Logged (data present but no alert), Blind (no data source).
Step 3: Prioritize Coverage Gaps Using Threat Intelligence
Cross-reference coverage gaps with adversary groups targeting your sector. Use ATT&CK Groups data:
groups = mitre.get_groups()
apt29 = mitre.get_object_by_attack_id("G0016", "groups")
apt29_techniques = mitre.get_techniques_used_by_group(apt29)
for t in apt29_techniques:
print(t["object"]["external_references"][0]["external_id"])
Prioritize adding detection for techniques used by high-priority threat groups where your coverage is blind.
Step 4: Build Navigator Heatmap
Export coverage scores as ATT&CK Navigator JSON layer:
import json
layer = {
"name": "SOC Detection Coverage Q1 2025",
"versions": {"attack": "14", "navigator": "4.9", "layer": "4.5"},
"domain": "enterprise-attack",
"techniques": [
{"techniqueID": "T1059.001", "score": 100, "comment": "Splunk rule: PS_Encoded_Command"},
{"techniqueID": "T1071.001", "score": 50, "comment": "Logged only, no alert"},
{"techniqueID": "T1055", "score": 0, "comment": "No coverage — blind spot"}
],
"gradient": {"colors": ["#ff6666", "#ffe766", "#8ec843"], "minValue": 0, "maxValue": 100}
}
with open("coverage_layer.json", "w") as f:
json.dump(layer, f)
Import layer into ATT&CK Navigator (https://mitre-attack.github.io/attack-navigator/) for visualization.
Step 5: Generate Executive Coverage Report
Summarize coverage by tactic category (Initial Access, Execution, Persistence, etc.) with counts and percentages. Provide a risk-ranked list of top 10 blind-spot techniques based on adversary group usage frequency. Recommend data source additions (e.g., "Enable PowerShell Script Block Logging to address 12 Execution sub-technique gaps").
Key Concepts
| Term | Definition |
|---|---|
| ATT&CK Technique | Specific adversary method identified by T-number (e.g., T1059 = Command and Scripting Interpreter) |
| Sub-technique | More granular variant of a technique (e.g., T1059.001 = PowerShell, T1059.003 = Windows Command Shell) |
| Tactic | Adversary goal category in ATT&CK: Initial Access, Execution, Persistence, Privilege Escalation, Defense Evasion, Credential Access, Discovery, Lateral Movement, Collection, C&C, Exfiltration, Impact |
| Data Source | ATT&CK v10+ component identifying telemetry required to detect a technique (e.g., Process Creation, Network Traffic) |
…
Câu hỏi thường gặp
MITRE ATT&CK là gì?
Đây là danh mục các chiến thuật và kỹ thuật tấn công mạng được công nhận trên toàn cầu, dựa trên những quan sát thực tế. Nó giúp hiểu cách kẻ tấn công hoạt động.
“Detection coverage” nghĩa là gì?
Đây là thước đo mức độ công cụ bảo mật của bạn có thể nhận diện và cảnh báo các hoạt động độc hại cụ thể, so với một tập hợp chiến thuật tấn công đã biết.
Tôi có thể dùng công cụ này để xem tấn công theo thời gian thực không?
Không. Công cụ này dùng để phân tích và lập kế hoạch. Nó giúp hiểu mức độ bao phủ bảo mật sau một sự cố hoặc trong quá trình lập kế hoạch, không dùng để xử lý tấn công khi đang diễn ra.
Chi tiết
Mô tả gốc của tác giả
Maps observed adversary behaviors, security alerts, and detection rules to MITRE ATT&CK techniques and sub-techniques to quantify detection coverage and guide control prioritization. Use when building an ATT&CK-based coverage heatmap, tagging SIEM alerts with technique IDs, aligning security controls to adversary playbooks, or reporting threat exposure to executives. Activates for requests involvi
Độ phổ biến
- Sao GitHub
- 35k
- Vị trí xếp hạng
- #8159
- Giấy phép
- Apache-2.0
- Cập nhật
- 31/8/2026
Bình luận
- …
Thêm skill từ kho mã này
abusing-dpapi-for-credential-access
35kCung cấp cho agent AI của bạn hướng dẫn có sẵn cho một tác vụ cụ thể, giúp nó làm việc tốt hơn và nhanh hơn.
abusing-shadow-credentials-for-privesc
35kDạy agent AI của bạn viết văn bản rõ ràng và có cấu trúc tốt.
achieving-cmmc-level-2-compliance
35kGiúp agent của bạn chuẩn bị môi trường để tuân thủ CMMC Level 2. Triển khai các yêu cầu bảo mật và quản lý tài liệu cần thiết.
acquiring-disk-image-with-dd-and-dcfldd
35kGiúp agent của bạn tạo bản sao chính xác của ổ đĩa. Cách này đảm bảo không mất hay thay đổi thông tin trong quá trình điều tra.
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.