analyzing-cobaltstrike-malleable-c2-profiles
Skill này làm gì
Công cụ này phân tích các file cấu hình Cobalt Strike, dùng để ngụy trang giao tiếp của hacker. Nó trích xuất các thông tin quan trọng về cách giao tiếp này hoạt động để hỗ trợ xây dựng phòng thủ.
Khi nào nên dùng
- ✓Khi điều tra một sự cố bảo mật.
- ✓Khi tạo quy tắc để phát hiện lưu lượng đáng ngờ.
- ✓Khi kiểm tra xem hệ thống bảo mật có bao phủ một số kỹ thuật tấn công nhất định hay không.
Liên kết skill
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/analyzing-cobaltstrike-malleable-c2-profiles/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
“Phân tích profile Cobalt Strike này và cho tôi biết cách phát hiện lưu lượng của nó.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Công cụ đọc file cấu hình Cobalt Strike và trích xuất các chi tiết như địa chỉ internet (URI), header của yêu cầu và thời gian chờ. Từ đó, công cụ gợi ý cách tạo quy tắc để nhận diện hoạt động độc hại.
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.
Analyzing CobaltStrike Malleable C2 Profiles
Overview
Cobalt Strike Malleable C2 profiles are domain-specific language scripts that customize how Beacon communicates with the team server, defining HTTP request/response transformations, sleep intervals, jitter values, user agents, URI paths, and process injection behavior. Threat actors use malleable profiles to disguise C2 traffic as legitimate services (Amazon, Google, Slack). Analyzing these profiles reveals network indicators for detection: URI patterns, HTTP headers, POST/GET transforms, DNS settings, and process injection techniques. The dissect.cobaltstrike library can parse both profile files and extract configurations from beacon payloads, while pyMalleableC2 provides AST-based parsing using Lark grammar for programmatic profile manipulation and validation.
When to Use
- When investigating security incidents that require analyzing cobaltstrike malleable c2 profiles
- When building detection rules or threat hunting queries for this domain
- When SOC analysts need structured procedures for this analysis type
- When validating security monitoring coverage for related attack techniques
Prerequisites
- Python 3.9+ with
dissect.cobaltstrikeand/orpyMalleableC2 - Sample Malleable C2 profiles (available from public repositories)
- Understanding of HTTP protocol and Cobalt Strike beacon communication model
- Network monitoring tools (Suricata/Snort) for signature deployment
- PCAP analysis tools for traffic validation
Steps
- Install libraries:
pip install dissect.cobaltstrikeorpip install pyMalleableC2 - Parse profile with
C2Profile.from_path("profile.profile") - Extract HTTP GET/POST block configurations (URIs, headers, parameters)
- Identify user agent strings and spoof targets
- Extract sleep time, jitter percentage, and DNS beacon settings
- Analyze process injection settings (spawn-to, allocation technique)
- Generate Suricata/Snort signatures from extracted network indicators
- Compare profile against known threat actor profile collections
- Extract staging URIs and payload delivery mechanisms
- Produce detection report with IOCs and recommended network signatures
Expected Output
A JSON report containing extracted C2 URIs, HTTP headers, user agents, sleep/jitter settings, process injection config, spawned process paths, DNS settings, and generated Suricata-compatible detection rules.
Câu hỏi thường gặp
Cobalt Strike là gì?
Đây là công cụ mà các đội bảo mật dùng để mô phỏng tấn công và kiểm tra phòng thủ, nhưng hacker cũng có thể dùng để điều khiển các hệ thống bị xâm nhập.
Malleable C2 profile là gì?
Đây là các cấu hình tùy chỉnh cách giao tiếp của Cobalt Strike để trông giống lưu lượng internet bình thường, khiến việc phát hiện khó hơn.
URI là gì?
Đây là các địa chỉ cụ thể bên trong một trang web hoặc dịch vụ trên internet, ví dụ “/login” hoặc “/api/data”.
Chi tiết
Mô tả gốc của tác giả
Parse and analyze Cobalt Strike Malleable C2 profiles with dissect.cobaltstrike (profiles and beacon-payload configs) and pyMalleableC2 (AST parsing) to extract HTTP/DNS transforms, URIs, headers, sleep/jitter, and injection behavior, then generate network detection signatures. Use when reverse-engineering a captured malleable profile or building detections against Cobalt Strike Beacon traffic.
Độ phổ biến
- Sao GitHub
- 35k
- Vị trí xếp hạng
- #7606
- 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.