मुख्य सामग्री पर जाएँ
Skillpedia
सिक्योरिटी6.5k · #14130

c2

यह क्या करती है

यह नॉलेज बेस अधिकृत रेड-टीम कार्य के लिए कमांड-एंड-कंट्रोल इंफ़्रास्ट्रक्चर का सामान्य डिज़ाइन बताता है। यह रेड टीमों और बचाव करने वालों के लिए है जिन्हें समझना है कि ये सिस्टम कैसे व्यवस्थित होते हैं।

कब इस्तेमाल करें

  • ✓जब अधिकृत अभ्यास को ऐसा C2 डिज़ाइन चाहिए जो सर्वर को हमले की मशीन से अलग रखे।
  • ✓जब बचाव करने वाली टीम समझना चाहे कि रीडायरेक्टर और लिसनर नियंत्रण सर्वर के सामने कैसे बैठते हैं।
  • ✓जब टीम को परीक्षण वातावरण में चल रहे फ़्रेमवर्क कंटेनरों की चेकलिस्ट चाहिए।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/post-exploit/c2/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“हमारे अधिकृत अभ्यास के लिए, क्या आप समझा सकते हैं कि कमांड सर्वर, रीडायरेक्टर और लिसनर को कैसे व्यवस्थित किया जाना चाहिए?”

हर हफ़्ते 5 नई skills, 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
अपडेट की गई
1/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

detector-overview

6.5k

यह आपके एजेंट को स्कैनर से चिह्नित कोड पढ़ने और तय करने में मदद करती है कि कौन सी जगहें असली सुरक्षा बग हैं और कौन सी गलत चेतावनी।

कोडिंगसिक्योरिटी

exploiter-overview

6.5k

यह आपके एजेंट को कई पक्की सुरक्षा कमज़ोरियों को एक परीक्षण श्रृंखला में जोड़ने और जाँचने में मदद करती है कि वह श्रृंखला कितनी दूर तक पहुँच सकती है।

कोडिंगसिक्योरिटी

llm-redteam-overview

6.5k

यह आपके एजेंट को परीक्षण के लिए सही AI रेड-टीम गाइड खोजने में मदद करती है, प्रॉम्प्ट इंजेक्शन से लेकर मॉडल के दुरुपयोग तक 15 रणनीति समूहों में।

कोडिंगसिक्योरिटी

aatmf-t01-prompt-injection

6.5k

समझाती है कि प्रॉम्प्ट इंजेक्शन क्या है, जिसमें छिपे निर्देश AI सिस्टम के नियम बदलने की कोशिश करते हैं, ताकि सुरक्षा परीक्षक उसकी जाँच कर सकें।

कोडिंगसिक्योरिटी

मिलती-जुलती skills