Question 211 · 654 in bank
How is data sent out to the attacker during a DNS tunneling attack?
Show answer
Answer: A
Explanation
This is a tricky question. Communication on port 53 (both TCP and UDP) is used by DNS but usage of port 53 itself does NOT mean that we are using DNS encapsulation. For DNS tunneling to be successful, we need to use real DNS protocol (i. e. DNS headers) and payload, where exfiltrated data are placed as part of domain in question. With no DNS encapsulation, traffic would NOT reach attackers destination server (resolution of queries by DNS server is needed here and forwarding them to the attacker's domain's authoritative DNS server). So correct answer is "part of the domain name", which means we are talking about real DNS communication where domain name is used to exfiltrate data (not just any L4 protocol with port 53).
Source: Adapted from community discussion — NikoNiko

