{
  "Module 33: Cryptography, Digital Signatures & Key Security": [
    {
      "question": "1. Which cryptographic property ensures that a message cannot be altered without detection?",
      "options": [
        "A. Confidentiality",
        "B. Integrity",
        "C. Availability",
        "D. Obfuscation"
      ],
      "num_answers": 1,
      "answer": "B. Integrity",
      "answer_keys": ["B"],
      "explanations": {
        "A": "❌ Confidentiality protects secrecy, not modification detection.",
        "B": "✅ Integrity ensures the data has not been tampered with.",
        "C": "❌ Availability is unrelated to data changes.",
        "D": "❌ Obfuscation is code hiding, not integrity protection."
      }
    },
    {
      "question": "2. Which cryptographic algorithm is asymmetric?",
      "options": [
        "A. AES",
        "B. DES",
        "C. RSA",
        "D. Blowfish"
      ],
      "num_answers": 1,
      "answer": "C. RSA",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ RSA uses a public/private key pair (asymmetric).",
        "A": "❌ AES is symmetric.",
        "B": "❌ DES is symmetric.",
        "D": "❌ Blowfish is symmetric."
      }
    },
    {
      "question": "3. Which hashing algorithm is considered broken and should not be used?",
      "options": [
        "A. SHA-256",
        "B. SHA-3",
        "C. MD5",
        "D. BLAKE2"
      ],
      "num_answers": 1,
      "answer": "C. MD5",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ MD5 is vulnerable to collisions and should not be used.",
        "A": "❌ SHA-256 remains secure.",
        "B": "❌ SHA-3 is modern and secure.",
        "D": "❌ BLAKE2 is secure and fast."
      }
    },
    {
      "question": "4. What does a digital signature primarily provide?",
      "options": [
        "A. Confidentiality",
        "B. Authentication and integrity",
        "C. Availability",
        "D. Key escrow"
      ],
      "num_answers": 1,
      "answer": "B. Authentication and integrity",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Digital signatures verify the sender and ensure message integrity.",
        "A": "❌ Encryption provides confidentiality.",
        "C": "❌ Availability is unrelated.",
        "D": "❌ Key escrow stores keys, not signatures."
      }
    },
    {
      "question": "5. Which encryption mode is vulnerable due to repeating IVs and predictable patterns?",
      "options": [
        "A. CBC",
        "B. ECB",
        "C. GCM",
        "D. CTR"
      ],
      "num_answers": 1,
      "answer": "B. ECB",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ ECB leaks patterns because identical plaintext blocks produce identical ciphertext blocks.",
        "A": "❌ CBC is secure with random IV.",
        "C": "❌ GCM provides integrity + confidentiality.",
        "D": "❌ CTR is secure when nonces are unique."
      }
    },
    {
      "question": "6. Which key size is recommended for RSA for strong long-term security?",
      "options": [
        "A. 512-bit",
        "B. 1024-bit",
        "C. 2048-bit",
        "D. 5120-bit"
      ],
      "num_answers": 1,
      "answer": "C. 2048-bit",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ 2048-bit RSA is the minimum recommended for modern systems.",
        "A": "❌ 512-bit is trivial to break.",
        "B": "❌ 1024-bit is considered weak.",
        "D": "❌ 5120-bit is secure but slow and unnecessary."
      }
    },
    {
      "question": "7. Which component issues and signs digital certificates?",
      "options": [
        "A. Root DNS server",
        "B. Certificate Authority (CA)",
        "C. RADIUS server",
        "D. Kerberos KDC"
      ],
      "num_answers": 1,
      "answer": "B. Certificate Authority (CA)",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ CAs validate identities and issue signed certificates.",
        "A": "❌ DNS root servers resolve domains.",
        "C": "❌ RADIUS is authentication AAA.",
        "D": "❌ KDC issues Kerberos tickets."
      }
    },
    {
      "question": "8. Which of the following is an attack on hashing algorithms?",
      "options": [
        "A. Cipher-block chaining attack",
        "B. Birthday attack",
        "C. Padding oracle attack",
        "D. Man-in-the-browser"
      ],
      "num_answers": 1,
      "answer": "B. Birthday attack",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Birthday attacks exploit hash collisions.",
        "A": "❌ Related to block cipher modes.",
        "C": "❌ Padding oracle affects CBC mode.",
        "D": "❌ MITB is a web attack."
      }
    },
    {
      "question": "9. What does HMAC add to hashing for improved security?",
      "options": [
        "A. A public key",
        "B. A private key",
        "C. A shared secret key",
        "D. A digital certificate"
      ],
      "num_answers": 1,
      "answer": "C. A shared secret key",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ HMAC uses a shared secret to authenticate the hash.",
        "A": "❌ Public keys are for asymmetric systems.",
        "B": "❌ Private keys are not shared.",
        "D": "❌ Certificates provide identity, not MAC."
      }
    },
    {
      "question": "10. Which is a symmetric encryption algorithm?",
      "options": [
        "A. RSA",
        "B. DSA",
        "C. AES",
        "D. ECC"
      ],
      "num_answers": 1,
      "answer": "C. AES",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ AES uses the same key for encrypt/decrypt.",
        "A": "❌ Asymmetric.",
        "B": "❌ Used for signatures.",
        "D": "❌ ECC is asymmetric."
      }
    },
    {
      "question": "11. Which cryptographic attack tries all possible keys?",
      "options": [
        "A. Frequency analysis",
        "B. Differential cryptanalysis",
        "C. Brute force attack",
        "D. Chosen plaintext attack"
      ],
      "num_answers": 1,
      "answer": "C. Brute force attack",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ Brute force tries every possible key until success.",
        "A": "❌ Frequency analysis is for classical ciphers.",
        "B": "❌ Differential cryptanalysis targets block ciphers.",
        "D": "❌ Chosen plaintext lets attacker choose data."
      }
    },
    {
      "question": "12. A digital certificate binds a public key to:",
      "options": [
        "A. A username",
        "B. An identity (person, device, or service)",
        "C. A Wi-Fi network",
        "D. A private key"
      ],
      "num_answers": 1,
      "answer": "B. An identity (person, device, or service)",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Certificates verify ownership of a public key.",
        "A": "❌ Usernames are one identity type, not all.",
        "C": "❌ Not Wi-Fi specific.",
        "D": "❌ Private keys are never inside public certificates."
      }
    },
    {
      "question": "13. What is the primary purpose of key stretching?",
      "options": [
        "A. Speed up hashing",
        "B. Slow down brute-force attacks",
        "C. Shorten key length",
        "D. Convert symmetric keys into asymmetric keys"
      ],
      "num_answers": 1,
      "answer": "B. Slow down brute-force attacks",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ PBKDF2, bcrypt, and scrypt slow hashing to resist brute force.",
        "A": "❌ Opposite: they slow it down intentionally.",
        "C": "❌ Not related to key length.",
        "D": "❌ Impossible transformation."
      }
    },
    {
      "question": "14. Which protocol uses digital certificates to establish secure HTTPS connections?",
      "options": [
        "A. SSL/TLS",
        "B. FTP",
        "C. DHCP",
        "D. NTP"
      ],
      "num_answers": 1,
      "answer": "A. SSL/TLS",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ HTTPS relies on SSL/TLS certificates.",
        "B": "❌ FTP is clear-text.",
        "C": "❌ DHCP handles IP allocation.",
        "D": "❌ NTP synchronizes clocks."
      }
    },
    {
      "question": "15. Which encryption method uses the same key for encryption and decryption?",
      "options": [
        "A. Symmetric encryption",
        "B. Asymmetric encryption",
        "C. Hashing",
        "D. Digital signing"
      ],
      "num_answers": 1,
      "answer": "A. Symmetric encryption",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Same key = symmetric.",
        "B": "❌ Different keys = asymmetric.",
        "C": "❌ Hashing is one-way.",
        "D": "❌ Signing verifies identity."
      }
    },
    {
      "question": "16. What attack targets the reuse of nonces or IVs in encryption?",
      "options": [
        "A. Replay attack",
        "B. Padding oracle attack",
        "C. IV reuse attack",
        "D. Rainbow table attack"
      ],
      "num_answers": 1,
      "answer": "C. IV reuse attack",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ Reusing IVs leaks data patterns.",
        "A": "❌ Replay captures packets.",
        "B": "❌ Padding oracle abuses CBC padding.",
        "D": "❌ Rainbow tables crack hashes."
      }
    },
    {
      "question": "17. Which key distribution method is used in asymmetric cryptography?",
      "options": [
        "A. Secure key escrow",
        "B. Public key distribution",
        "C. Pre-shared symmetric keys",
        "D. USB transfer only"
      ],
      "num_answers": 1,
      "answer": "B. Public key distribution",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Public keys can be freely shared in asymmetric systems.",
        "C": "❌ Pre-shared keys are symmetric.",
        "A": "❌ Key escrow stores keys, not distributes.",
        "D": "❌ USB is a method, not a cryptosystem."
      }
    },
    {
      "question": "18. Which algorithm is primarily used for digital signatures?",
      "options": [
        "A. AES",
        "B. RSA",
        "C. Blowfish",
        "D. ChaCha20"
      ],
      "num_answers": 1,
      "answer": "B. RSA",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ RSA supports encryption and signing.",
        "A": "❌ AES is symmetric only.",
        "C": "❌ Blowfish is symmetric.",
        "D": "❌ ChaCha20 is symmetric."
      }
    },
    {
      "question": "19. Which cryptographic attack exploits mathematically weak keys?",
      "options": [
        "A. Side-channel attack",
        "B. Man-in-the-middle",
        "C. Key factorization attack",
        "D. Session hijacking"
      ],
      "num_answers": 1,
      "answer": "C. Key factorization attack",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ Weak RSA keys can be factorized to recover private keys.",
        "A": "❌ Side-channel uses power/timing.",
        "B": "❌ MITM intercepts communication.",
        "D": "❌ Hijacking steals active sessions."
      }
    },
    {
      "question": "20. What is the main weakness of symmetric key systems?",
      "options": [
        "A. Slow performance",
        "B. Key distribution problem",
        "C. High CPU cost",
        "D. Weak mathematical structure"
      ],
      "num_answers": 1,
      "answer": "B. Key distribution problem",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Safe key-sharing is difficult with symmetric systems.",
        "A": "❌ Symmetric is fast.",
        "C": "❌ Symmetric is CPU-efficient.",
        "D": "❌ Symmetric structures are usually strong (AES)."
      }
    },
    {
      "question": "21. What does a certificate revocation list (CRL) contain?",
      "options": [
        "A. Expired certificates",
        "B. Compromised or revoked certificates",
        "C. Public keys of all users",
        "D. SSL session keys"
      ],
      "num_answers": 1,
      "answer": "B. Compromised or revoked certificates",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ CRLs track unusable certificates.",
        "A": "❌ Expired ≠ revoked.",
        "C": "❌ Public keys are in certificates, not CRLs.",
        "D": "❌ Session keys are never listed."
      }
    },
    {
      "question": "22. What is the output size of SHA-256?",
      "options": [
        "A. 128 bits",
        "B. 160 bits",
        "C. 256 bits",
        "D. 512 bits"
      ],
      "num_answers": 1,
      "answer": "C. 256 bits",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ SHA-256 produces 256-bit digests.",
        "A": "❌ 128-bit = MD5.",
        "B": "❌ 160-bit = SHA-1.",
        "D": "❌ 512-bit is SHA-512."
      }
    },
    {
      "question": "23. Which technique ensures confidentiality of data?",
      "options": [
        "A. Hashing",
        "B. Encryption",
        "C. Salting",
        "D. Tokenization"
      ],
      "num_answers": 1,
      "answer": "B. Encryption",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Encryption protects data from unauthorized access.",
        "A": "❌ Hashing is one-way and not reversible.",
        "C": "❌ Salting prevents hash attacks.",
        "D": "❌ Tokenization replaces values but doesn’t encrypt."
      }
    },
    {
      "question": "24. Which cryptographic key is kept secret and used to create digital signatures?",
      "options": [
        "A. Public key",
        "B. Private key",
        "C. Session key",
        "D. Shared key"
      ],
      "num_answers": 1,
      "answer": "B. Private key",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Private key is used to sign messages.",
        "A": "❌ Public key verifies signatures.",
        "C": "❌ Session keys are symmetric.",
        "D": "❌ Shared keys are symmetric."
      }
    },
    {
      "question": "25. Which attack aims to recover cryptographic keys by analyzing CPU timing, power usage, or EM radiation?",
      "options": [
        "A. Replay attack",
        "B. Side-channel attack",
        "C. Collision attack",
        "D. Chosen ciphertext attack"
      ],
      "num_answers": 1,
      "answer": "B. Side-channel attack",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Side-channel attacks extract keys from physical leakage.",
        "A": "❌ Replay resends captured packets.",
        "C": "❌ Collision is about hashes.",
        "D": "❌ CCA targets decryption oracles."
      }
    }
  ]
}
