c2
하는 일
이 지식 베이스는 허가된 레드팀 작업을 위한 명령 및 제어(C2) 인프라의 일반 설계를 다룹니다. 이 시스템들이 어떻게 배치되는지 이해해야 하는 레드팀과 방어자를 위한 것입니다.
사용하는 경우
- ✓허가된 연습에서 제어 서버와 공격 머신을 분리하는 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 시스템을 덮어쓰려 하는 프롬프트 인젝션을 설명해, 보안 테스터가 이를 점검할 수 있게 합니다.