{
  "Module 22: Password Attacks": [
    {
      "question": "1. Which of the following is a method used to crack password hashes?",
      "options": [
        "A. Social engineering",
        "B. Man-in-the-middle attack",
        "C. Rainbow table",
        "D. Phishing"
      ],
      "num_answers": 1,
      "answer": "C. Rainbow table",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ Rainbow tables are precomputed hash tables used to reverse weak password hashes.",
        "A": "❌ Social engineering targets people, not hashes.",
        "B": "❌ MITM focuses on intercepting traffic, not offline hash cracking.",
        "D": "❌ Phishing tricks users into revealing credentials, not cracking hashes."
      }
    },
    {
      "question": "2. Which of the following is the most suitable method to resist rainbow table attacks?",
      "options": [
        "A. User awareness",
        "B. Password salting",
        "C. Maximum password age",
        "D. Minimum password length"
      ],
      "num_answers": 1,
      "answer": "B. Password salting",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Salting passwords ensures each hash is unique, making precomputed rainbow tables ineffective.",
        "A": "❌ Awareness is important but does not stop hash-based attacks.",
        "C": "❌ Password age affects rotation, not rainbow tables.",
        "D": "❌ Length helps against brute-force but not directly against precomputed tables."
      }
    },
    {
      "question": "3. What is the primary reason that brute-force attacks take more time to crack a password than rainbow table or dictionary attacks?",
      "options": [
        "A. Brute-force attacks are more complex than rainbow table or dictionary attacks.",
        "B. Brute-force attacks use precomputed data to speed up the cracking process.",
        "C. Brute-force attacks require a lot of computing power to execute.",
        "D. Brute-force attacks systematically try every possible combination of characters until the correct password is found."
      ],
      "num_answers": 1,
      "answer": "D. Brute-force attacks systematically try every possible combination of characters until the correct password is found.",
      "answer_keys": ["D"],
      "explanations": {
        "D": "✅ Brute-force explores the full keyspace, so time grows rapidly with length and complexity.",
        "A": "❌ Complexity is not the core reason; exhaustive search is.",
        "B": "❌ Precomputed data is used in rainbow table attacks, not brute-force.",
        "C": "❌ Computing power is a consequence, not the fundamental reason."
      }
    },
    {
      "question": "4. Which of the following password cracking methods generally takes the highest amount of time to crack a strong password?",
      "options": [
        "A. John the Ripper (dictionary mode)",
        "B. Rainbow tables",
        "C. Dictionary attack",
        "D. Brute force"
      ],
      "num_answers": 1,
      "answer": "D. Brute force",
      "answer_keys": ["D"],
      "explanations": {
        "D": "✅ Brute-force tests every possible combination and is slowest for strong passwords.",
        "A": "❌ Dictionary mode is faster but limited by the wordlist.",
        "B": "❌ Rainbow tables are precomputed for speed.",
        "C": "❌ Dictionary attacks are targeted, not exhaustive."
      }
    },
    {
      "question": "5. Which of the following is the best technique to make a rainbow table useless?",
      "options": [
        "A. User awareness",
        "B. Password salting",
        "C. Maximum password age",
        "D. Minimum password length"
      ],
      "num_answers": 1,
      "answer": "B. Password salting",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Salting forces unique hashes per password, rendering generic rainbow tables ineffective.",
        "A": "❌ Awareness does not change how hashes are stored.",
        "C": "❌ Rotation does not prevent table-based cracking of stolen hashes.",
        "D": "❌ Length helps against brute-force, not specifically rainbow tables."
      }
    },
    {
      "question": "6. Which of the following best describes password salting?",
      "options": [
        "A. It improves the system performance.",
        "B. It improves the decryption process.",
        "C. It improves password management administration.",
        "D. It helps to defeat the rainbow table."
      ],
      "num_answers": 1,
      "answer": "D. It helps to defeat the rainbow table.",
      "answer_keys": ["D"],
      "explanations": {
        "D": "✅ Salting makes precomputed hash tables ineffective by randomizing each hash input.",
        "A": "❌ Salting usually adds overhead.",
        "B": "❌ Salting is about hashing, not decryption.",
        "C": "❌ Administration is not the primary purpose."
      }
    },
    {
      "question": "7. Danny, a white hat hacker, has obtained a list of usernames for a critical application at HDA Inc. He now uses a tool that attempts to log in using a list of common passwords. Danny is employing which technique?",
      "options": [
        "A. Brute-force attack",
        "B. Dictionary attack",
        "C. Social engineering attack",
        "D. SQL injection attack"
      ],
      "num_answers": 1,
      "answer": "B. Dictionary attack",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Dictionary attacks use wordlists of likely passwords to attempt logins.",
        "A": "❌ Brute-force tries every possible combination.",
        "C": "❌ Social engineering manipulates people, not systems.",
        "D": "❌ SQL injection targets databases via queries, not passwords directly."
      }
    },
    {
      "question": "8. In which of the following attacks does the attacker use a list of commonly used passwords to gain unauthorized access to a system?",
      "options": [
        "A. Dictionary attack",
        "B. Smudge attack",
        "C. Brute-force attack",
        "D. Piggybacking attack"
      ],
      "num_answers": 1,
      "answer": "A. Dictionary attack",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Dictionary attacks rely on pre-defined lists of common passwords.",
        "B": "❌ Smudge attacks use residue on touchscreens.",
        "C": "❌ Brute-force tries all combinations.",
        "D": "❌ Piggybacking is following someone through a door."
      }
    },
    {
      "question": "9. As Information Security Officer at HDA Inc., you use Gobuster to perform content enumeration on a web server. Which option provides the fastest and most efficient way to enumerate content?",
      "options": [
        "A. Carrying out content enumeration with the use of a wordlist",
        "B. Performing brute-force enumeration with random file extensions",
        "C. Executing brute-force enumeration with 10 separate threads",
        "D. Not verifying the SSL certificate"
      ],
      "num_answers": 1,
      "answer": "A. Carrying out content enumeration with the use of a wordlist",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Using a focused wordlist is usually the fastest and most efficient way with Gobuster.",
        "B": "❌ Random brute-force greatly increases search space and time.",
        "C": "❌ More threads help, but brute-force is still slower than a good wordlist.",
        "D": "❌ Skipping SSL verification saves little time and is unrelated to enumeration logic."
      }
    },
    {
      "question": "10. Which of the following best describes the function of the CeWL tool?",
      "options": [
        "A. A tool used to scan a network for vulnerable devices.",
        "B. A tool used to generate custom wordlists for password cracking or security testing.",
        "C. A tool used to perform automated website testing and vulnerability scanning.",
        "D. A tool used to sniff network traffic and intercept sensitive information."
      ],
      "num_answers": 1,
      "answer": "B. A tool used to generate custom wordlists for password cracking or security testing.",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ CeWL spiders websites and builds custom wordlists from the content.",
        "A": "❌ Network scanning is done by tools like Nmap.",
        "C": "❌ That describes web vulnerability scanners.",
        "D": "❌ Sniffing is done by Wireshark, tcpdump, etc."
      }
    },
    {
      "question": "11. Which tool is specifically used for gathering a list of words from a target website to build a custom wordlist?",
      "options": [
        "A. Nmap",
        "B. Metasploit",
        "C. Nessus",
        "D. CeWL"
      ],
      "num_answers": 1,
      "answer": "D. CeWL",
      "answer_keys": ["D"],
      "explanations": {
        "D": "✅ CeWL is designed to crawl a site and create wordlists from its content.",
        "A": "❌ Nmap is for port and service scanning.",
        "B": "❌ Metasploit is an exploitation framework.",
        "C": "❌ Nessus is a vulnerability scanner."
      }
    },
    {
      "question": "12. Which of the following statements is TRUE about CeWL?",
      "options": [
        "A. CeWL is a tool used for social engineering attacks.",
        "B. CeWL generates random passwords for security testing.",
        "C. CeWL is used to create custom wordlists for password cracking and security testing.",
        "D. CeWL is a tool used for network scanning and vulnerability assessment."
      ],
      "num_answers": 1,
      "answer": "C. CeWL is used to create custom wordlists for password cracking and security testing.",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ CeWL builds target-specific wordlists for use in password attacks.",
        "A": "❌ It does not perform social engineering by itself.",
        "B": "❌ It extracts real words, not random passwords.",
        "D": "❌ It is not a network scanner."
      }
    },
    {
      "question": "13. What is the primary objective of the John the Ripper program?",
      "options": [
        "A. To guess and crack passwords using dictionary, brute-force, and hybrid attacks.",
        "B. To conduct social engineering attacks to trick users into revealing passwords.",
        "C. To scan network devices and map infrastructure.",
        "D. To provide remote access to systems and execute malicious commands."
      ],
      "num_answers": 1,
      "answer": "A. To guess and crack passwords using dictionary, brute-force, and hybrid attacks.",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ John the Ripper is a password cracking toolkit supporting multiple cracking modes.",
        "B": "❌ That’s social engineering, not John’s function.",
        "C": "❌ Network scanning is done by Nmap, not John.",
        "D": "❌ Remote shells are a different class of tools."
      }
    },
    {
      "question": "14. John the Ripper is primarily used to determine the strength of which of the following?",
      "options": [
        "A. IDS",
        "B. Password",
        "C. Firewall",
        "D. IPS"
      ],
      "num_answers": 1,
      "answer": "B. Password",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ John tests password strength by attempting to crack password hashes.",
        "A": "❌ IDS strength is tested with evasion techniques and traffic manipulation.",
        "C": "❌ Firewalls are tested via port scans and rule bypass attempts.",
        "D": "❌ IPS deals with intrusion prevention, not password strength."
      }
    },
    {
      "question": "15. Which of the following best describes the function of the John the Ripper tool?",
      "options": [
        "A. A network scanner used to identify hosts and services.",
        "B. A vulnerability scanner used to identify web application weaknesses.",
        "C. A password cracking tool used to test the strength of passwords.",
        "D. A packet sniffer used to capture and analyze network traffic."
      ],
      "num_answers": 1,
      "answer": "C. A password cracking tool used to test the strength of passwords.",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ John the Ripper is designed for password hash cracking and auditing.",
        "A": "❌ That describes Nmap.",
        "B": "❌ That describes Nessus/Burp/etc.",
        "D": "❌ Packet sniffers are tools like Wireshark."
      }
    },
    {
      "question": "16. Identify the type of attack from the description:\n- Attackers measure the time taken by a password validation function to respond.\n- They observe how long the device takes to finish one password authentication attempt to estimate how many characters are correct.\n- If incorrect passwords take different amounts of time, the attacker can use timing differences to guess the correct password.",
      "options": [
        "A. Shoulder surfing attack",
        "B. Dictionary attack",
        "C. Side channel attack",
        "D. Brute-force attack"
      ],
      "num_answers": 1,
      "answer": "C. Side channel attack",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ Timing-based guessing is a classic side-channel technique, using indirect leakage (time).",
        "A": "❌ Shoulder surfing observes the user’s screen or keyboard directly.",
        "B": "❌ Dictionary attack uses wordlists, not timing.",
        "D": "❌ Brute-force tries all combinations without timing analysis."
      }
    },
    {
      "question": "17. Which of the following best describes a side-channel attack in the context of password authentication?",
      "options": [
        "A. An attack that relies on a network protocol vulnerability.",
        "B. An attack that exploits a weakness in cryptographic algorithms directly.",
        "C. An attack where the attacker measures how long the device takes to process a password attempt to infer correct characters.",
        "D. An attack that floods a system with traffic to overwhelm it."
      ],
      "num_answers": 1,
      "answer": "C. An attack where the attacker measures how long the device takes to process a password attempt to infer correct characters.",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ Side-channel attacks leverage timing, power, or other indirect signals rather than breaking the algorithm itself.",
        "A": "❌ That’s a protocol exploit, not side-channel.",
        "B": "❌ That is cryptanalysis, not a side-channel.",
        "D": "❌ Flooding traffic is a DoS attack."
      }
    },
    {
      "question": "18. Which type of password attack tries a small set of very common passwords (e.g., 'Summer2024!') against many different accounts to avoid lockouts?",
      "options": [
        "A. Brute-force attack",
        "B. Password spraying",
        "C. Rainbow table attack",
        "D. Shoulder surfing"
      ],
      "num_answers": 1,
      "answer": "B. Password spraying",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Password spraying uses a few common passwords across many accounts to evade lockout thresholds.",
        "A": "❌ Brute-force focuses on one account or hash with many guesses.",
        "C": "❌ Rainbow tables attack stored hashes, not online login portals directly.",
        "D": "❌ Shoulder surfing observes screens or keystrokes."
      }
    },
    {
      "question": "19. Which password attack uses username/password pairs stolen from one service and tries them against other unrelated sites?",
      "options": [
        "A. Dictionary attack",
        "B. Credential stuffing",
        "C. Smudge attack",
        "D. Rainbow table attack"
      ],
      "num_answers": 1,
      "answer": "B. Credential stuffing",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Credential stuffing reuses breached credentials on other services, relying on password reuse.",
        "A": "❌ Dictionary uses generic wordlists, not real stolen pairs.",
        "C": "❌ Smudge attack uses screen residue.",
        "D": "❌ Rainbow tables are offline hash-cracking techniques."
      }
    },
    {
      "question": "20. What is a key advantage for an attacker performing offline password cracking instead of online password guessing?",
      "options": [
        "A. Offline attacks always use less CPU.",
        "B. Offline attacks are limited by account lockout policies.",
        "C. Offline attacks are not affected by account lockout or rate limiting.",
        "D. Offline attacks can only use dictionary attacks, not brute-force."
      ],
      "num_answers": 1,
      "answer": "C. Offline attacks are not affected by account lockout or rate limiting.",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ Once hashes are stolen, attackers can try unlimited guesses without triggering lockout.",
        "A": "❌ They can be very CPU/GPU intensive.",
        "B": "❌ Lockouts apply to online authentication systems.",
        "D": "❌ Offline attacks can use dictionary, brute-force, and hybrid methods."
      }
    },
    {
      "question": "21. Which configuration BEST mitigates online brute-force password attacks against a login portal?",
      "options": [
        "A. Disabling HTTPS on the login page",
        "B. Implementing account lockout after several failed attempts",
        "C. Allowing unlimited login attempts",
        "D. Increasing session timeout to 24 hours"
      ],
      "num_answers": 1,
      "answer": "B. Implementing account lockout after several failed attempts",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Lockout or throttling significantly slows or blocks online brute-force attacks.",
        "A": "❌ Disabling HTTPS increases risk by exposing passwords in transit.",
        "C": "❌ Unlimited attempts is ideal for brute-force attackers.",
        "D": "❌ Longer sessions do not address guessing attempts."
      }
    },
    {
      "question": "22. On a typical Linux system, which file securely stores password hashes rather than plaintext passwords?",
      "options": [
        "A. /etc/passwd",
        "B. /etc/shadow",
        "C. /var/log/auth.log",
        "D. /root/.history"
      ],
      "num_answers": 1,
      "answer": "B. /etc/shadow",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ /etc/shadow contains hashed passwords with restricted permissions.",
        "A": "❌ /etc/passwd now usually contains only account info, not password hashes.",
        "C": "❌ auth.log stores authentication logs.",
        "D": "❌ History files store commands, not hashes."
      }
    },
    {
      "question": "23. When you use John the Ripper with a custom wordlist generated by CeWL, which type of password cracking attack are you primarily performing?",
      "options": [
        "A. Brute-force attack",
        "B. Rainbow table attack",
        "C. Dictionary (wordlist) attack",
        "D. Side-channel attack"
      ],
      "num_answers": 1,
      "answer": "C. Dictionary (wordlist) attack",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ You are feeding a wordlist and testing each word → dictionary attack.",
        "A": "❌ Brute-force tests all possible combinations, not a defined list.",
        "B": "❌ Rainbow tables use precomputed hashes, not direct wordlists.",
        "D": "❌ Side-channel uses timing or other indirect signals, not wordlists."
      }
    },
    {
      "question": "24. Which of the following changes has the greatest impact on increasing the time required for a brute-force password attack?",
      "options": [
        "A. Changing the login page color",
        "B. Increasing password length and character set complexity",
        "C. Using the same password on multiple systems",
        "D. Disabling HTTPS on the login page"
      ],
      "num_answers": 1,
      "answer": "B. Increasing password length and character set complexity",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ More characters and a larger character set grow the keyspace exponentially, slowing brute-force.",
        "A": "❌ UI color has no security effect.",
        "C": "❌ Reuse actually makes attacks easier.",
        "D": "❌ Disabling HTTPS decreases security but doesn’t slow brute-force."
      }
    },
    {
      "question": "25. Which of the following best describes a smudge attack in the context of password entry on mobile devices?",
      "options": [
        "A. Using precomputed hash tables to crack stored passwords.",
        "B. Observing screen residue patterns on a touchscreen to infer PINs or patterns.",
        "C. Reusing stolen credentials from one website on another website.",
        "D. Sending phishing emails to harvest passwords."
      ],
      "num_answers": 1,
      "answer": "B. Observing screen residue patterns on a touchscreen to infer PINs or patterns.",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Smudge attacks rely on oily residue or fingerprints on touchscreens to reconstruct unlock patterns or PINs.",
        "A": "❌ That describes a rainbow table attack.",
        "C": "❌ That is credential stuffing/reuse.",
        "D": "❌ That is phishing, not smudge-based."
      }
    }
  ]
}
