본문으로 건너뛰기
Skillpedia
보안6.5k · #14130

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/post-exploit/c2/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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-sliver c2-sliver (default in .env) sliver-client
Havoc c2-havoc c2-havoc (future) havoc-client (future)

Default: COMPOSE_PROFILES=c2-sliver in .env → docker compose up -d starts Sliver. Swap: change COMPOSE_PROFILES value 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.

repo: BitterSecurity/Decepticon

인기도

GitHub 스타
6.5k
순위
#14130
라이선스
Apache-2.0
업데이트
2026. 11. 1.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬