{
  "Module 11: Pen Testing Types, ROE & OSINT": [
    {
      "question": "1. In a grey box penetration test:",
      "options": [
        "A. Testers have partial knowledge/access",
        "B. Testers have full knowledge/access",
        "C. Testers have no prior knowledge/access",
        "D. No qualifications are required"
      ],
      "num_answers": 1,
      "answer": "A. Testers have partial knowledge/access",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Grey box testing provides testers limited insight, simulating insider threats.",
        "B": "❌ Full access corresponds to white box testing.",
        "C": "❌ No prior knowledge represents black box testing.",
        "D": "❌ Qualifications are unrelated to testing scope."
      }
    },
    {
      "question": "2. You hire a tester and give partial environment details. You want:",
      "options": ["A. White box testing", "B. Grey box testing", "C. Black box testing", "D. Sandwich testing"],
      "num_answers": 1,
      "answer": "B. Grey box testing",
      "answer_keys": ["B"],
      "explanations": {
        "A": "❌ White box provides complete system details.",
        "B": "✅ Grey box simulates partial insider awareness.",
        "C": "❌ Black box assumes zero internal knowledge.",
        "D": "❌ Sandwich testing is not a recognized pentesting type."
      }
    },
    {
      "question": "3. In a white box penetration test:",
      "options": [
        "A. Partial knowledge/access",
        "B. Full knowledge/access",
        "C. No prior knowledge/access",
        "D. No qualifications required"
      ],
      "num_answers": 1,
      "answer": "B. Full knowledge/access",
      "answer_keys": ["B"],
      "explanations": {
        "A": "❌ Partial access defines grey box.",
        "B": "✅ White box testing provides source code, architecture, and credentials.",
        "C": "❌ No knowledge defines black box.",
        "D": "❌ Knowledge, not qualifications, defines box type."
      }
    },
    {
      "question": "4. What is the Rules of Engagement (ROE) in a penetration testing contract?",
      "options": [
        "A. Lists off-limit vulnerability types",
        "B. Outlines penalties if vulnerabilities not fixed in time",
        "C. Describes testing details/conditions and clauses protecting both parties",
        "D. Penalties if project isn’t completed in time"
      ],
      "num_answers": 1,
      "answer": "C. Describes testing details/conditions and clauses protecting both parties",
      "answer_keys": ["C"],
      "explanations": {
        "A": "❌ ROE includes more than just excluded vulnerabilities.",
        "B": "❌ Penalties are handled in contracts, not ROE.",
        "C": "✅ ROE defines test scope, timing, limitations, and legal boundaries.",
        "D": "❌ Timelines belong to project management documents."
      }
    },
    {
      "question": "5. Primary objective of establishing the ROE for a penetration testing service:",
      "options": [
        "A. Ensure tester can access all systems and applications",
        "B. Establish payment terms and fees",
        "C. Guarantee all vulnerabilities will be identified",
        "D. Protect the organization's interests and the tester's liability"
      ],
      "num_answers": 1,
      "answer": "D. Protect the organization's interests and the tester's liability",
      "answer_keys": ["D"],
      "explanations": {
        "A": "❌ ROE defines authorized systems but not unlimited access.",
        "B": "❌ Payment terms belong to contracts, not ROE.",
        "C": "❌ No pentest can guarantee 100% vulnerability discovery.",
        "D": "✅ ROE protects both the tester and client legally and operationally."
      }
    },
    {
      "question": "6. What is the OSINT framework?",
      "options": [
        "A. Tools for private data",
        "B. Tools for publicly available information",
        "C. Tools to hack closed systems",
        "D. Tools to monitor employees"
      ],
      "num_answers": 1,
      "answer": "B. Tools for publicly available information",
      "answer_keys": ["B"],
      "explanations": {
        "A": "❌ OSINT does not use private or confidential data.",
        "B": "✅ OSINT (Open Source Intelligence) collects and correlates public data.",
        "C": "❌ Hacking closed systems violates ethical guidelines.",
        "D": "❌ OSINT is not employee surveillance."
      }
    },
    {
      "question": "7. Danny, a black hat hacker, identifies HDA Inc. as his next target and begins gathering details about its domains and staff online. Which phase is he performing?",
      "options": ["A. Clearing tracks", "B. Gaining access", "C. Reconnaissance", "D. Enumeration"],
      "num_answers": 1,
      "answer": "C. Reconnaissance",
      "answer_keys": ["C"],
      "explanations": {
        "A": "❌ Clearing tracks occurs after exploitation.",
        "B": "❌ Gaining access follows reconnaissance.",
        "C": "✅ Reconnaissance collects target information to plan attacks.",
        "D": "❌ Enumeration is active probing; recon is passive."
      }
    },
    {
      "question": "8. Identify the CWE issue: 'No CAPTCHA on password reset form allows automated brute-force attempts.'",
      "options": [
        "A. Weak password recovery mechanism",
        "B. Remote code execution",
        "C. Man-in-the-middle vulnerability",
        "D. Buffer overflow"
      ],
      "num_answers": 1,
      "answer": "A. Weak password recovery mechanism",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ CWE 640: weak password recovery process allows brute force attacks.",
        "B": "❌ Remote code execution concerns arbitrary command execution.",
        "C": "❌ MITM relates to traffic interception, not reset flaws.",
        "D": "❌ Buffer overflow is unrelated to authentication logic."
      }
    },
    {
      "question": "9. Danny gains control of a limited user account but downloads files restricted to managers. What attack type did he perform?",
      "options": [
        "A. Man-in-the-middle attack",
        "B. Privilege escalation",
        "C. Tailgating",
        "D. Dumpster diving"
      ],
      "num_answers": 1,
      "answer": "B. Privilege escalation",
      "answer_keys": ["B"],
      "explanations": {
        "A": "❌ MITM intercepts traffic, not escalate permissions.",
        "B": "✅ Privilege escalation elevates user rights for unauthorized actions.",
        "C": "❌ Tailgating involves physical entry.",
        "D": "❌ Dumpster diving recovers discarded information."
      }
    },
    {
      "question": "10. Which term describes gaining higher-level access after initially obtaining limited privileges?",
      "options": [
        "A. Port scanning",
        "B. Social engineering",
        "C. Cross-site scripting",
        "D. Privilege escalation"
      ],
      "num_answers": 1,
      "answer": "D. Privilege escalation",
      "answer_keys": ["D"],
      "explanations": {
        "A": "❌ Port scanning identifies services, not access levels.",
        "B": "❌ Social engineering manipulates people, not privileges.",
        "C": "❌ XSS exploits browsers, not OS privilege levels.",
        "D": "✅ Privilege escalation raises account authority within the target."
      }
    }
  ]
}
