This article teaches the architecture, frameworks, and operational mechanics of Command and Control (C2) infrastructure used in authorized red team engagements and penetration tests. It covers how C2 systems work (team server, listeners, beacons), major frameworks like Cobalt Strike and Sliver, traffic obfuscation techniques, and the defensive detection methods that catch poorly configured C2 deployments. Understanding C2 from both offensive and defensive perspectives is essential for professional red teamers and threat hunters.
- C2 callback loop architectureC2 operates on a dormant-to-active cycle: beacons sleep for configured intervals (e.g., 60 seconds), wake and make brief HTTPS callbacks to retrieve queued tasks, execute them, send results back, then sleep again. This design avoids persistent open sockets that network monitoring detects, making callbacks appear as ordinary web traffic. Jitter (random variance in sleep timing) prevents defenders from identifying beacons through statistical timing analysis.
- Three-component infrastructure modelProfessional C2 requires a team server (backend managing payloads and listeners), a listener (protocol-specific service that beacons call back to), and the beacon/implant (dormant payload in target process memory). The team server never directly touches target systems after initial deployment; all communication flows through at least one redirector VPS running nginx or Apache with rewrite rules that filter requests by URI pattern and User-Agent, disposing of the redirector if burned while keeping the team server intact.
- Malleable C2 profiles defeat signaturesProfiles transform beacon traffic to mimic legitimate applications like Windows Update by setting plausible URIs (/updates/v2/info), User-Agent strings, and response structures. The malicious payload is encoded in headers and body fields that appear legitimate at a glance. Default Cobalt Strike beacons have distinctive patterns (specific HTTP URIs, Sec-WebSocket headers, response structure) that are fingerprinted and blocklisted in mature SOCs; custom profiles with unique TLS handshake parameters generate different JA3 hashes that evade signature-based detection.
- Framework selection based on engagementCobalt Strike ($5,000+/year) offers mature features (Aggressor Script automation, extensive profile library, beacon sleep obfuscation) but suffers from default signature detection by CrowdStrike and other EDRs due to widespread cracked versions. Sliver (open-source, Go-based, by BishopFox) provides HTTP/S, DNS, mTLS, and WireGuard channels with less detection maturity, making it suitable for learning and budget-constrained engagements. Havoc (newer, C/Go hybrid, shellcode-focused) has lower detection rates because its signatures are less widely distributed in threat intelligence.
- JA3/JA3S TLS fingerprinting detectionDefenders use tools like Zeek and Suricata to hash TLS handshake parameters and match them against known C2 frameworks. Cobalt Strike's default JA3 hash (72a7c4bb61b9b0000c1a1cc0000...) is published in threat intelligence feeds and blocklisted by NGFWs and network detection platforms. Custom malleable profiles change TLS parameters, generating unique JA3 hashes that don't match known signatures, forcing defenders to rely on behavioral analysis (timing patterns, DNS queries, EDR telemetry) instead of signature matching.
- Behavioral detection methodsFour main detection approaches exist: JA3/JA3S TLS fingerprinting (framework-specific handshake signatures), beacon timing analysis (regular callback intervals even with jitter reveal a statistical pattern around the configured sleep value), DNS anomaly detection (high-entropy subdomains at regular intervals for DNS C2), and EDR behavioral detection (VirtualAlloc+WriteProcessMemory+CreateRemoteThread process injection sequences, LSASS access, memory-resident shellcode). Defenders analyzing longer observation windows can detect even jittered callback patterns through statistical baseline analys
- Channel selection for target environmentHTTPS works in almost every environment and blends with web traffic but is vulnerable to JA3 fingerprinting. DNS C2 works when HTTPS is restricted because DNS queries to the internet are rarely blocked, though it's slow and high query volume is suspicious. SMB C2 enables lateral movement through internet-isolated hosts by relaying through an internet-connected beacon. The channel hierarchy prioritizes HTTPS, then DNS for restricted environments, then SMB for internal segments lacking direct internet access.
- Stager vs full implant deploymentA full C2 implant can be several MB, too large for many initial delivery mechanisms. A stager is a tiny first-stage payload (less than 4KB) whose sole function is to download and execute the full implant in memory. This separation explains why AV evasion techniques differ between initial delivery and post-exploitation persistence stages—the stager requires small-file obfuscation while the full implant requires process injection and memory execution techniques.
Bottom line: Professional C2 operations require understanding three layers simultaneously: architectural knowledge (how team servers, listeners, and beacons communicate through callback loops and redirectors), framework-specific implementation (selecting Cobalt Strike, Sliver, or Havoc based on engagement constraints), and defensive detection methods (JA3 fingerprinting, timing analysis, EDR telemetry) that dictate how operators must configure profiles and infrastructure to survive detection. Red teams who s
Part of the Free Ethical Hacking Course — 100 Days
Here’s the dual value of this material: understanding C2 from the offensive side teaches you exactly what defenders need to detect. Malleable C2 profiles exist because network-based detection exists — you can’t understand one without the other. The red teams who get caught on engagements are the ones who skipped this content and ran default configurations. The threat hunters who find APT C2 infrastructure are the ones who know what beacon timing patterns look like.
Day 35 covers the architecture, the major frameworks, how traffic blending works, and — critically — how defenders detect and disrupt C2 channels. This is the material that separates operators who understand their tools from operators who just use them.
Which C2 framework are you most interested in learning?
🎯 What You’ll Master in Day 35
⏱️ Day 35 · 3 exercises · Red team architecture understanding
✅ Prerequisites
- Payload obfuscation fromDay 34
— C2 implants need obfuscation to survive initial delivery; these skills combine
- AV evasion fromDay 33
— C2 beacons must bypass endpoint detection to maintain persistence
- Windows Active Directory basics fromDay 23
— C2 post-exploitation targets AD environments in most enterprise engagements
📋 C2 Frameworks Day 35 Contents
- C2 Architecture — Team Server, Listener, Beacon
- C2 Channel Types — HTTP/S, DNS, SMB
- Major C2 Frameworks — Cobalt Strike, Sliver, Havoc
- Malleable C2 — Traffic Blending and Profile Design
- Red Team Infrastructure — Redirectors and Operational Security
- Defender Detection Methods — What Actually Gets C2 Caught
C2 Architecture — Team Server, Listener, Beacon
The fundamental model is a callback loop. You deploy an implant on a compromised host. That implant wakes up on a configured interval, connects to your listener on the team server, retrieves any queued tasks, executes them, and sends results back. Then it sleeps until the next interval. No persistent connection that network monitoring can track as an open socket — just brief, infrequent callbacks that look like any other HTTPS request.
The three components you need to understand before touching any specific framework:
Team server — your backend. Operators connect to it via a client. It stores the payload configuration, manages listeners, receives callbacks, and queues tasks. It never directly connects to target systems after the initial deployment.
Listener — a service on the team server that a specific implant variant knows to call back to. Different listeners use different protocols (HTTP, HTTPS, DNS, SMB). You deploy different implant variants against different targets depending on what communication channels are available through the target’s network controls.
Beacon/Implant — the payload running on the compromised host. It’s dormant between callbacks, has minimal on-disk footprint (often runs entirely in process memory), and only activates during brief callback windows.
If defenders identify and block the redirector IP, team server is unaffected. Spin up a new redirector in minutes.
C2 Channel Types — HTTP/S, DNS, SMB
Different network environments allow different egress channels. Before choosing a C2 channel for a target environment, you need to know what’s allowed out. Most corporate environments permit HTTPS to any destination — but not DNS to arbitrary resolvers, and not SMB outside the local network.
The channel hierarchy for restricted environments: HTTPS works almost everywhere. DNS C2 works when HTTPS is restricted because DNS queries to the internet are almost never blocked (breaking DNS breaks everything). SMB C2 works inside network segments where you need to move laterally through hosts that don’t have internet access — the SMB beacon communicates through an internet-connected beacon acting as a relay.
⏱️ 20 minutes · Pure analysis — no tools required
C2 decisions are architecture decisions. Before choosing a framework or channel, you analyse the target environment’s egress controls. Work through three scenarios and choose the right C2 approach for each.
Network profile: Outbound HTTPS allowed to known domains only (allowlist).
Outbound DNS filtered to internal resolver.
No direct internet access from workstations — all traffic via proxy.
EDR: CrowdStrike Falcon deployed on all endpoints.
Questions:
1. Which C2 channel would you try first? Why?
2. What does “allowlist HTTPS only” mean for your listener domain?
3. How does the proxy requirement change your beacon configuration?
4. What CrowdStrike detection capabilities most threaten your C2 persistence?
SCENARIO B — Healthcare Provider
Network profile: Direct internet access from clinical workstations.
DNS to any resolver permitted.
Outbound ports: 80, 443, 53 open. All others blocked.
AV: Windows Defender only. No dedicated EDR.
Questions:
1. Which C2 channel gives you the most operational flexibility here?
2. Why might DNS C2 be worth considering for a secondary channel?
3. What detection capabilities does this organisation lack that most enterprises have?
4. How does “Windows Defender only” change your payload requirements vs CrowdStrike?
SCENARIO C — Post-Compromise Lateral Movement
You have an initial HTTPS beacon on a DMZ web server.
Target: internal HR workstations with no direct internet access.
The HR segment allows SMB from the DMZ server.
Questions:
1. Which C2 channel type reaches the internet-isolated HR hosts?
2. Describe the relay chain: how do HR host tasks get back to your team server?
3. What network monitoring would detect this communication pattern?
4. What’s the detection signature of SMB C2 in a Sysmon log?
📸 Write your Scenario A answers and share in #ethical-hacking-course
Major C2 Frameworks — Cobalt Strike, Sliver, Havoc
Three frameworks dominate professional red team operations in 2026. Know the tradeoffs before you touch any of them.
Cobalt Strike — industry standard, $5,000+/year. I’ve run it on client engagements and the feature maturity shows: Aggressor Script for automation, a deep malleable C2 profile library, beacon sleep obfuscation, built-in lateral movement. The problem you run into immediately on mature environments: its default signatures are in every major EDR’s detection database because threat actors use cracked versions constantly. You need real profile customisation time before running it against a CrowdStrike-protected fleet, or it’s over in minutes.
Sliver — my recommendation for most learning environments and budget-conscious engagements. Free, open-source, maintained by BishopFox, written in Go. You get HTTP/S, DNS, mTLS, and WireGuard channels — more protocol flexibility than most operators need. The tradeoff: EDRs increasingly recognise the Go binary signature. Use it to learn C2 operations properly; for production engagements against hardened targets, profile it against your target’s specific EDR first.
Havoc — newer, written in C and Go, with a modern UI and shellcode-focused implant design. Lower detection rate than Cobalt Strike defaults in some EDR environments because its signatures are newer and less widely distributed in threat intelligence. Active development, growing community.
Malleable C2 — Traffic Blending and Profile Design
Default Cobalt Strike beacon traffic has distinctive patterns that every mature SOC knows. The HTTP request URI, the Sec-WebSocket headers, the response structure — all fingerprinted and in detection databases. Running default Cobalt Strike against a SOC with CrowdStrike is not an engagement, it’s a test of your incident response partner’s alerting speed.
Malleable C2 profiles transform that traffic. A profile that mimics Microsoft update traffic sets the URI to /updates/, uses Microsoft-looking User-Agent strings, structures the POST body to look like Windows telemetry, and returns responses structured like Microsoft CDN responses. Network analysis sees familiar traffic patterns. The malicious content is encoded in headers and body fields that look legitimate at a glance but carry C2 data.
Red Team Infrastructure — Redirectors and OpSec
Operational security for C2 infrastructure starts with one rule: the team server never directly touches target systems. Every callback goes through at least one redirector. The redirector is a cheap cloud VPS running Nginx or Apache with forwarding rules. When incident response burns the redirector IP, your team server is intact and a new redirector is operational in fifteen minutes.
The redirector configuration is where most red teams get the detail wrong. A basic port-forward redirector passes all traffic including traffic from defender scanners — which will probe your redirector and find Cobalt Strike listening. Proper redirectors use mod_rewrite or Nginx rules that only forward requests matching specific URI patterns and specific User-Agent strings. Everything else gets a 404 or a redirect to a legitimate website.
Defender Detection Methods — What Actually Gets C2 Caught
Every red team operator needs to understand the defensive detection stack — not just to avoid it, but because understanding it is the actual value you deliver to clients. The question isn’t “did I maintain access?” It’s “did the SOC detect my C2 infrastructure, and if not, what does that tell us about their detection coverage?”
I walk through this section with clients at every debrief. Here are the four main detection methods and what each tells you about the client’s defensive maturity:
⏱️ 25 minutes · tryhackme.com — free account
TryHackMe has dedicated C2 framework rooms that let you interact with real C2 infrastructure in a controlled environment. Work through the concepts in a guided environment before building your own lab.
Go to: tryhackme.com/room/introtoc2
Read: Introduction to Command & Control room
Complete: the first 3 tasks covering architecture concepts
Step 2: If you have a THM subscription, try
tryhackme.com/room/redteamc2
Or search: “red team C2” in THM room search
Step 3: Answer these architecture questions while working through it
What is the difference between a listener and a handler?
What is a stager vs a full implant (stage-0 vs stage-1)?
Why do some operators use a stage-0 stager before deploying full C2?
What is the purpose of a sleep mask in modern beacons?
Step 4: Read the Sliver documentation
Go to: github.com/BishopFox/sliver/wiki
Read: Getting started, Multiplayer, C2 configuration
How many C2 channel types does Sliver support?
Which channel type is best for high-security environments?
Step 5: Research one public red team report that documents C2 usage
Search: “red team report C2 infrastructure site:github.com OR site:specterops.io”
What C2 framework did they use?
What detection method caught them (if they were detected)?
📸 Screenshot your TryHackMe task completions. Share in #ethical-hacking-course
——– —————- ——— —————– ——— ——-
1a2b3c PATIENT_HAMSTER https 10.10.14.5:52341 CORP\jsmith windows/amd64
4d5e6f ANGRY_WOLF https 10.10.14.8:48921 CORPdmin windows/amd64
⏱️ 20 minutes · Kali Linux · isolated lab environment only
Sliver is the open-source C2 framework you can run in your own lab environment right now. This exercise gets you through installation and the core interface — understanding the workflow before using it in a full lab scenario.
Step 1: Install Sliver on Kali
curl https://sliver.sh/install | sudo bash
# Or: download from github.com/BishopFox/sliver/releases
sudo sliver-server
Step 2: Connect to the server
# In a second terminal:
sliver
# You’re now in the Sliver client
Step 3: Explore the interface
help # view all commands
jobs # show active listeners
sessions # show active sessions (none yet)
implants # show generated implants (none yet)
Step 4: Create an HTTPS listener
https -L 0.0.0.0 -l 8443
jobs # confirm listener is running
Step 5: Generate a test implant (do NOT deploy outside lab)
generate -h 127.0.0.1 -l 8443 -o windows -f exe -s /tmp/test.exe
# This generates an EXE configured to beacon to 127.0.0.1:8443
Step 6: Explore implant configuration options
generate –help
# Note: -j (jitter), -t (timeout), –skip-symbols options
Step 7: Review the multiplayer setup documentation
players # would show connected operators
# Read: what makes Sliver useful for team operations?
📸 Screenshot your Sliver ‘jobs’ output showing the active HTTPS listener. Share in #ethical-hacking-course
📋 C2 Frameworks Reference — Day 35
✅ Day 35 Complete — C2 Architecture Understood
Team server, listener, beacon, callback loop, malleable profiles, redirectors, detection methods — the complete C2 architecture picture. Day 36 covers pivoting and tunneling: extending your access through network segments that don’t have direct internet access, and routing C2 traffic through compromised hosts acting as proxies.
🧠 Day 35 Check
❓ C2 Frameworks FAQ
What is a C2 framework in ethical hacking?
What is the difference between Cobalt Strike and Sliver?
What is malleable C2?
Is studying C2 frameworks legal?
How do defenders detect C2 traffic?
What certifications cover C2 frameworks?
Day 34 — Payload Obfuscation
Day 36 — Pivoting & Tunneling
📚 Further Reading
- Day 34 — Payload Obfuscation — The techniques that get C2 beacons past EDR at delivery time — the prerequisite skill for C2 operations in mature environments.
- Day 33 — AV Evasion Basics — C2 implants require AV evasion to survive on disk and in memory. The techniques from Day 33 combine directly with beacon configuration on Day 35.
- AI-Powered Cyberattacks 2026 — How threat actors are using AI to generate polymorphic C2 payloads and automate lateral movement decisions — the evolution of C2 operations beyond manual red team tooling.
- Sliver C2 Framework — GitHub — The official Sliver repository with full documentation, release notes, and the wiki covering every C2 channel configuration and implant generation option.
- Cobalt Strike — Malleable C2 Documentation — The official malleable C2 profile reference covering every directive, the full profile syntax, and example profiles — the authoritative source for understanding traffic blending.

