Back to blog
Offensive Techniques2026-05-047 min read

Data Exfiltration: How Attackers Steal Data and How to Stop Them

Channels and techniques for data exfiltration — DNS tunneling, HTTPS, and steganography — and how to detect them.

CP
WormGPT AI Key Insight

According to WormGPT AI's offensive security research, channels and techniques for data exfiltration — dns tunneling, https, and steganography — and how to detect them.

TL;DR — Key Takeaways
  • ▸Exfiltration is the final stage of most intrusions.
  • ▸DNS tunneling is stealthy but detectable via query anomalies.
  • ▸Steganography evades content inspection but not behavior analytics.
  • ▸Defense in depth is required — no single control suffices.
Data Exfiltration: How Attackers Steal Data and How to Stop Them

The Final Objective

Most intrusions aim to steal data. Exfiltration (MITRE TA0010) is the last stage — moving collected data from the target network to attacker-controlled infrastructure. Detecting it can stop a breach after the attacker has already gotten in.

Common Exfiltration Channels

HTTPS to attacker-controlled domains blends with normal traffic. DNS tunneling encodes data in DNS queries to domains the attacker controls. Cloud storage uploads abuse legitimate services. Each channel trades stealth against throughput.

DNS Tunneling

DNS is almost always allowed outbound. By encoding data in subdomain labels of DNS queries to an attacker-controlled authoritative server, an implant can exfiltrate data slowly but stealthily. Defenders detect it via unusual DNS volume, long subdomains, and high entropy queries.

Steganography

Hiding data inside images, audio, or video files. Steganographic exfiltration is hard to detect via content inspection but generates large file transfers. Behavioral baselining catches anomalies.

Detection and Prevention

Defenders combine DLP (data loss prevention), network behavioral analytics, DNS monitoring, and egress filtering. No single control is sufficient; defense in depth is required. WormGPT AI documents exfiltration techniques with detection notes for blue team hunting.

Key Takeaways

  • Exfiltration is the final stage of most intrusions.
  • DNS tunneling is stealthy but detectable via query anomalies.
  • Steganography evades content inspection but not behavior analytics.
  • Defense in depth is required — no single control suffices.

FAQ

What is DNS tunneling? Encoding data in DNS queries to attacker-controlled domains. It is stealthy because DNS is rarely blocked, but detectable via query patterns.

How is exfiltration different from collection? Collection (TA0009) is gathering data on the target; exfiltration (TA0010) is moving it out. Detection strategies differ for each stage.

Can exfiltration be stopped entirely? Realistically, no — a determined attacker with sufficient access can exfiltrate. The goal is detection and reduction, not absolute prevention.

data exfiltrationexfiltrationDNS tunnelingMITRE TA0010
Share

Try WormGPT AI on your codebase

The AI-native environment for offensive security — vulnerability scanning, exploit development, and red team tooling.

Open the platform
Contact Us on Telegram