DNS tunnelling

Hiding other data inside DNS lookups and replies, so it can slip out of or into a network that allows DNS but blocks other traffic.

It lets malware steal data or receive commands through a channel most networks allow without inspection.

In more detail

The attacker controls the name server for a domain, and malware encodes stolen data or commands into the subdomain part of lookups, which ordinary resolvers dutifully forward to that server, while replies carry data back. It works because almost every network lets DNS out, often without inspection. Warning signs include long or random-looking subdomains, a high volume of queries to one domain, large replies and a lot of data sent to DNS servers.

Examples

Exercise: add a DNS connection with orig_bytes of 40000000 and explain why that pattern matters
A lookup such as 4a6f686e.exfil.attacker.example carries data in its subdomain

Related terms

Taught in

References