Aller au contenu
Skillpedia
Déploiement et cloud (DevOps)35k · #7674

operating-havoc-c2

Ce qu’il fait

Cet outil aide à mettre en place un serveur de commande et de contrôle (C2) appelé Havoc. Il permet de créer des agents (programmes malveillants) difficiles à détecter par les logiciels de sécurité, grâce à des techniques d'évasion avancées. Vous pouvez l'utiliser pour des tests de sécurité des systèmes autorisés.

Quand l’utiliser

  • ✓Lors de tests de sécurité red team autorisés nécessitant un système C2 avancé.
  • ✓Pour simuler la façon dont de vrais attaquants utilisent des outils comme Havoc.
  • ✓Pour vérifier si les logiciels de sécurité détectent les agents qui tentent de se dissimuler.

Lien du skill

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/operating-havoc-c2/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/operating-havoc-c2/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Configure un serveur C2 Havoc avec un profil utilisant l'obfuscation pendant la mise en veille (sleep obfuscation) et les appels système indirects (indirect syscalls) pour générer un agent Demon furtif.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

Vous rédigez un fichier de configuration (profil) qui définit le fonctionnement du serveur et des agents. Ensuite, vous démarrez le serveur et utilisez un programme graphique (client) pour créer des agents et leur envoyer des commandes.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

Operating Havoc C2

Legal Notice: This skill is for authorized security testing, sanctioned red-team engagements, and education only. Deploying a C2 framework or its agents against systems you do not own or lack explicit written authorization to test is illegal. Operate strictly within a signed rules-of-engagement document.

Overview

Havoc is an open-source, modern command-and-control framework created by @C5pider (https://github.com/HavocFramework/Havoc). Its primary implant, the Demon, is written in C and assembly and was designed from the ground up for evasion: it supports indirect syscalls (Hell's Gate / Halo's Gate), return-address and stack spoofing, and sleep obfuscation techniques (Ekko / FOLIAGE) that encrypt the agent in memory while it sleeps. The team server is the backend that starts listeners, queues tasks, manages agent check-ins, and brokers operator connections over an encrypted WebSocket. Operators connect with the Havoc client, a Qt GUI.

Havoc's behavior is driven by a Yaotl profile — a configuration language forked from HashiCorp's HCL — which defines the team server, operators, listeners, and Demon defaults. Because Havoc has been observed in real intrusions and is favored for its evasion features, exercising it during authorized engagements is valuable for emulating advanced adversary tradecraft and for testing whether EDR and network sensors detect its HTTP(S) C2 and in-memory techniques. This skill covers building Havoc, writing a profile, launching the team server, generating Demon agents, and running post-exploitation and lateral movement.

When to Use

  • When an authorized red-team engagement calls for an evasive, GUI-driven C2
  • When emulating an adversary that uses Havoc/Demon (per threat intelligence) in a purple-team exercise
  • When validating EDR detection of indirect syscalls, sleep obfuscation, and stack spoofing
  • When demonstrating post-exploitation impact and lateral movement for a report

Prerequisites

  • A dedicated Linux host (Debian/Ubuntu/Kali) for the team server
  • Go 1.18+ for the team server; Python 3.10 and Qt5 libraries for the client
  • mingw-w64 and nasm for cross-compiling the Demon for Windows targets
  • Signed authorization / rules of engagement

Install dependencies and build from source:

# Clone the framework
git clone https://github.com/HavocFramework/Havoc.git
cd Havoc

# Debian/Ubuntu/Kali build dependencies
sudo apt update && sudo apt install -y \
  git build-essential cmake libfontconfig1 libglu1-mesa-dev libgtest-dev \
  libspdlog-dev libboost-all-dev libncurses5-dev libgdbm-dev libssl-dev \
  libreadline-dev libffi-dev libsqlite3-dev libbz2-dev qtbase5-dev qtchooser \
  qt5-qmake qtbase5-dev-tools libqt5websockets5 libqt5websockets5-dev \
  qtdeclarative5-dev golang-go python3.10 python3.10-dev mingw-w64 nasm

# Build the team server
make ts-build

# Build the client
make client-build

Objectives

  • Author a Yaotl profile defining team server, operators, and a listener
  • Launch the Havoc team server and connect with the client
  • Create an HTTP(S) listener
  • Generate an evasive Demon agent (EXE / shellcode) with sleep obfuscation
  • Interact with the Demon and run post-exploitation commands
  • Execute .NET assemblies and BOFs in-memory
  • Pivot through the beachhead via SOCKS and port forwarding

MITRE ATT&CK Mapping

ID Technique Use in this skill
T1071.001 Application Layer Protocol: Web Protocols The Demon's HTTP(S) listener carries C2 over web protocols to blend with normal traffic

Related techniques exercised by the workflow:

ID Technique
T1027.007 Obfuscated Files or Information: Dynamic API Resolution (indirect syscalls)
T1620 Reflective Code Loading (in-memory .NET / BOF)
T1055 Process Injection
T1090.001 Internal Proxy (SOCKS pivot)

Workflow

Step 1: Write a Yaotl profile

Create profiles/engagement.yaotl defining the team server, an operator, and an HTTP listener. Yaotl is HCL-style:

Teamserver {
    Host = "0.0.0.0"
    Port = 40056

    Build {
        Compiler64 = "/usr/bin/x86_64-w64-mingw32-gcc"
        Nasm = "/usr/bin/nasm"
    }
}

Operators {
    user "operator1" {
        Password = "ChangeMe_Str0ng!"
    }
}

Listeners {
    Http {
        Name     = "https-listener"
        Hosts    = ["c2.example.com"]
        HostBind = "0.0.0.0"
        PortBind = 443

…
Questions fréquentes

Qu'est-ce qu'un serveur C2 ?

C'est un serveur que vous contrôlez pour envoyer des commandes à des agents (programmes) installés sur d'autres ordinateurs. Il fonctionne comme un centre de commandement.

Que signifie « agent furtif » ?

Cela signifie que l'agent a été conçu pour être difficile à détecter par les antivirus ou les logiciels de sécurité, grâce à des techniques qui le dissimulent.

Que sont les « appels système indirects » et l'« obfuscation pendant la mise en veille » ?

Ce sont des techniques avancées utilisées par les agents pour se cacher dans la mémoire de l'ordinateur et échapper à la détection. Les « appels système indirects » exécutent des appels système de façon déguisée, et l'« obfuscation pendant la mise en veille » brouille le code de l'agent lorsqu'il est en veille.

Détails

Description originale de l’auteur

Deploy a Havoc C2 team server with Yaotl malleable profiles, generate evasive Demon agents using indirect syscalls and sleep obfuscation, and run post-exploitation and pivoting operations. Use during authorized, rules-of-engagement-bound red-team engagements for adversary emulation requiring a full C2 lifecycle (server setup, evasive implant generation, tasking, and lateral pivoting).

repo: mukul975/Anthropic-Cybersecurity-Skills

Popularité

Étoiles GitHub
35k
Position au classement
#7674
Licence
Apache-2.0
Mis à jour
31/08/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires