{
  "Module 12: Sniffing & Email Security": [
    {
      "question": "1. What is the most effective way to protect against network sniffing?",
      "options": [
        "A. Using encryption protocols to secure network communications",
        "B. Installing antivirus software on all network devices",
        "C. Restricting physical access to server rooms",
        "D. Setting up a firewall to block all incoming traffic"
      ],
      "num_answers": 1,
      "answer": "A. Using encryption protocols to secure network communications",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Encryption (SSL/TLS, IPsec) protects data from being read even if intercepted.",
        "B": "❌ Antivirus does not prevent packet sniffing.",
        "C": "❌ Physical control helps, but sniffing occurs over the network.",
        "D": "❌ Firewalls reduce exposure but don’t encrypt data."
      }
    },
    {
      "question": "2. Sniffer operates at which OSI layer?",
      "options": ["A. Layer 1", "B. Layer 2", "C. Layer 6", "D. Layer 7"],
      "num_answers": 1,
      "answer": "B. Layer 2",
      "answer_keys": ["B"],
      "explanations": {
        "A": "❌ Physical layer deals with bits, not frames.",
        "B": "✅ Data Link layer (Layer 2) captures Ethernet frames.",
        "C": "❌ Layer 6 is Presentation layer.",
        "D": "❌ Layer 7 handles applications, not packet capture."
      }
    },
    {
      "question": "3. What is passive sniffing?",
      "options": ["A. Sniffing through switch", "B. Sniffing through hub", "C. Sniffing through firewall", "D. Sniffing through gateway"],
      "num_answers": 1,
      "answer": "B. Sniffing through hub",
      "answer_keys": ["B"],
      "explanations": {
        "A": "❌ Switches isolate traffic to ports.",
        "B": "✅ Hubs broadcast packets to all ports—ideal for passive sniffing.",
        "C": "❌ Firewalls do not mirror internal traffic.",
        "D": "❌ Gateways route traffic; not sniff-friendly."
      }
    },
    {
      "question": "4. What is active sniffing?",
      "options": ["A. Sniffing through switch", "B. Sniffing through hub", "C. Neither switch nor hub", "D. Both switch and hub"],
      "num_answers": 1,
      "answer": "A. Sniffing through switch",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Active sniffing uses ARP poisoning or MAC flooding to capture switched traffic.",
        "B": "❌ Passive sniffing occurs through hubs.",
        "C": "❌ Incorrect — sniffing depends on topology.",
        "D": "❌ Active sniffing targets switches."
      }
    },
    {
      "question": "5. What will be the result of the VRFY command of SMTP?",
      "options": [
        "A. Verifies the user's email address",
        "B. Deletes the user's email address",
        "C. Checks the status of the SMTP server",
        "D. Sends an email to the recipient"
      ],
      "num_answers": 1,
      "answer": "A. Verifies the user's email address",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ VRFY checks if a specific email ID exists on the server.",
        "B": "❌ It does not delete addresses.",
        "C": "❌ HELO/EHLO check server status.",
        "D": "❌ MAIL/RCPT commands send emails."
      }
    },
    {
      "question": "6. What will be the result of the EXPN command of SMTP?",
      "options": [
        "A. Expands the mailing list and returns a list of recipients",
        "B. Sends the email to the specified recipient",
        "C. Deletes the specified email from the queue",
        "D. Invalid command in SMTP"
      ],
      "num_answers": 1,
      "answer": "A. Expands the mailing list and returns a list of recipients",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ EXPN reveals all recipients in a mailing list.",
        "B": "❌ RCPT TO handles recipient delivery.",
        "C": "❌ SMTP lacks deletion commands.",
        "D": "❌ EXPN is valid but often disabled for security."
      }
    },
    {
      "question": "7. Which information can be gathered during SMTP enumeration?",
      "options": [
        "A. OS and software version of SMTP server",
        "B. Passwords for email accounts",
        "C. Encryption keys for communication",
        "D. Valid users and email addresses via VRFY/EXPN"
      ],
      "num_answers": 1,
      "answer": "D. Valid users and email addresses via VRFY/EXPN",
      "answer_keys": ["D"],
      "explanations": {
        "D": "✅ SMTP enumeration reveals valid accounts using VRFY/EXPN commands.",
        "A": "❌ Banner grabbing reveals version, not enumeration.",
        "B": "❌ SMTP does not disclose passwords.",
        "C": "❌ Encryption keys are never transmitted openly."
      }
    },
    {
      "question": "8. Which SMTP command verifies an email ID?",
      "options": ["A. VRFY", "B. MAIL", "C. RCPT", "D. DATA"],
      "num_answers": 1,
      "answer": "A. VRFY",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ VRFY checks if an email ID exists.",
        "B": "❌ MAIL initiates sending.",
        "C": "❌ RCPT specifies recipient.",
        "D": "❌ DATA contains message body."
      }
    },
    {
      "question": "9. Which command is used to transmit email over TLS?",
      "options": ["A. PROCESSTLS", "B. STARTTLS", "C. ENCRYPTTLS", "D. TLS"],
      "num_answers": 1,
      "answer": "B. STARTTLS",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ STARTTLS upgrades a plain-text connection to encrypted TLS.",
        "A": "❌ Not a valid SMTP command.",
        "C": "❌ Non-existent command.",
        "D": "❌ TLS alone is a protocol, not a command."
      }
    },
    {
      "question": "10. What does STARTTLS command do?",
      "options": ["A. Initiates an encrypted connection", "B. Sends an email", "C. Authenticates with the server", "D. Invalid command"],
      "num_answers": 1,
      "answer": "A. Initiates an encrypted connection",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ It transitions a plain SMTP session to a TLS-secured one.",
        "B": "❌ MAIL FROM/RCPT TO send emails.",
        "C": "❌ AUTH handles authentication.",
        "D": "❌ STARTTLS is a valid and secure command."
      }
    },
    {
      "question": "11. SMTP server that relays email without authentication is called:",
      "options": ["A. Closed mail relay", "B. Open mail relay", "C. Authenticated mail relay", "D. Secure mail relay"],
      "num_answers": 1,
      "answer": "B. Open mail relay",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Allows anyone to send emails; exploited for spam.",
        "A": "❌ Closed relay blocks unauthenticated use.",
        "C": "❌ Requires credentials.",
        "D": "❌ Not a standard SMTP type."
      }
    },
    {
      "question": "12. Which is true about open mail relay?",
      "options": [
        "A. It is secure",
        "B. Requires authentication",
        "C. Allows anyone to send without authentication",
        "D. Commonly used by organizations to prevent spam"
      ],
      "num_answers": 1,
      "answer": "C. Allows anyone to send without authentication",
      "answer_keys": ["C"],
      "explanations": {
        "A": "❌ Open relays are insecure and easily abused.",
        "B": "❌ They lack authentication control.",
        "C": "✅ Core trait of open mail relays.",
        "D": "❌ Opposite; they increase spam risk."
      }
    },
    {
      "question": "13. Employees received forged email from support@hda.org due to lack of gateway controls. This indicates failure to prevent:",
      "options": ["A. Email Encryption", "B. Email Spoofing", "C. Email Harvesting", "D. Email Phishing"],
      "num_answers": 1,
      "answer": "B. Email Spoofing",
      "answer_keys": ["B"],
      "explanations": {
        "A": "❌ Encryption would not stop sender impersonation.",
        "B": "✅ Spoofing fakes the sender’s identity.",
        "C": "❌ Harvesting collects email addresses.",
        "D": "❌ Phishing involves luring users, not necessarily spoofing."
      }
    },
    {
      "question": "14. Which best describes email spoofing?",
      "options": [
        "A. Fraudulent email tricking recipient into revealing data",
        "B. Collecting email addresses from public sources",
        "C. Forging email header so it appears from another source",
        "D. Impersonating legitimate users with fake accounts"
      ],
      "num_answers": 1,
      "answer": "C. Forging email header so it appears from another source",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ Spoofing alters sender headers for deception.",
        "A": "❌ Describes phishing, not spoofing.",
        "B": "❌ That’s harvesting.",
        "D": "❌ May involve impersonation but not header forgery."
      }
    },
    {
      "question": "15. Best way to protect network from sniffing:",
      "options": ["A. Encrypt traffic", "B. Implement 2FA", "C. Physical access control", "D. Use static IP"],
      "num_answers": 1,
      "answer": "A. Encrypt traffic",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Encryption prevents attackers from reading captured packets.",
        "B": "❌ 2FA secures logins, not data-in-transit.",
        "C": "❌ Helps partially but doesn’t encrypt traffic.",
        "D": "❌ Static IP doesn’t prevent sniffing."
      }
    },
    {
      "question": "16. VPN protocol that provides secure channel:",
      "options": ["A. IPSEC", "B. HTTP", "C. FTP", "D. PPP"],
      "num_answers": 1,
      "answer": "A. IPSEC",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ IPsec encrypts network layer communications.",
        "B": "❌ HTTP is unencrypted.",
        "C": "❌ FTP transmits credentials in clear text.",
        "D": "❌ PPP is link-layer protocol, not encryption."
      }
    },
    {
      "question": "17. OSI layer 3 protocol enabling end-to-end encryption:",
      "options": ["A. HTTP", "B. FTP", "C. SSL", "D. IPsec"],
      "num_answers": 1,
      "answer": "D. IPsec",
      "answer_keys": ["D"],
      "explanations": {
        "D": "✅ IPsec operates at the Network layer to secure packets end-to-end.",
        "A": "❌ Application layer protocol.",
        "B": "❌ Transport/application level, not encryption.",
        "C": "❌ SSL is layer 6–7."
      }
    },
    {
      "question": "18. Technology creating safe encrypted tunnel for work-from-home users:",
      "options": ["A. Firewall", "B. IDS", "C. VPN", "D. DMZ"],
      "num_answers": 1,
      "answer": "C. VPN",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ VPNs create encrypted tunnels over public networks.",
        "A": "❌ Firewalls filter; don’t tunnel.",
        "B": "❌ IDS detects attacks, not encrypts.",
        "D": "❌ DMZ is a network zone, not an encryption tool."
      }
    },
    {
      "question": "19. Policy defining VPN usage for remote access is called:",
      "options": ["A. Password policy", "B. Acceptable usage policy", "C. Data privacy policy", "D. Remote access policy"],
      "num_answers": 1,
      "answer": "D. Remote access policy",
      "answer_keys": ["D"],
      "explanations": {
        "D": "✅ Defines rules for VPN and external access.",
        "A": "❌ Covers passwords only.",
        "B": "❌ Broad behaviour rules, not specific to VPNs.",
        "C": "❌ Governs personal data, not access."
      }
    },
    {
      "question": "20. Tool that prevents/detects intrusion and functions as sniffer:",
      "options": ["A. Crypto analyzer", "B. Snort", "C. John the Ripper", "D. Cain and Abel"],
      "num_answers": 1,
      "answer": "B. Snort",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Snort acts as a packet sniffer and NIDS.",
        "A": "❌ Not a known tool.",
        "C": "❌ Password cracker.",
        "D": "❌ Cain & Abel performs sniffing but mainly for password recovery."
      }
    },
    {
      "question": "21. Primary function of Snort tool:",
      "options": ["A. Network encryption", "B. Password cracking", "C. Network intrusion detection", "D. Disk encryption"],
      "num_answers": 1,
      "answer": "C. Network intrusion detection",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ Snort detects suspicious packets in real time.",
        "A": "❌ It monitors; doesn’t encrypt.",
        "B": "❌ Not a password tool.",
        "D": "❌ Disk encryption tools include BitLocker/VeraCrypt."
      }
    }
  ]
}
