The Domain Name System (DNS) translates human-readable domain names into IP addresses. Because early DNS was designed without cryptographic validation, attackers can manipulate DNS responses, poison caches, redirect users to malicious websites, or even abuse DNS itself as a covert communication channel.
DNS cache poisoning occurs when an attacker floods a recursive resolver with forged DNS responses. If a forged response is accepted before the legitimate one arrives, the resolver may cache a malicious IP address for a trusted domain. In 2008, security researcher Dan Kaminsky demonstrated a large-scale attack that exploited weaknesses in DNS transaction ID and source port randomization, making cache poisoning far more practical than previously believed.
💡 Pro Tip: DNSSEC mitigates cache poisoning by attaching cryptographic signatures to DNS records. These signatures allow resolvers to verify that DNS responses were generated by the legitimate domain owner and were not modified in transit.
The presence of an RRSIG record indicates that DNSSEC signatures are available. A validating resolver can use these signatures to verify the authenticity and integrity of the DNS response.
DNS tunneling abuses DNS queries and responses to transport arbitrary data. Attackers often encode stolen information into subdomains such as secret-data.attacker.com. Because DNS traffic is commonly allowed through firewalls and network filters, this technique can be used to exfiltrate sensitive information from compromised environments.
⚠️ Monitor DNS query entropy, query length, and request frequency. Unusually long subdomains, randomized strings, or a high volume of requests to a single domain are common indicators of DNS tunneling activity.
| Attack | Primary Target | Common Defense |
|---|---|---|
| Cache Poisoning | Recursive Resolver | DNSSEC |
| DNS Tunneling | Outbound DNS Traffic | DNS Filtering and Traffic Analysis |
| DNS Amplification | Availability | Rate Limiting and Response Controls |
Verify exercises to earn ★ 150 XP and unlock next lab level.