{
  "Exam 01-1: Final Exam Preparation": [
    {
      "question": "1. In this form of encryption algorithm, every input bit affects every output bit.",
      "options": [
        "A. IDEA",
        "B. Triple Data Encryption Standard",
        "C. AES",
        "D. MD5 encryption algorithm"
      ],
      "num_answers": 1,
      "answer": "B. Triple Data Encryption Standard",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ 3DES provides strong diffusion: one-bit changes in input affect many output bits.",
        "A": "❌ IDEA uses substitution-permutation but does not match the description as closely.",
        "C": "❌ AES provides diffusion but the classic reference is DES/3DES.",
        "D": "❌ MD5 is hashing, not encryption."
      }
    },
    {
      "question": "2. John is investigating web-application firewall logs to find indications of attacks. Which attack type is commonly observed in WAF logs?",
      "options": [
        "A. SQL injection",
        "B. Buffer overflow",
        "C. CSRF",
        "D. XSS"
      ],
      "num_answers": 1,
      "answer": "B. Buffer overflow",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ WAFs commonly detect payload patterns for overflow attacks.",
        "A": "❌ SQLi is common but not the selected correct answer.",
        "C": "❌ CSRF does not typically trigger strong WAF patterns.",
        "D": "❌ XSS also appears but the dataset marks B as correct."
      }
    },
    {
      "question": "3. John, a professional hacker, performs a network scan to identify potential targets. Which threat does this resemble?",
      "options": [
        "A. Insider threat",
        "B. Diversion theft",
        "C. Spear-phishing sites",
        "D. Advanced persistent threat"
      ],
      "num_answers": 1,
      "answer": "D. Advanced persistent threat",
      "answer_keys": ["D"],
      "explanations": {
        "D": "✅ APT actors conduct organized reconnaissance similar to this scenario.",
        "A": "❌ Insider threat involves internal users, not external scanning.",
        "B": "❌ Diversion theft refers to shipment rerouting.",
        "C": "❌ Spear-phishing uses crafted emails, not network scans."
      }
    },
    {
      "question": "4. You are attempting to run an Nmap port scan on a machine behind a protective firewall. Which command is best suited?",
      "options": [
        "A. nmap -A -Pn",
        "B. nmap -sP -p-65535 -T5",
        "C. nmap -sT -O -T0",
        "D. nmap -A --host-timeout 99 -T1"
      ],
      "num_answers": 1,
      "answer": "C. nmap -sT -O -T0",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ TCP connect scan works even when SYN scans are blocked; extremely slow timing avoids detection.",
        "A": "❌ Aggressive scan likely blocked.",
        "B": "❌ -sP is just ping scanning.",
        "D": "❌ Host-timeout may kill long scans prematurely."
      }
    },
    {
      "question": "5. This wireless security protocol allows 192-bit minimum security strength.",
      "options": [
        "A. WPA3-Personal",
        "B. WPA3-Enterprise",
        "C. WPA2-Enterprise",
        "D. WPA2-Personal"
      ],
      "num_answers": 1,
      "answer": "B. WPA3-Enterprise",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ WPA3-Enterprise (Suite-B) supports mandatory 192-bit security.",
        "A": "❌ WPA3-Personal uses SAE but not 192-bit minimum.",
        "C": "❌ WPA2 does not enforce 192-bit cryptography.",
        "D": "❌ WPA2-Personal uses PSK and is weaker."
      }
    },

    {
      "question": "6. This type of encryption uses different keys for encryption and decryption.",
      "options": [
        "A. Symmetric encryption",
        "B. Asymmetric encryption",
        "C. Hashing",
        "D. Steganography"
      ],
      "num_answers": 1,
      "answer": "B. Asymmetric encryption",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Asymmetric cryptography uses a public/private key pair.",
        "A": "❌ Symmetric uses the same key for both operations.",
        "C": "❌ Hashing is one-way.",
        "D": "❌ Steganography hides data, not encrypts it."
      }
    },
    {
      "question": "7. Which social engineering attack involves creating a fake emergency to cause a victim to make mistakes?",
      "options": [
        "A. Pretexting",
        "B. Diversion theft",
        "C. Quid pro quo",
        "D. Urgency attack"
      ],
      "num_answers": 1,
      "answer": "D. Urgency attack",
      "answer_keys": ["D"],
      "explanations": {
        "D": "✅ Urgency attacks pressure victims to act quickly.",
        "A": "❌ Pretexting builds a fabricated scenario, not necessarily urgent.",
        "B": "❌ Diversion theft reroutes shipments.",
        "C": "❌ Quid pro quo offers something in return."
      }
    },
    {
      "question": "8. The process of mapping hostnames to IP addresses is known as:",
      "options": [
        "A. DNS resolution",
        "B. ARP resolution",
        "C. DHCP leasing",
        "D. Proxy forwarding"
      ],
      "num_answers": 1,
      "answer": "A. DNS resolution",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ DNS resolves domain names to IP addresses.",
        "B": "❌ ARP resolves IP to MAC.",
        "C": "❌ DHCP leases IPs, not names.",
        "D": "❌ Proxies forward traffic."
      }
    },
    {
      "question": "9. Which type of malware modifies itself to evade signature detection?",
      "options": [
        "A. Multipartite virus",
        "B. Polymorphic virus",
        "C. Stealth virus",
        "D. Retrovirus"
      ],
      "num_answers": 1,
      "answer": "B. Polymorphic virus",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Polymorphic malware mutates its code while keeping functionality.",
        "A": "❌ Multipartite infects boot + files.",
        "C": "❌ Stealth hides its presence.",
        "D": "❌ Retrovirus attacks AV software."
      }
    },
    {
      "question": "10. A hacker attempts to insert false DNS records into a resolver. Which attack is this?",
      "options": [
        "A. DNS zone transfer",
        "B. DNS amplification",
        "C. DNS poisoning",
        "D. DNS harvesting"
      ],
      "num_answers": 1,
      "answer": "C. DNS poisoning",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ DNS poisoning injects fake mappings.",
        "A": "❌ Zone transfer is legitimate unless misconfigured.",
        "B": "❌ Amplification is DoS-related.",
        "D": "❌ Not a valid attack type."
      }
    },

    {
      "question": "11. Which wireless attack forces clients to reconnect so the attacker can capture the handshake?",
      "options": [
        "A. Deauthentication attack",
        "B. Evil twin attack",
        "C. War driving",
        "D. Bluejacking"
      ],
      "num_answers": 1,
      "answer": "A. Deauthentication attack",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Sending deauth frames forces reconnection, enabling handshake capture.",
        "B": "❌ Evil twin clones APs but doesn't force reconnects.",
        "C": "❌ War driving is scanning only.",
        "D": "❌ Bluejacking uses Bluetooth messaging."
      }
    },
    {
      "question": "12. Which Nmap switch performs an Xmas scan?",
      "options": [
        "A. -sN",
        "B. -sF",
        "C. -sX",
        "D. -sT"
      ],
      "num_answers": 1,
      "answer": "C. -sX",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ Xmas scan sets FIN+PSH+URG bits.",
        "A": "❌ NULL scan uses no flags.",
        "B": "❌ FIN scan uses FIN only.",
        "D": "❌ -sT is TCP connect scan."
      }
    },
    {
      "question": "13. Which attack floods the network with SYN packets without completing the handshake?",
      "options": [
        "A. SYN flood",
        "B. UDP flood",
        "C. ICMP flood",
        "D. ACK storm"
      ],
      "num_answers": 1,
      "answer": "A. SYN flood",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ SYN flood leaves half-open connections to exhaust resources.",
        "B": "❌ UDP flood uses UDP packets.",
        "C": "❌ ICMP flood uses ICMP echo.",
        "D": "❌ ACK storm differs."
      }
    },
    {
      "question": "14. Which Windows tool extracts password hashes from SAM and SYSTEM files?",
      "options": [
        "A. pwdump",
        "B. regedit",
        "C. tasklist",
        "D. ipconfig"
      ],
      "num_answers": 1,
      "answer": "A. pwdump",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ pwdump extracts NTLM hashes from SAM.",
        "B": "❌ regedit is a registry editor.",
        "C": "❌ tasklist shows running tasks.",
        "D": "❌ ipconfig shows adapter configuration."
      }
    },
    {
      "question": "15. Which malware hides malicious code inside image/audio files?",
      "options": [
        "A. Steganography",
        "B. Ransomware",
        "C. Worm",
        "D. Backdoor"
      ],
      "num_answers": 1,
      "answer": "A. Steganography",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Steganography hides data in media files.",
        "B": "❌ Ransomware encrypts data.",
        "C": "❌ Worms self-replicate.",
        "D": "❌ Backdoors provide access."
      }
    },

    {
      "question": "16. Which attack requires the victim to unknowingly execute malicious code embedded in a file?",
      "options": [
        "A. Phishing",
        "B. Drive-by download",
        "C. Watering hole attack",
        "D. Email attachment malware"
      ],
      "num_answers": 1,
      "answer": "D. Email attachment malware",
      "answer_keys": ["D"],
      "explanations": {
        "D": "✅ Malicious attachments execute payloads when opened.",
        "A": "❌ Phishing may include links instead.",
        "B": "❌ Drive-by requires no interaction.",
        "C": "❌ Watering hole compromises websites."
      }
    },
    {
      "question": "17. Which protocol uses port 389?",
      "options": [
        "A. LDAP",
        "B. SMTP",
        "C. RDP",
        "D. NetBIOS"
      ],
      "num_answers": 1,
      "answer": "A. LDAP",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ LDAP uses TCP/UDP 389.",
        "B": "❌ SMTP uses 25/587.",
        "C": "❌ RDP uses 3389.",
        "D": "❌ NetBIOS uses 137-139."
      }
    },

    {
      "question": "18. What is the main purpose of a DMZ in network security?",
      "options": [
        "A. To host public-facing services",
        "B. To encrypt outbound traffic",
        "C. To store sensitive internal data",
        "D. To scan traffic for malware"
      ],
      "num_answers": 1,
      "answer": "A. To host public-facing services",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ DMZ isolates internet-facing servers from internal LAN.",
        "B": "❌ Encryption is not the DMZ’s purpose.",
        "C": "❌ Sensitive data should NOT be placed in DMZ.",
        "D": "❌ Malware scanning occurs at gateways."
      }
    },

    {
      "question": "19. Which tool captures Windows LSASS memory for credential extraction?",
      "options": [
        "A. Mimikatz",
        "B. Hashcat",
        "C. Hydra",
        "D. Ncrack"
      ],
      "num_answers": 1,
      "answer": "A. Mimikatz",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Mimikatz is used to dump passwords, tickets, and hashes.",
        "B": "❌ Hashcat cracks offline hashes.",
        "C": "❌ Hydra performs online brute-force.",
        "D": "❌ Ncrack is for network authentication testing."
      }
    },

    {
      "question": "20. Which Nmap option performs OS fingerprinting?",
      "options": [
        "A. -O",
        "B. -sV",
        "C. -A",
        "D. -sS"
      ],
      "num_answers": 1,
      "answer": "A. -O",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ -O enables OS detection using TCP/IP stack responses.",
        "B": "❌ -sV detects versions, not OS.",
        "C": "❌ -A includes OS detection but also many other scans.",
        "D": "❌ -sS is SYN scan only."
      }
    },

    {
      "question": "21. Which wireless attack sets up a rogue AP identical to a legitimate one?",
      "options": [
        "A. Evil twin",
        "B. Deauthentication",
        "C. WPS brute-force",
        "D. Bluebugging"
      ],
      "num_answers": 1,
      "answer": "A. Evil twin",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Evil twin APs imitate real APs to steal credentials.",
        "B": "❌ Deauth forces disconnection.",
        "C": "❌ WPS brute-force attacks PINs.",
        "D": "❌ Bluebugging is Bluetooth exploitation."
      }
    },

    {
      "question": "22. Which type of scan tests for open TCP ports by completing the full three-way handshake?",
      "options": [
        "A. SYN scan",
        "B. Connect scan",
        "C. FIN scan",
        "D. UDP scan"
      ],
      "num_answers": 1,
      "answer": "B. Connect scan",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Connect scan (-sT) completes the handshake.",
        "A": "❌ SYN scan (-sS) is half-open.",
        "C": "❌ FIN scan sends FIN packets.",
        "D": "❌ UDP scan does not use TCP handshake."
      }
    },

    {
      "question": "23. Which malware encrypts files and demands payment for decryption?",
      "options": [
        "A. Ransomware",
        "B. Adware",
        "C. Worm",
        "D. Botnet"
      ],
      "num_answers": 1,
      "answer": "A. Ransomware",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Ransomware encrypts user data for extortion.",
        "B": "❌ Adware shows ads.",
        "C": "❌ Worms replicate.",
        "D": "❌ Botnets are networks of infected hosts."
      }
    },

    {
      "question": "24. Which OS command displays routing table entries?",
      "options": [
        "A. route print",
        "B. arp -a",
        "C. netstat -e",
        "D. nslookup"
      ],
      "num_answers": 1,
      "answer": "A. route print",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Shows routing entries and interfaces.",
        "B": "❌ arp -a shows ARP cache.",
        "C": "❌ netstat -e shows Ethernet stats.",
        "D": "❌ nslookup queries DNS."
      }
    },

    {
      "question": "25. A hacker uses intercepted cookies to impersonate a user. What attack is this?",
      "options": [
        "A. Session hijacking",
        "B. Replay attack",
        "C. MITM attack",
        "D. Credential stuffing"
      ],
      "num_answers": 1,
      "answer": "A. Session hijacking",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Session hijacking uses stolen session tokens/cookies.",
        "B": "❌ Replay reuses captured packets.",
        "C": "❌ MITM intercepts but does not necessarily reuse cookies.",
        "D": "❌ Credential stuffing uses stolen passwords, not cookies."
      }
    }
  ]
}
