C2 Framework Reference
Cobalt Strike, Sliver, Havoc, Metasploit, Brute Ratel — capabilities, detection signatures, OPSEC notes, and SOC detection queries for each.
Command & Control Framework Reference
The most widely used commercial red team platform. Beacon is the primary implant — staged or stageless, HTTP/HTTPS/DNS/SMB communication. Malleable C2 profiles allow arbitrary protocol impersonation.
Open-source C2 by BishopFox. Go-based implants (slivers). Supports HTTP/HTTPS/DNS/WireGuard/mTLS. Binary implants can be generated for Windows/Linux/macOS. Widely adopted as free Cobalt Strike alternative.
Modern open-source C2 framework. Demon agent written in C. Supports HTTP/HTTPS/SMB. Gained popularity due to advanced evasion: sleep obfuscation (Foliage/Ekko), stack spoofing, indirect syscalls, AMSI/ETW patching.
The most widely known exploitation and post-exploitation framework. Meterpreter is the primary implant. Best suited for initial access testing and automated exploitation — less suited for long-term C2 due to well-known signatures.
Commercial adversary simulation framework. Badger is the implant. Known for advanced EDR evasion — bypasses many EDR products at launch. Used by Scattered Spider, ALPHV/BlackCat, and other threat actors. Leaked version widely used by criminals.
C2 Framework Comparison
| Feature | Cobalt Strike | Sliver | Havoc | Metasploit | Brute Ratel |
|---|---|---|---|---|---|
| Language | Java (server) / C (beacon) | Go (server+implant) | C++ (server) / C (demon) | Ruby (server) / C (implant) | Rust (server) / C (badger) |
| Cost | $2,500–10K/seat | Free | Free | Free (Pro: paid) | $2,500/year |
| EDR Evasion | High (with profiles) | Medium | Very High | Low (default) | Very High |
| Sleep Masking | Yes (with BOFs) | Partial | Yes (Foliage/Ekko) | No | Yes |
| Indirect Syscalls | Via BOFs | Partial | Yes (built-in) | No | Yes |
| BOF Support | Yes (native) | Yes (Armory) | Yes | No | Yes |
| SMB C2 | Yes | Yes | Yes | Yes | Yes |
| DNS C2 | Yes | Yes | No | Yes | No |
| WireGuard/mTLS | No | Yes | No | No | No |
| Multiplayer Team | Yes | Yes | Limited | No (Pro: yes) | Yes |
| Community/Support | Commercial + community | Active OSS | Active OSS | Very large community | Commercial |
| Used by APTs | Yes — widely | Growing | Growing | Yes — widely | Yes (leaked version) |
| Detection Rate (default) | Medium | Low-Medium | Low | Very High | Low (commercial) |
SOC Detection Queries
Cobalt Strike Beacon — KQL (Microsoft Sentinel)
Malleable C2 — Suspicious SSL cert patterns (KQL)
Generic C2 Beacon — Periodic outbound connections (SPL)
Sliver implant — Go binary network artifacts
C2 Protocol Reference
| Protocol | Stealth | Speed | Detection Method | Best Used When |
|---|---|---|---|---|
| HTTP/HTTPS | Medium | High | SSL inspection, beacon timing, JA3 fingerprint | Most engagements — blends with web traffic |
| DNS C2 | High | Low | Unusually high DNS query volume, long TXT records, NXDomain responses | Air-gapped-adjacent environments; low-bandwidth exfil |
| SMB (named pipe) | High (internal) | High | Pipe creation events (Sysmon EID 17/18), lateral movement patterns | Post-exploitation internal pivoting between hosts |
| ICMP | Medium | Very Low | Deep packet inspection; payload size anomalies | Legacy environments without DNS filtering |
| WireGuard (Sliver) | High | High | Port 51820/UDP; unusual UDP tunnel | Environments where custom ports are less scrutinised |
| mTLS | High | High | Mutual certificate auth traffic; unusual cert patterns | High-security target environments |
| Domain Fronting (CDN) | Very High | High | CDN provider policies; HOST header analysis | Heavily monitored environments (most CDNs now block) |
| QUIC/HTTP3 | Medium-High | Very High | DPI on UDP 443; QUIC fingerprinting | Modern network environments with QUIC allowed |
C2 Redirector Architecture
Never expose your C2 server directly. Use redirectors — intermediate servers that forward traffic to the real C2 only when the right beacon is received, otherwise serve legitimate content.