c2
Skill này làm gì
Cơ sở kiến thức này bao quát thiết kế chung của hạ tầng command-and-control cho công việc red team được ủy quyền. Dành cho đội red team và người phòng thủ cần hiểu cách các hệ thống này được sắp xếp.
Khi nào nên dùng
- ✓Khi một diễn tập được ủy quyền cần một thiết kế command-and-control tách máy chủ khỏi máy tấn công.
- ✓Khi một đội phòng thủ muốn hiểu cách redirector và listener đặt trước một máy chủ điều khiển.
- ✓Khi một nhóm cần danh sách các container framework đang chạy trong môi trường thử nghiệm.
Liên kết skill
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/post-exploit/c2/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
“Cho diễn tập được ủy quyền của chúng tôi, bạn có thể giải thích nên sắp xếp máy chủ điều khiển, redirector và listener như thế nào không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent mô tả bố cục, như tách máy chủ điều khiển khỏi máy người vận hành, và kiểm tra những thành phần framework nào đang chạy trong môi trường thử nghiệm.
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.
Command & Control (C2) Knowledge Base
C2 infrastructure enables persistent, covert communication between the operator and implants deployed on target systems. Proper C2 setup minimizes detection, ensures operational resilience through redirectors, and provides the foundation for all post-exploitation activity.
Decepticon C2 Architecture
C2 servers run as separate containers on
sandbox-net, selectable via docker compose profiles. The Kali sandbox has C2 clients only — servers are never co-located with the attack box.
Framework Container Profile Client in Sandbox Sliver c2-sliverc2-sliver(default in.env)sliver-clientHavoc c2-havocc2-havoc(future)havoc-client(future)Default:
COMPOSE_PROFILES=c2-sliverin.env→docker compose up -dstarts Sliver. Swap: changeCOMPOSE_PROFILESvalue to use a different C2 framework. For framework-specific setup, consult the dedicated skill:c2-sliver,c2-havoc, etc.
MITRE ATT&CK Mapping
| Technique ID | Name | C2 Relevance |
|---|---|---|
| T1071.001 | Application Layer Protocol: Web Protocols | HTTPS-based C2 channels |
| T1071.004 | Application Layer Protocol: DNS | DNS-based C2 channels |
| T1573.002 | Encrypted Channel: Asymmetric Cryptography | mTLS, AES-encrypted payloads |
| T1090.002 | Proxy: External Proxy | Redirectors, CDN fronting |
| T1105 | Ingress Tool Transfer | Upload/download via implant |
| T1572 | Protocol Tunneling | DNS tunneling, port forwarding |
1. C2 Channel Types
| Channel | Port | Stealth | Speed | Use Case |
|---|---|---|---|---|
| HTTPS | 443 | High (blends with web) | Fast | Primary channel |
| DNS | 53 | Very High (rarely blocked) | Slow | Fallback / restricted networks |
| mTLS | Custom | High (mutual auth) | Fast | High-security sessions |
| WireGuard | 51820 | Medium | Fast | Tunneled access, pivoting |
Multi-Channel Strategy
Primary: HTTPS (443) — fast, reliable, blends with web traffic
Fallback: DNS (53) — survives proxy/firewall restrictions
Pivot: mTLS (8888) — internal movement after initial foothold
Tunnel: WireGuard — full network tunnel through implant
2. Implant Modes
| Mode | Use Case | OPSEC | Responsiveness |
|---|---|---|---|
| Beacon | Long-term persistence, low-and-slow | High (periodic check-ins) | Low (sleep + jitter delay) |
| Session | Active exploitation, interactive ops | Low (persistent connection) | Immediate |
| Stager | Initial delivery, size-constrained | Medium (small footprint) | Delayed (downloads full implant) |
Jitter Recommendations
| Environment | Sleep Interval | Jitter % | Rationale |
|---|---|---|---|
| Initial access | 60-120s | 50-70% | Avoid pattern detection |
| Established foothold | 30-60s | 30-50% | Balance speed and stealth |
| Active operation window | 5-15s | 20-30% | Responsiveness needed |
| Long-term persistence | 300-900s | 60-80% | Blend with noise floor |
Output Formats
| Format | Use Case | Delivery Method |
|---|---|---|
| EXE | Direct execution | Phishing, file share, web exploit |
| Shared Library (DLL/SO) | DLL sideloading, hijacking | Planted in app directory |
| Shellcode | Custom loaders, injection | Process injection, custom dropper |
| Service | Windows service persistence | sc.exe, registry modification |
3. Redirector Architecture
Target Network Internet Operator
┌──────────┐ ┌────────────────┐ ┌──────────────┐
│ Implant │────→│ Redirector │────→│ Teamserver │
│ │←────│ (NGINX/CDN) │←────│ (C2 Server) │
│ │ │ │ │ │
└──────────┘ │ - URI filter │ └──────────────┘
│ - UA filter │
│ - GeoIP block │
│ - Decoy page │
└────────────────┘
NGINX Reverse Proxy Redirector
# /etc/nginx/sites-available/c2-redirector
server {
listen 443 ssl;
server_name legitimate-looking-domain.com;
ssl_certificate /etc/letsencrypt/live/legitimate-looking-domain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/legitimate-looking-domain.com/privkey.pem;
# Allow only expected C2 URIs
location /api/v2/status {
proxy_pass
Câu hỏi thường gặp
Vì sao máy chủ được tách khỏi máy tấn công?
Hướng dẫn nói máy chủ điều khiển chạy trong các container riêng, nên máy người vận hành chỉ có client.
Redirector là gì?
Đó là bộ chuyển tiếp đặt trước máy chủ điều khiển để bảo vệ nó.
Những framework nào được nhắc đến?
Sliver và Havoc, với thiết lập mặc định dùng Sliver.
Chi tiết
Mô tả gốc của tác giả
Framework-agnostic C2 orchestration — listener types, implant modes, redirector architecture, malleable profiles, jitter strategy, OPSEC guidance.
Độ phổ biến
- Sao GitHub
- 6.5k
- Vị trí xếp hạng
- #14130
- Giấy phép
- Apache-2.0
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
detector-overview
6.5kGiúp agent của bạn đọc code mà một công cụ quét đã đánh dấu, rồi quyết định điểm nào là lỗ hổng bảo mật thật và điểm nào là báo động giả.
exploiter-overview
6.5kGiúp agent của bạn ghép nhiều lỗ hổng bảo mật đã xác nhận thành một chuỗi kiểm thử và kiểm tra chuỗi đó có thể gây hậu quả đến đâu.
llm-redteam-overview
6.5kGiúp agent của bạn tìm đúng hướng dẫn red-team AI cho một bài kiểm thử, bao quát 15 nhóm chiến thuật từ prompt injection đến lạm dụng mô hình.
aatmf-t01-prompt-injection
6.5kGiải thích prompt injection, khi các chỉ dẫn ẩn cố ghi đè một hệ thống AI, để chuyên gia bảo mật có thể kiểm tra lỗi này.
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.