building-red-team-c2-infrastructure-with-havoc

building-red-team-c2-infrastructure-with-havoc is a skill for Claude Code, Codex from Youngmaidainon/Agent-Level-Up. It costs 85 tokens per session (2,612 once invoked), scanned A, a copy of building-red-team-c2-infrastructure-with-havoc, MIT.

A guide to deploying Havoc, a command-and-control framework used by authorized red teams to simulate an attacker’s infrastructure and post-exploitation activity. It covers team servers, network listeners, redirectors, and Demon agents.

In plain words
What is it for?
It is for setting up and hardening Havoc infrastructure, configuring HTTP, HTTPS, and SMB listeners, and preparing authorized adversary simulations.
Why use it?
It helps a red team build a controlled testing environment for emulating adversary communication while documenting authorization and operational safeguards.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./havoc server --profile ./profiles/havoc.yaotl -v.

Good fit It is for setting up and hardening Havoc infrastructure, configuring HTTP, HTTPS, and SMB listeners, and preparing authorized adversary simulations.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Youngmaidainon/Agent-Level-Up
agentmods
npx agentmods add skills/youngmaidainon/agent-level-up/building-red-team-c2-infrastructure-with-havoc

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for building-red-team-c2-infrastructure-with-havoc

README.md
[![agentmods](https://agentmods.dev/badge/skills/youngmaidainon/agent-level-up/building-red-team-c2-infrastructure-with-havoc/github.svg)](https://agentmods.dev/skills/youngmaidainon/agent-level-up/building-red-team-c2-infrastructure-with-havoc)
Your own site
<a href="https://agentmods.dev/skills/youngmaidainon/agent-level-up/building-red-team-c2-infrastructure-with-havoc"><img src="https://agentmods.dev/badge/skills/youngmaidainon/agent-level-up/building-red-team-c2-infrastructure-with-havoc/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for building-red-team-c2-infrastructure-with-havoc

Your own site · 80×15
<a href="https://agentmods.dev/skills/youngmaidainon/agent-level-up/building-red-team-c2-infrastructure-with-havoc"><img src="https://agentmods.dev/badge/skills/youngmaidainon/agent-level-up/building-red-team-c2-infrastructure-with-havoc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,612 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 98% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00085 $0.02612
Opus 5 $0.00043 $0.01306
Sonnet 5 $0.00017 $0.00522
Haiku 4.5 $0.00009 $0.00261

Measured 8d ago against content hash 1e8a02749b50, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

building-red-team-c2-infrastructure-with-havoc scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/agent.py, scripts/process.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootlowPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo apt update

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Origin

This is a copy

98% identical to building-red-team-c2-infrastructure-with-havoc — 7 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

cyber-security/ctf/building-red-team-c2-infrastructure-with-havoc/SKILL.md · 324 lines

How it starts

The opening of the file, as written. The whole thing — 324 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Building Red Team C2 Infrastructure with Havoc

Overview

Havoc is a modern, open-source post-exploitation command and control (C2) framework created by C5pider. It provides a collaborative multi-operator interface similar to Cobalt Strike, featuring the Demon agent for Windows post-exploitation, customizable profiles for traffic malleable configurations, and support for HTTP/HTTPS/SMB listeners. This skill covers deploying production-grade Havoc C2 infrastructure with proper OPSEC considerations for authorized red team engagements.

When to Use

  • When deploying or configuring building red team c2 infrastructure with havoc capabilities in your environment
  • When establishing security controls aligned to compliance requirements
  • When building or improving security architecture for this domain
  • When conducting security assessments that require this implementation

Prerequisites

  • Ubuntu 22.04 LTS or Debian 11+ (for Teamserver)
  • Kali Linux 2023+ (for Client)
  • VPS providers: DigitalOcean, Linode, or AWS EC2 (minimum 2GB RAM, 2 vCPU)
  • Domain name aged 30+ days with valid SSL certificate
  • Written authorization for red team engagement

Architecture

┌──────────────────────────────────────────────────────────────┐
│                    HAVOC C2 ARCHITECTURE                      │
├──────────────────────────────────────────────────────────────┤
│                                                               │
│  ┌──────────┐     ┌──────────────┐     ┌──────────────────┐ │
│  │  Havoc    │────▶│  HTTPS       │────▶│  Target Network  │ │
│  │  Client   │     │  Redirector  │     │  (Demon Agent)   │ │
│  │  (Kali)   │     │  (Nginx/CDN) │     │                  │ │
│  └──────────┘     └──────────────┘     └──────────────────┘ │
│       │                   │                                   │
│       │           ┌──────────────┐                            │
│       └──────────▶│  Havoc       │                            │
│                   │  Teamserver  │                            │
│                   │  (Ubuntu VPS)│                            │
│                   │  Port 40056  │                            │
│                   └──────────────┘                            │
│                                                               │
└──────────────────────────────────────────────────────────────┘

Read the full file on GitHub · 324 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 324 lines · 85 tokens per session scan A 1e8a02749b50

Subscribe to this mod's changes

building-red-team-c2-infrastructure-with-havoc is a skill published in the GitHub repository Youngmaidainon/Agent-Level-Up (3 stars, last pushed 18d ago), licensed MIT. It adds 85 tokens to every session and 2,612 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (asks for root). It is 98% identical to building-red-team-c2-infrastructure-with-havoc, differing in 7 lines, and is treated as a copy.