Exfiltration captures show data being extracted from a network by an adversary. Techniques include DNS tunnelling (encoding data in queries), HTTP POST uploads to external servers, ICMP data channels, steganography in image transfers, and encrypted channels over non-standard ports. Understanding exfiltration patterns helps build DLP rules and network monitoring alerts.
Data exfiltration packet captures showing DNS tunnelling, HTTP uploads, ICMP channels, and covert data extraction techniques.
SAPPAN: Advanced Threat Data: network traffic capture
network_traffic_capture.pcap (26.7 MB) from the Zenodo record "SAPPAN: Advanced Threat Data" (https://zenodo.org/records/5547862), licence cc-by-4.0. The data were acquired from a simulated environment consisting of two Windows clients, a Windows server, a Linux host, and a Linux router whose connection diagram can be found in the infrastructure.png file. One attack scenario was performed in this environment, and data relevant to this attack are uploaded as this dataset. The advanced attack scenario follows our previous experiment (see SAPPAN: Combined Network and Host Data ), where the initial compromise of a host from outside has already been carried out. The scenario starts by running the code on Workstation1 and extracting the data, followed by a lateral movement to Workstation2, where the data is also extracted. The scenario ends with the deactivation of all implants. A detailed description of the scenario can be found in the test_protocol.xlsx file. The scenario is inspired by the first scenario described in APT29 Evaluation: Operational Flow and APT29 Day 1 (Steps 1 through 10) . However, in order to better showcase analyses relevant to the SAPPAN project, we have chosen a different C2 framework (POshC2 instead of Pupy RAT) and performed certain steps concerning code execution, downloading and exfiltrating data differently. The dataset consists of the following data: infrastructure.png - Schema of the artificial infrastructure test-protocol.xlsx - Detailed protocol of the captured attack network_traffic_capture.pcap - Full packet capture (PCAP format) of all network traffic passing through firewall host RDR-data.zip - Raw event data (JSON format) from all Windows host with the following attributes: time - the time when the sensor recorded the event event_type - the type of the event host - info about the host machine (name and OS version) event - event type-specific payload Cite as: Cermak, Milan, Obrecht, Mischa (2021). SAPPAN: Advanced Threat Data. Zenodo. https://doi.org/10.5281/zenodo.5547862
TLS Beaconing with Certificate Rotation and Data Exfiltration
HTTPS sessions with separate certificates, periodic beacon requests, command polling, and larger encrypted POST uploads that model C2 staging and exfiltration patterns for TLS-focused hunts.
FTP Password Spray with Archive Staging and Exfiltration
FTP control and passive data-channel activity showing repeated failed logins, a successful session, directory listing, suspicious archive download, and staged upload traffic for credential and exfiltration hunting.
learn: DNS Tunneling via Encoded Subdomain Labels
28 DNS queries against BIND 9.18.39 demonstrating data exfiltration through encoded subdomain names. 15 queries encode stolen data as base64 subdomain labels under exfil.pcaplab.local. The encoded payloads contain actual credentials and system information: dXNlcm5hbWU9YWRtaW5pc3RyYXRvcg decodes to username=administrator, cGFzc3dvcmQ9UzNjcmV0UEBzc3cwcmQh decodes to password=S3cretP@ssw0rd!, plus hostname, IP address, OS version, antivirus status, and installed software inventory. 10 TXT record queries to cmd.{n}.c2.pcaplab.local simulate C2 command retrieval. 3 normal A record queries (www.pcaplab.local, mail.pcaplab.local, google.com) provide baseline comparison. Normal subdomains are short: www, api, mail, cdn. DNS tunneling uses abnormally long subdomains (50+ characters) with base64-like character patterns. To detect this in Wireshark, look for DNS query names where the subdomain length is far longer than typical. The high entropy and consistent parent domain are the key indicators.
Multi-Channel Data Exfiltration (HTTP, DNS, ICMP, Redis, SMB)
Data exfiltration across five different protocols simultaneously: HTTP POST with stolen data parameters DNS subdomain encoding (Base64 in subdomain labels) ICMP payload with embedded credentials Redis SET with exfiltrated data SMB file drop to a public share Shows how advanced attackers use multiple exfiltration channels to increase reliability and evade single-protocol monitoring.
Steganographic HTTP Traffic (Hidden Data in Headers)
HTTP requests that look like normal resource loads (images, CSS, JS) but carry hidden data in Cookie, X-Forwarded-For, Accept-Language headers, and URL parameters. Base64-encoded payloads are hidden in legitimate-looking header fields, mixed with normal requests for cover.
SSH Tunnel for Database Exfiltration
SSH local port forward (-L 13306:target:3306) creating a tunnel to a MySQL server on another host, followed by database queries through the tunnel. The actual MySQL traffic is encrypted within the SSH session. Shows how SSH tunnels appear in captures and enable covert data access.
Multi-Stage Attack: Recon, Database Access, Lateral Movement, Exfil
Complete attack lifecycle against a multi-server environment: Nmap SYN scan of two targets SQL injection probe and sqlmap User-Agent MySQL and Redis data extraction SMB lateral movement to Linux and Windows hosts DNS subdomain exfiltration All stages in a single capture for correlation analysis.
HTTPS Data Exfiltration (Encrypted Chunked Upload)
Eight HTTPS POST requests uploading 200-byte encoded data chunks at 1-second intervals, followed by five GET polling requests at 2-second intervals. Shows the characteristic pattern of encrypted C2 exfiltration: regular intervals, consistent payload sizes, and alternating upload/download phases. Content is encrypted but the timing pattern is detectable.
DNS-based Command and Control Communication
DNS C2 simulation: 15 TXT record queries polling for commands (encoded command IDs), Base64-encoded data exfiltration via subdomain labels, and periodic beacon check-ins. Shows three distinct DNS C2 patterns: command polling, data exfiltration, and heartbeat beacons.
Pre-Exfiltration Data Staging Across Multiple Databases
Attacker collecting data from three database services: MySQL (SELECT *, user enumeration, SHOW DATABASES), Redis (KEYS, GET, HGETALL), and PostgreSQL (table dump). Shows the multi-database reconnaissance pattern typical of data theft operations before exfiltration.
ICMP Data Exfiltration with Sensitive Payloads
ICMP echo requests carrying sensitive data (credentials, API keys, credit card numbers, SSH key fragments) in their payloads instead of standard padding. Mixed with normal pings. Demonstrates hiding data in ICMP payloads to bypass firewalls that allow ping but don't inspect content.
DNS Tunneling with Encoded Subdomain Queries
30 DNS queries with abnormally long, encoded subdomain names simulating data exfiltration through DNS. Mixed with legitimate queries for contrast. The long, high-entropy subdomain labels are a key indicator of DNS tunneling. Useful for testing DNS tunnel detection systems.