{
  "Module 05: DNS Security, Attacks, and Tools": [
    {
      "question": "1. Danny wants to redirect users of ‘www.hda.com’ to a phishing site. Which local file should he change?",
      "options": ["A. Registry", "B. Kernel", "C. Firmware", "D. Hosts"],
      "num_answers": 1,
      "answer": "D. Hosts",
      "answer_keys": ["D"],
      "explanations": {
        "A": "❌ Registry stores system configurations, not DNS overrides.",
        "B": "❌ Kernel handles system operations, not name resolution.",
        "C": "❌ Firmware controls hardware initialization.",
        "D": "✅ The hosts file can locally map domain names to fake IPs."
      }
    },
    {
      "question": "2. You implement DNS extensions that validate authentication and integrity (but not availability/confidentiality). This is:",
      "options": ["A. DNS encryption", "B. DNSSEC", "C. DNS load balancing", "D. DNS caching"],
      "num_answers": 1,
      "answer": "B. DNSSEC",
      "answer_keys": ["B"],
      "explanations": {
        "A": "❌ DNS encryption hides queries but doesn’t validate integrity.",
        "B": "✅ DNSSEC signs DNS data to prevent spoofing and cache poisoning.",
        "C": "❌ Load balancing distributes traffic, not protect integrity.",
        "D": "❌ Caching improves performance, not security."
      }
    },
    {
      "question": "3. What is the best control against DNS cache poisoning?",
      "options": [
        "A. Implement intrusion detection systems (IDS).",
        "B. Implement Domain Name System Security Extensions (DNSSEC).",
        "C. Implement biometric authentication.",
        "D. Implement virtual private networks (VPNs)."
      ],
      "num_answers": 1,
      "answer": "B. Implement Domain Name System Security Extensions (DNSSEC).",
      "answer_keys": ["B"],
      "explanations": {
        "A": "❌ IDS detects anomalies but doesn’t prevent cache poisoning.",
        "B": "✅ DNSSEC cryptographically validates DNS responses.",
        "C": "❌ Biometrics is unrelated to DNS.",
        "D": "❌ VPNs protect traffic confidentiality, not DNS integrity."
      }
    },
    {
      "question": "4. Users entering www.HDA.org are redirected to www.HDA.in where they are asked for credentials. HDA is a victim of:",
      "options": [
        "A. Cross-site scripting (XSS) attack",
        "B. Man-in-the-middle (MITM) attack",
        "C. DNS hijacking",
        "D. Cross-site scripting (XSS) attack"
      ],
      "num_answers": 1,
      "answer": "C. DNS hijacking",
      "answer_keys": ["C"],
      "explanations": {
        "A": "❌ XSS exploits browser-side scripts, not DNS redirection.",
        "B": "❌ MITM intercepts communication, not DNS records.",
        "C": "✅ DNS hijacking alters DNS resolution to redirect traffic.",
        "D": "❌ Duplicate option."
      }
    },
    {
      "question": "5. Danny plans to embed malware in DNS protocol packets to bypass firewall and DNSSEC. This technique is:",
      "options": ["A. DNS rebinding", "B. DNS poisoning", "C. DNS tunneling", "D. DNS hijacking"],
      "num_answers": 1,
      "answer": "C. DNS tunneling",
      "answer_keys": ["C"],
      "explanations": {
        "A": "❌ DNS rebinding manipulates browser IP binding.",
        "B": "❌ DNS poisoning injects false records.",
        "C": "✅ DNS tunneling hides malicious data in DNS queries/responses.",
        "D": "❌ DNS hijacking redirects legitimate DNS lookups."
      }
    },
    {
      "question": "6. First step to launch a DNS cache poisoning attack:",
      "options": [
        "A. Identify the nameservers and query them using the DNS resolver.",
        "B. Steal sensitive information like credentials and card data.",
        "C. Send fake DNS responses with false IP info to the DNS server.",
        "D. Cover tracks by deleting logs and other evidence."
      ],
      "num_answers": 1,
      "answer": "A. Identify the nameservers and query them using the DNS resolver.",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Attackers first identify target nameservers for spoofing attempts.",
        "B": "❌ Data theft is a later stage, not initial.",
        "C": "❌ Fake responses follow reconnaissance.",
        "D": "❌ Covering tracks happens post-attack."
      }
    },
    {
      "question": "7. Tool for DNS footprinting, zone transfer testing, wildcard checks, brute forcing, email enumeration, domain/computer/IP info, and Whois:",
      "options": ["A. Nmap", "B. Bluto", "C. Wireshark", "D. IP Scanner"],
      "num_answers": 1,
      "answer": "B. Bluto",
      "answer_keys": ["B"],
      "explanations": {
        "A": "❌ Nmap is for network scanning.",
        "B": "✅ Bluto performs advanced DNS and domain reconnaissance.",
        "C": "❌ Wireshark captures packets but not domain info.",
        "D": "❌ IP scanners discover hosts, not DNS records."
      }
    },
    {
      "question": "8. Redirecting users to a similar-looking malicious site to capture credentials is called:",
      "options": ["A. Shoulder Surfing", "B. Pharming", "C. Man in the middle attack", "D. Tailgating"],
      "num_answers": 1,
      "answer": "B. Pharming",
      "answer_keys": ["B"],
      "explanations": {
        "A": "❌ Shoulder surfing means observing someone’s screen.",
        "B": "✅ Pharming redirects users via DNS manipulation to fake sites.",
        "C": "❌ MITM intercepts data directly.",
        "D": "❌ Tailgating involves physical access."
      }
    },
    {
      "question": "9. Which Linux command resolves a domain name into an IP address?",
      "options": [
        "A. host -t a resolveddomain.com",
        "B. host -t b resolveddomain.com",
        "C. host -t c resolveddomain.com",
        "D. host -t d resolveddomain.com"
      ],
      "num_answers": 1,
      "answer": "A. host -t a resolveddomain.com",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ 'host -t a' queries the A (address) record for a domain.",
        "B": "❌ 'b' is invalid type.",
        "C": "❌ Not a recognized record type.",
        "D": "❌ Invalid parameter."
      }
    },
    {
      "question": "10. To launch a pharming attack (redirect to a malicious lookalike site), which technique is needed?",
      "options": ["A. SQL Injection", "B. DNS Spoofing", "C. Cross-Site Scripting (XSS)", "D. Ransomware"],
      "num_answers": 1,
      "answer": "B. DNS Spoofing",
      "answer_keys": ["B"],
      "explanations": {
        "A": "❌ SQL Injection targets databases.",
        "B": "✅ DNS spoofing redirects traffic by falsifying DNS records.",
        "C": "❌ XSS injects scripts in web apps.",
        "D": "❌ Ransomware encrypts data for payment."
      }
    },
    {
      "question": "11. Danny corrupted a DNS server and redirected users to a lookalike site where they entered credentials and card details. This attack is:",
      "options": ["A. Denial of Service (DoS) attack", "B. Ransomware attack", "C. Pharming", "D. Spear-phishing"],
      "num_answers": 1,
      "answer": "C. Pharming",
      "answer_keys": ["C"],
      "explanations": {
        "A": "❌ DoS floods systems, not redirect traffic.",
        "B": "❌ Ransomware encrypts data.",
        "C": "✅ Pharming misdirects users to fake sites for data theft.",
        "D": "❌ Spear-phishing uses targeted emails."
      }
    },
    {
      "question": "12. Querying a DNS server to check whether a particular record is cached (revealing browsing history) is called:",
      "options": ["A. DNS cache snooping", "B. DNS redirection", "C. DNS cache poisoning", "D. DNS hijacking"],
      "num_answers": 1,
      "answer": "A. DNS cache snooping",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Cache snooping reveals cached queries and potential targets.",
        "B": "❌ Redirection sends users elsewhere.",
        "C": "❌ Poisoning inserts fake records.",
        "D": "❌ Hijacking modifies DNS configurations."
      }
    }
  ]
}
