c2
できること
このナレッジベースは、許可されたレッドチーム作業のためのコマンド&コントロール基盤の一般的な設計を扱います。これらのシステムがどう配置されるかを理解する必要があるレッドチームと防御側向けです。
使う場面
- ✓許可された演習で、サーバーを攻撃用のマシンから分けるコマンド&コントロールの設計が必要なとき。
- ✓防御チームが、リダイレクターやリスナーが制御サーバーの前にどう配置されるかを理解したいとき。
- ✓テスト環境でどのフレームワークのコンテナが動いているかのチェックリストが必要なとき。
スキルのリンク
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/post-exploit/c2/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私たちの許可された演習のために、コマンドサーバー、リダイレクター、リスナーをどう配置すべきかを説明してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、制御サーバーをオペレーターのマシンから分けるなど、配置の構成を説明します。そして、テスト環境でどのフレームワークのコンポーネントが動いているかを確認します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Command & Control (C2) Knowledge Base
C2 infrastructure enables persistent, covert communication between the operator and implants deployed on target systems. Proper C2 setup minimizes detection, ensures operational resilience through redirectors, and provides the foundation for all post-exploitation activity.
Decepticon C2 Architecture
C2 servers run as separate containers on
sandbox-net, selectable via docker compose profiles. The Kali sandbox has C2 clients only — servers are never co-located with the attack box.
Framework Container Profile Client in Sandbox Sliver c2-sliverc2-sliver(default in.env)sliver-clientHavoc c2-havocc2-havoc(future)havoc-client(future)Default:
COMPOSE_PROFILES=c2-sliverin.env→docker compose up -dstarts Sliver. Swap: changeCOMPOSE_PROFILESvalue to use a different C2 framework. For framework-specific setup, consult the dedicated skill:c2-sliver,c2-havoc, etc.
MITRE ATT&CK Mapping
| Technique ID | Name | C2 Relevance |
|---|---|---|
| T1071.001 | Application Layer Protocol: Web Protocols | HTTPS-based C2 channels |
| T1071.004 | Application Layer Protocol: DNS | DNS-based C2 channels |
| T1573.002 | Encrypted Channel: Asymmetric Cryptography | mTLS, AES-encrypted payloads |
| T1090.002 | Proxy: External Proxy | Redirectors, CDN fronting |
| T1105 | Ingress Tool Transfer | Upload/download via implant |
| T1572 | Protocol Tunneling | DNS tunneling, port forwarding |
1. C2 Channel Types
| Channel | Port | Stealth | Speed | Use Case |
|---|---|---|---|---|
| HTTPS | 443 | High (blends with web) | Fast | Primary channel |
| DNS | 53 | Very High (rarely blocked) | Slow | Fallback / restricted networks |
| mTLS | Custom | High (mutual auth) | Fast | High-security sessions |
| WireGuard | 51820 | Medium | Fast | Tunneled access, pivoting |
Multi-Channel Strategy
Primary: HTTPS (443) — fast, reliable, blends with web traffic
Fallback: DNS (53) — survives proxy/firewall restrictions
Pivot: mTLS (8888) — internal movement after initial foothold
Tunnel: WireGuard — full network tunnel through implant
2. Implant Modes
| Mode | Use Case | OPSEC | Responsiveness |
|---|---|---|---|
| Beacon | Long-term persistence, low-and-slow | High (periodic check-ins) | Low (sleep + jitter delay) |
| Session | Active exploitation, interactive ops | Low (persistent connection) | Immediate |
| Stager | Initial delivery, size-constrained | Medium (small footprint) | Delayed (downloads full implant) |
Jitter Recommendations
| Environment | Sleep Interval | Jitter % | Rationale |
|---|---|---|---|
| Initial access | 60-120s | 50-70% | Avoid pattern detection |
| Established foothold | 30-60s | 30-50% | Balance speed and stealth |
| Active operation window | 5-15s | 20-30% | Responsiveness needed |
| Long-term persistence | 300-900s | 60-80% | Blend with noise floor |
Output Formats
| Format | Use Case | Delivery Method |
|---|---|---|
| EXE | Direct execution | Phishing, file share, web exploit |
| Shared Library (DLL/SO) | DLL sideloading, hijacking | Planted in app directory |
| Shellcode | Custom loaders, injection | Process injection, custom dropper |
| Service | Windows service persistence | sc.exe, registry modification |
3. Redirector Architecture
Target Network Internet Operator
┌──────────┐ ┌────────────────┐ ┌──────────────┐
│ Implant │────→│ Redirector │────→│ Teamserver │
│ │←────│ (NGINX/CDN) │←────│ (C2 Server) │
│ │ │ │ │ │
└──────────┘ │ - URI filter │ └──────────────┘
│ - UA filter │
│ - GeoIP block │
│ - Decoy page │
└────────────────┘
NGINX Reverse Proxy Redirector
# /etc/nginx/sites-available/c2-redirector
server {
listen 443 ssl;
server_name legitimate-looking-domain.com;
ssl_certificate /etc/letsencrypt/live/legitimate-looking-domain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/legitimate-looking-domain.com/privkey.pem;
# Allow only expected C2 URIs
location /api/v2/status {
proxy_pass
よくある質問
サーバーを攻撃用のマシンから分けるのはなぜですか?
ガイドによると、制御サーバーは別のコンテナで動き、オペレーターのマシンにはクライアントだけが置かれるからです。
リダイレクターとは何ですか?
制御サーバーを守るために、その前に置かれる中継のことです。
どのフレームワークが挙げられていますか?
SliverとHavocが挙げられており、既定の設定ではSliverを使います。
詳細
作者による元の説明
Framework-agnostic C2 orchestration — listener types, implant modes, redirector architecture, malleable profiles, jitter strategy, OPSEC guidance.
人気
- GitHubのスター
- 6.5k
- ランキング
- #14130
- ライセンス
- 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、ファイアウォール、更新、バックアップなどのセキュリティリスクについて監査し、安全な修正案を提案するようエージェントを支援します。