📝 Vulnerability assessment in Implementing Security Defenses (16 MCQs)
Identifying Weaknesses Before Attackers Exploit Them
Vulnerability assessment is a structured process for identifying, analysing, and prioritising weaknesses in operating systems, applications, network services, and configurations. It helps administrators understand where security controls are insufficient and which defects create the greatest risk. The assessment supports decisions about patching, configuration changes, access restrictions, monitoring, and other defensive improvements.
Why Security Defences Require Regular Evaluation
New software defects, outdated components, exposed services, and configuration changes continually alter system risk. A secure installation can become vulnerable after new applications or accounts are added. Regular assessment provides visibility into these changes, while prioritisation prevents administrators from treating every finding as equally urgent.
Asset Discovery, Scanning and Risk Prioritisation
Administrators identify assets and authorised assessment scope, then review configurations, software versions, exposed services, and known vulnerabilities. Automated scanners and manual checks collect findings. Each weakness is evaluated using factors such as severity, exploitability, exposure, and business impact before remediation or documented acceptance.
Example of an Outdated Server Service
An assessment identifies a server running a network service with a known critical vulnerability. The administrator confirms the affected version, checks whether the service is exposed, and reviews available updates. The service is patched and rescanned to verify that the finding is resolved or that compensating controls are in place.
Risk Reduction and Assessment Limitations
Assessments help prioritise patching and reduce attack surface, but scanners can produce false positives, miss unknown defects, or overlook business logic weaknesses. Findings require validation and context. Vulnerability assessment identifies weaknesses; it does not by itself prove that an attack occurred or replace penetration testing, monitoring, and incident response.
Misconceptions About Vulnerability Assessment
'A clean scan proves a system is secure' ignores unknown or unscanned weaknesses. 'Every scanner finding is exploitable' overlooks false positives and environmental conditions. 'Assessment is required only after an incident' is incorrect because proactive reviews help discover weaknesses before exploitation.
Exam Focus: Findings, Severity and Remediation
Explain the stages of asset discovery, scanning, validation, risk prioritisation, remediation, and verification. Distinguish vulnerability assessment from penetration testing and intrusion detection. Questions may provide severity and exposure details and ask which weakness should be addressed first or how a rescan confirms remediation.
Key Terms of Vulnerability Assessment
- Vulnerability - Weakness that may be exploited.
- Scanner - Tool identifying possible security weaknesses.
- Severity - Estimated seriousness of a finding.
- False positive - Finding incorrectly reported as vulnerable.
- Remediation - Action correcting or reducing a weakness.
📝 All Vulnerability assessment in Implementing Security Defenses MCQs
Q1. What utility does the Morris worm use to execute remote commands without a password?
📖 Explanation: The worm chose rsh because it permits remote command execution without prompting for a password when a .rhosts file lists trusted host‑login pairs. This bypasses authentication, letting the worm copy itself to another machine quickly. SSH, telnet, and FTP either require credentials or provide encrypted sessions, which would slow or block the worm’s propagation. Understanding this choice shows why disabling rsh or removing .rhosts files is a key mitigation step in real environments.
Q2. Which UNIX program had a buffer overflow vulnerability exploited by the Morris worm?
📖 Explanation: The Morris worm exploited a classic buffer overflow in the finger daemon. By sending an overlong string, the worm overwrote the function's return address, causing execution of malicious code. Sendmail, cron, and syslog were also targeted by the worm, but the specific overflow described occurred in finger. Recognizing finger as the vulnerable service helps security teams prioritize patching and monitoring of legacy daemons in actual networks.
Q3. Why did the Morris worm prefer using rsh over other remote execution methods?
📖 Explanation: Rsh was attractive because it allowed a user to execute commands on a remote host without entering a password, provided the remote host trusted the originating host via .rhosts entries. This eliminates the need for credential handling and speeds up automated propagation. Encryption, network scope, and privilege requirements are unrelated to the worm’s goal of rapid, unattended spread, making password‑less access the decisive factor.
Q4. How does a buffer overflow in a daemon like finger lead to arbitrary code execution?
📖 Explanation: When a daemon receives an input string larger than its allocated buffer, the excess data spills onto adjacent memory, typically overwriting the saved return address on the stack. Upon function return, execution jumps to the attacker‑supplied address, often pointing to injected shellcode. This mechanism does not modify file permissions or environment variables directly, and stack growth alone does not cause code execution. Modern defenses such as canaries and ASLR aim to disrupt this exploitation path.
Q5. What is the primary advantage for an attacker of placing host–login pairs in .rhosts files?
📖 Explanation: A .rhosts entry tells the rsh daemon to trust a specific remote host, allowing the attacker to run commands without password prompts. This bypasses the normal authentication step, enabling rapid, automated propagation of malicious code. The other options—bandwidth, traffic concealment, and CPU usage—are not directly affected by .rhosts entries. In practice, removing or disabling .rhosts is a straightforward way to eliminate this trust relationship.
Q6. How does the exploitation of sendmail differ from that of finger in terms of the attack vector?
📖 Explanation: The sendmail vulnerability involved crafting SMTP commands that triggered a buffer overflow or other memory corruption within the mail daemon. In contrast, the finger exploit relied on sending an overlong string as a query. Thus, the attack vectors differ: one manipulates the mail protocol, the other abuses a user‑information service. DNS spoofing and identical vectors are not part of the Morris worm’s methodology.
Q7. A system administrator discovers a .rhosts file containing entries for unknown hosts. Which immediate action should be taken to prevent worm‑like propagation?
📖 Explanation: Removing the .rhosts file eliminates the trust relationship that allows password‑less remote execution via rsh. Patching finger or restarting networking does not address the root cause, and disabling sendmail is unrelated to rsh authentication. By deleting the file, the administrator stops the worm from exploiting the host‑login pairs, directly mitigating the propagation risk.
Q8. If a network has disabled rsh and ssh is available, how would the Morris worm need to be modified to continue remote propagation?
📖 Explanation: To work over SSH, the worm would need to generate or use existing SSH keys to authenticate without manual password entry, mimicking the password‑less behavior of rsh. Simply switching to telnet reintroduces password prompts, and exploiting another daemon would be a different infection path. Declaring that propagation is impossible ignores the worm’s adaptability; adding SSH key handling is the logical modification.
Q9. During a vulnerability assessment, you find that the finger daemon accepts strings longer than 512 bytes. Which test would most effectively confirm a buffer overflow?
📖 Explanation: Sending a 600‑byte payload exceeds the documented 512‑byte limit, increasing the chance of overwriting adjacent memory and triggering a crash or unexpected behavior indicative of a buffer overflow. A shorter string stays within bounds, an exact‑size string may not overflow, and an empty string provides no stress. Successful overflow confirmation guides remediation steps such as patching or disabling the service.
Q10. An organization wants to assess risk of worm infection via sendmail. Which metric best quantifies the potential impact?
📖 Explanation: The Common Vulnerability Scoring System (CVSS) aggregates exploitability, impact, and severity into a numeric score, offering a standardized way to compare the seriousness of the sendmail flaw across environments. Open ports, patch timelines, and password strength are important but do not directly capture the intrinsic vulnerability severity. Using CVSS enables decision‑makers to prioritize remediation based on a quantifiable risk model.
Q11. A new worm attempts to use rsh but the target system has disabled .rhosts files. Which alternative technique could it employ to gain remote code execution?
📖 Explanation: If the trusted‑host mechanism is unavailable, the worm can look for other vulnerable services (e.g., an unpatched daemon) to achieve remote code execution. Brute‑forcing passwords or social engineering target human factors, while DNS tunneling hides traffic but does not directly provide execution. Exploiting another daemon aligns with the worm’s strategy of leveraging software flaws to spread.
Q12. You are tasked to simulate the Morris worm in a lab. Which combination of exploits must you implement to replicate its three infection methods?
📖 Explanation: The original worm used three distinct mechanisms: password‑less remote execution via rsh, a buffer‑overflow attack on finger, and a vulnerability in sendmail’s SMTP handling. Replicating these requires implementing each of those three exploits. The other option sets describe unrelated attack techniques and would not faithfully model the historical worm’s behavior.
Q13. Given a system where the finger daemon's buffer is 256 bytes, an attacker crafts a payload of bytes that overwrites the return address with the address of a NOP sled at . Explain why this payload may fail on modern systems despite correct size.
📖 Explanation: Modern operating systems employ multiple mitigations: ASLR randomizes memory addresses, making the hard‑coded return address unreliable; stack canaries place known values before return addresses to detect overwrites; and DEP marks stack pages as non‑executable, preventing shellcode execution. Even though the payload fits the buffer, any of these defenses can abort the exploit, illustrating why legacy attacks often fail today.
Q14. Why did the Morris worm's use of multiple infection vectors increase its overall success rate compared to a single‑vector worm?
📖 Explanation: Employing several independent methods—rsh, finger, and sendmail—provides redundancy: if one service is patched or disabled, the worm can still spread via another. This redundancy, rather than stealth or speed, is the primary factor that boosted its reach. While multiple vectors may complicate detection, the main advantage is ensuring continued propagation despite partial defenses.
Q15. How does the existence of .rhosts files illustrate the principle of trust relationships in network security?
📖 Explanation: .rhosts entries express trust at the host level: a remote machine listed there is automatically trusted to execute commands without further authentication. This demonstrates that security decisions can be based on the identity of the connecting host rather than on individual user credentials, encryption, or firewall policies. Understanding this helps administrators evaluate where implicit trust may be unsafe.
Q16. In what year was the Morris worm first released onto the Internet?
📖 Explanation: The Morris worm debuted in November 1988, marking one of the earliest widespread Internet worms. The other years listed correspond to later events or unrelated incidents. Knowing the historical timeline provides context for the evolution of vulnerability assessment practices and highlights how early exploits shaped modern security approaches.