Skip to content
Skillpedia
Security6.5k Β· #14130

c2

What it does

This knowledge base covers the general design of command-and-control infrastructure for authorized red-team work. It is for red teams and defenders who need to understand how these systems are arranged.

When to use it

  • βœ“When an authorized exercise needs a command-and-control design that separates servers from the attack machine.
  • βœ“When a defending team wants to understand how redirectors and listeners sit in front of a control server.
  • βœ“When a team needs a checklist of which framework containers are running in the test environment.

Skill link

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

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/post-exploit/c2/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œFor our authorized exercise, can you explain how the command server, redirectors and listeners should be arranged?”

5 new skills a week. 1 minute to read.

How it works

The agent describes the layout, such as separating the control server from the operator machine, and checks which framework components are running in the test environment.

Technical content (original SKILL.md)

Original text by the author, straight from 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 
FAQ

Why are servers kept apart from the attack machine?

The guide says control servers run in separate containers, so the operator machine has only the client.

What is a redirector?

It is a relay that sits in front of the control server to protect it.

Which frameworks are mentioned?

Sliver and Havoc, with the default setting using Sliver.

Details

Original description by the author

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

repo: BitterSecurity/Decepticon

Popularity

GitHub stars
6.5k
Ranking position
#14130
License
Apache-2.0
Updated
11/1/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills