跳到正文
Skillpedia
安全6.5k · #14129

c2-sliver

它能做什么

本指南介绍如何在经授权的任务中使用一个开源对抗模拟框架。适用于需要在任务规则内运行和跟踪该框架的红队。

适用场景

  • ✓当经授权的任务需要一个命令框架来测试检测能力时。
  • ✓当团队必须跟踪测试中哪些监听器、植入程序和会话处于活动状态时。
  • ✓当操作人员需要确认某个植入程序已经回连时。

技能链接

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/post-exploit/c2-sliver/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/post-exploit/c2-sliver/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“在我们经授权的任务中,能否设置 Sliver 监听器,并报告测试植入程序是否已经回连?”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会使用托管的框架工具启动监听器,为授权目标生成植入程序,并在汇报前检查其回连状态。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Sliver C2 Framework

Sliver is an open-source, cross-platform adversary emulation framework by BishopFox. It supports beacon (async) and session (interactive) implants over mTLS, HTTPS, DNS, and WireGuard channels with multi-operator support.

Hosted engagement path

The hosted Run uses an engagement-isolated E2B Sliver companion. Provision it only when an authorized objective requires C2 by calling c2_ensure; c2_status merely observes an existing companion. Use the registered sliver_ MCP tools for listener jobs, implants, sessions, beacons, and commands. The initial tool set includes sliver_start_http_listener, sliver_generate_implant, sliver_list_sessions, and sliver_list_beacons. Call c2_find_tools for an uncommon operation and inspect its native argument schema before invocation. The C2 tab mirrors RPC activity; it is not an interactive control channel.

Use the public HTTPS listenerUrl returned by c2_ensure for an implant unless another reachable listener was explicitly configured. sliver_generate_implant returns an artifact ID; c2_stage_artifact copies that artifact into the engagement terminal sandbox for authorized delivery. To send a terminal file to a Sliver target, call c2_import_artifact with its /workspace path, then use the returned artifact ID with the relevant sliver_ MCP operation. Do not invent a local Docker host, operator config, or CLI session for a hosted run.

Standalone OSS console reference

The following CLI examples apply only when a standalone runtime actually exposes a local Sliver server, a client config, and an interactive terminal. They are not the hosted production path.

Decepticon Setup

Server: c2-sliver container on sandbox-net (daemon mode, gRPC on port 31337) Client: sliver-client pre-installed in sandbox Config: Auto-generated operator config at /workspace/.sliver-configs/decepticon.cfg

Connection Procedure (via bash tool)

# 1. Verify C2 reachable
bash(command="nc -z c2-sliver 31337 && echo 'C2_OK' || echo 'C2_DOWN'", description="Check the Sliver C2 server is reachable")

# 2. Import operator config (once — skip if already imported)
bash(command="ls ~/.sliver-client/configs/ 2>/dev/null | grep -q . || sliver-client import /workspace/.sliver-configs/decepticon.cfg", description="Import the Sliver operator config if not already present")

# 3. Start interactive console in dedicated tmux session
bash(command="sliver-client console", session="c2", description="Open the Sliver client console")

# 4. Run Sliver commands interactively
bash(command="https --lhost 0.0.0.0 --lport 443 --domain c2-sliver", is_input=True, session="c2", description="Start an HTTPS listener on port 443")
bash(command="sessions", is_input=True, session="c2", description="List active Sliver sessions")

IMPORTANT:

  • Do NOT generate operator configs manually — use the pre-generated one at /workspace/.sliver-configs/decepticon.cfg
  • Do NOT start sliver-server in sandbox — the server runs in its own container
  • sliver-client console is interactive — MUST use a dedicated session (e.g. session="c2") and send subsequent commands with is_input=True
  • If "multiple configs found": bash(command="sliver-client console --config ~/.sliver-client/configs/decepticon_c2-sliver.cfg", session="c2", description="Open the Sliver console with the explicit config")

1. Listener Configuration

All commands below run inside the Sliver console (session="c2", is_input=True).

HTTPS Listener

# Basic HTTPS listener on 443
https --lhost 0.0.0.0 --lport 443 --domain c2-sliver

# HTTPS with custom certificate (better OPSEC)
https --lhost 0.0.0.0 --lport 443 --domain c2-sliver \
    --cert /workspace/certs/cert.pem \
    --key /workspace/certs/key.pem

# HTTPS with Let's Encrypt (requires DNS control)
https --lhost 0.0.0.0 --lport 443 --domain c2-sliver --lets-encrypt

DNS Listener

# DNS listener — requires NS record pointing to C2 server
dns --domains c2.<TARGET> --lport 53

# Verify DNS resolution
dig @c2-sliver test.c2.<TARGET> TXT +short

mTLS Listener

# mTLS — encrypted, mutual authentication (recommended for internal pivoting)
mtls --lhost 0.0.0.0 --lport 8888

# mTLS on non-standard port
mtls --lhost 0.0.0.0 --lport 8443

WireGuard Listener

# WireGuard tunnel — full network access through implant
wg --lhost 0.0.0.0 --lport 51820
常见问题

Sliver 支持什么?

指南说明它支持多种通道类型,包括 HTTPS 和 DNS。

生成了植入程序就代表它运行了吗?

不代表。指南指出,生成植入程序并不能证明已发生回连。

有哪些限制?

操作仅限于授权目标和任务的托管环境。

详情

作者的原始描述

Sliver C2 operations through hosted E2B MCP tools or an explicitly available standalone console.

repo: BitterSecurity/Decepticon

热度

GitHub 星标
6.5k
排名
#14129
许可证
Apache-2.0
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能