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

c2

它能做什么

本知识库介绍用于经授权红队工作的指令与控制基础设施的通用设计。适用于需要了解这些系统如何布置的红队和防御者。

适用场景

  • ✓当经授权的演练需要将控制服务器与攻击机分开的指令与控制设计时。
  • ✓当防守团队想了解中继和监听器如何位于控制服务器前方时。
  • ✓当团队需要一份清单,核对测试环境中正在运行哪些框架组件时。

技能链接

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

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“在我们经授权的演练中,能否解释指令服务器、中继和监听器应当如何布置?”

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

工作原理

智能体会说明布局方式,例如将控制服务器与操作人员机器分开,并检查测试环境中正在运行哪些框架组件。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Command & Control (C2) Knowledge Base

C2 infrastructure enables persistent, covert communication between the operator and implants deployed on target systems. Proper C2 setup minimizes detection, ensures operational resilience through redirectors, and provides the foundation for all post-exploitation activity.

Decepticon C2 Architecture

C2 servers run as separate containers on sandbox-net, selectable via docker compose profiles. The Kali sandbox has C2 clients only — servers are never co-located with the attack box.

Framework Container Profile Client in Sandbox
Sliver c2-sliver c2-sliver (default in .env) sliver-client
Havoc c2-havoc c2-havoc (future) havoc-client (future)

Default: COMPOSE_PROFILES=c2-sliver in .env → docker compose up -d starts Sliver. Swap: change COMPOSE_PROFILES value to use a different C2 framework. For framework-specific setup, consult the dedicated skill: c2-sliver, c2-havoc, etc.

MITRE ATT&CK Mapping

Technique ID Name C2 Relevance
T1071.001 Application Layer Protocol: Web Protocols HTTPS-based C2 channels
T1071.004 Application Layer Protocol: DNS DNS-based C2 channels
T1573.002 Encrypted Channel: Asymmetric Cryptography mTLS, AES-encrypted payloads
T1090.002 Proxy: External Proxy Redirectors, CDN fronting
T1105 Ingress Tool Transfer Upload/download via implant
T1572 Protocol Tunneling DNS tunneling, port forwarding

1. C2 Channel Types

Channel Port Stealth Speed Use Case
HTTPS 443 High (blends with web) Fast Primary channel
DNS 53 Very High (rarely blocked) Slow Fallback / restricted networks
mTLS Custom High (mutual auth) Fast High-security sessions
WireGuard 51820 Medium Fast Tunneled access, pivoting

Multi-Channel Strategy

Primary:   HTTPS (443)  — fast, reliable, blends with web traffic
Fallback:  DNS (53)     — survives proxy/firewall restrictions
Pivot:     mTLS (8888)  — internal movement after initial foothold
Tunnel:    WireGuard    — full network tunnel through implant

2. Implant Modes

Mode Use Case OPSEC Responsiveness
Beacon Long-term persistence, low-and-slow High (periodic check-ins) Low (sleep + jitter delay)
Session Active exploitation, interactive ops Low (persistent connection) Immediate
Stager Initial delivery, size-constrained Medium (small footprint) Delayed (downloads full implant)

Jitter Recommendations

Environment Sleep Interval Jitter % Rationale
Initial access 60-120s 50-70% Avoid pattern detection
Established foothold 30-60s 30-50% Balance speed and stealth
Active operation window 5-15s 20-30% Responsiveness needed
Long-term persistence 300-900s 60-80% Blend with noise floor

Output Formats

Format Use Case Delivery Method
EXE Direct execution Phishing, file share, web exploit
Shared Library (DLL/SO) DLL sideloading, hijacking Planted in app directory
Shellcode Custom loaders, injection Process injection, custom dropper
Service Windows service persistence sc.exe, registry modification

3. Redirector Architecture

Target Network          Internet              Operator
┌──────────┐     ┌────────────────┐     ┌──────────────┐
│  Implant │────→│  Redirector    │────→│  Teamserver  │
│          │←────│  (NGINX/CDN)   │←────│  (C2 Server) │
│          │     │                │     │              │
└──────────┘     │  - URI filter  │     └──────────────┘
                 │  - UA filter   │
                 │  - GeoIP block │
                 │  - Decoy page  │
                 └────────────────┘

NGINX Reverse Proxy Redirector

# /etc/nginx/sites-available/c2-redirector
server {
    listen 443 ssl;
    server_name legitimate-looking-domain.com;

    ssl_certificate     /etc/letsencrypt/live/legitimate-looking-domain.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/legitimate-looking-domain.com/privkey.pem;

    # Allow only expected C2 URIs
    location /api/v2/status {
        proxy_pass 
常见问题

为什么服务器要与攻击机分开?

指南指出,控制服务器运行在独立的容器中,因此操作人员机器只保留客户端。

什么是中继?

它是位于控制服务器前方的转发器,用于保护控制服务器。

文中提到了哪些框架?

Sliver 和 Havoc,默认设置使用 Sliver。

详情

作者的原始描述

Framework-agnostic C2 orchestration — listener types, implant modes, redirector architecture, malleable profiles, jitter strategy, OPSEC guidance.

repo: BitterSecurity/Decepticon

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能