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 mattersA lookup such as 4a6f686e.exfil.attacker.example carries data in its subdomainRelated terms
- DNS — The system that turns names such as learnsome.tech into IP addresses.
- data exfiltration — Secretly copying data out of a system to somewhere an attacker controls.
- command and control — The channel an attacker uses to send instructions to compromised systems and receive data back.
- egress monitoring — Watching traffic that leaves the network, especially how much goes where and when, to spot data being taken out.
Taught in
- Data Loss Prevention & Egress Monitoring — Cybersecurity Fundamentals, GRC & Cryptography