π 06-04: Different Types of DNS Attacks¶
π’ 1. Local DNS Cache Poisoning¶
π Definition¶
Local DNS Cache Poisoning is an attack where false DNS records are inserted into a local DNS serverβs cache, causing users to be redirected to malicious websites.
π§ Basic Attack Process¶
- User sends a DNS query to a local DNS server
- Attacker sends a fake DNS response before the real one arrives
- DNS server accepts and stores the fake IP (cache poisoning)
- Future users requesting the same domain are redirected to attackerβs IP
π₯ Result: Users unknowingly visit malicious websites
π΅ 2. The Kaminsky Attack¶
π Definition¶
The Kaminsky Attack is a large-scale DNS cache poisoning attack that targets DNS servers by guessing transaction IDs and injecting fake responses.
π§ Basic Attack Process¶
- Attacker sends many DNS queries for random subdomains (e.g., abc.example.com)
- DNS server asks authoritative server for answers
- Attacker floods fake responses with different transaction IDs
- If one matches β DNS server accepts fake response
- Fake authority (NS record) is inserted into cache
π₯ Result: Attacker gains control over the entire domain resolution
π‘ 3. Fake Records in Legitimate DNS Response¶
π Definition¶
This attack involves inserting malicious DNS records into an otherwise legitimate-looking DNS response, tricking the DNS server into caching them.
π§ Basic Attack Process¶
- DNS server sends query to a legitimate server
- Attacker injects a response that looks valid
- Response contains:
- Correct answer section
- Malicious authority/additional records
- DNS server trusts and caches all records
π₯ Result: Hidden malicious entries take control of future DNS queries
π£ 4. DNS Rebinding Attack¶
π Definition¶
DNS Rebinding is an attack that bypasses browser security (Same Origin Policy) by changing the IP address of a domain during communication.
π§ Basic Attack Process¶
- User visits attacker-controlled website
- Domain initially resolves to attackerβs server
- After a short time (TTL expires), DNS response changes
- Same domain now resolves to internal/local IP (e.g., 192.168.x.x)
- Browser trusts it (same domain) and sends requests
π₯ Result: Attacker can access internal network services
π΄ 5. Denial-of-Service (DoS) Attacks on DNS¶
π Definition¶
A DoS attack on DNS is when attackers overwhelm DNS servers with massive traffic, making them unavailable to legitimate users.
π§ Basic Attack Process¶
- Attacker sends huge numbers of DNS requests
- DNS server resources become overloaded
- Server cannot respond to real users
- Legitimate requests fail or timeout
π₯ Result: Websites become unreachable
π― Final Summary¶
| Attack Type | Main Goal | Full Lesson |
|---|---|---|
| Cache Poisoning | Redirect users | 06-05: Local DNS Cache Poisoning |
| Kaminsky Attack | Take control of domain | 06-06: The Kaminsky Attack |
| Fake Records | Inject hidden malicious entries | 06-07: Fake Records in Legitimate DNS Response |
| DNS Rebinding | Access internal systems | 06-08: DNS Rebinding Attack |
| DoS Attack | Disrupt DNS service | 06-09: Denial-of-Service (DoS) Attacks on DNS |
Each attack gets its own full deep-dive lesson β read the linked page for the complete attack flow, packet-level examples, and defenses.