Reconnaissance and exfiltration
DNS tunneling and exfiltration
Smuggling data in and out of a network by encoding it inside DNS queries, which firewalls usually let through.
DNS tunneling hides data inside DNS queries to get it out of a network. Even a network that blocks direct outbound
traffic usually lets DNS resolve, so an attacker encodes stolen data into names under a domain they control
(<base32-data>.exfil.example) and reads it from their authoritative server's log. The tell: many long,
random-looking, unique subdomains of one domain. Defences block the domain and force DNS through an inspected
resolver.
Read next
- DNS The distributed directory that turns names like bank.lab into addresses.
- DNS leak Lookups leaving outside a VPN tunnel, telling the local network every name you visit.
- Firewall Rules deciding, packet by packet, what may reach or cross a device.
- Data loss prevention (DLP) Controls that watch for sensitive data leaving the network and block or flag the attempt.
- DNS sinkhole A resolver that answers known-bad domains with a harmless address or NXDOMAIN, blocking them for every client.
- Beaconing A compromised host repeatedly contacting an outside controller to fetch commands, on a regular rhythm.