🎓 BookMCQ
← Back to 15. Security

📝 Password vulnerabilities in operating system (18 MCQs)

Weaknesses in Password Based Account Protection

Password vulnerabilities are weaknesses that allow attackers to discover, steal, reuse, or bypass account passwords. Operating systems face risks from weak credentials, insecure storage, phishing, keylogging, offline hash cracking, and authentication misconfiguration. A compromised password can expose files, services, and administrative functions according to the permissions attached to the affected account.

How Password Handling Creates Attack Opportunities

Users often choose predictable passwords or reuse them across unrelated services. Systems may also expose credentials through insecure transmission, poor reset procedures, or improperly protected verifier databases. Attackers exploit these weaknesses through guessing, credential stuffing, phishing, and malware that captures input or session information.

Common Credential Attack Categories

Online guessing submits attempts against a live login service, while offline cracking tests guesses against stolen password hashes. Credential stuffing uses passwords leaked from other services. Phishing deceives users into revealing credentials, and keylogging records keystrokes. Rate limiting, salted password hashing, MFA, and secure channels address different parts of this threat landscape.

Example of Credential Reuse

A user reuses one password for an email account and a remote workstation. After the password is exposed in an unrelated website breach, an attacker tries it against the workstation. If the same credential is accepted, the attacker obtains access without exploiting a flaw in the operating system itself.

Account Takeover and Defensive Controls

Password weaknesses can lead to data theft, privilege misuse, and further compromise. Unique passwords, password managers, breached-password checks, MFA, login throttling, and secure recovery processes reduce these risks. No single measure eliminates phishing or endpoint compromise, so systems should monitor unusual login activity and limit the damage of stolen credentials.

Misconceptions About Password Vulnerabilities

'A long password cannot be stolen' ignores phishing and malware. 'A salted hash makes weak passwords impossible to crack' is false because attackers can still test guesses. 'Account lockout solves every guessing attack' overlooks distributed attempts and the possibility of deliberately locking out legitimate users.

Exam Focus: Identifying Credential Attack Methods

Distinguish online guessing, offline cracking, credential stuffing, phishing, and keylogging. Explain which security controls reduce each risk. Scenario questions may ask why password reuse is dangerous, how salts affect offline attacks, or why MFA and rate limiting provide complementary protection.

Key Terms of Password Vulnerabilities

  • Brute force - Repeated password guessing attempts.
  • Credential stuffing - Testing previously exposed passwords.
  • Phishing - Deception used to steal credentials.
  • Keylogger - Software or hardware capturing keystrokes.
  • Offline cracking - Guessing against stolen password hashes.
4
Easy
9
Medium
5
Hard

📝 All Password vulnerabilities in operating system MCQs

Q1. What is a polymorphic virus?

A.A virus that encrypts its code before execution
B.A virus that changes its code each time it infects a system ✅
C.A virus that hides by modifying system calls
D.A virus that spreads through macro scripts
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: A polymorphic virus alters its internal code on each infection, keeping its functionality while changing its signature. Option B correctly describes this behavior. Option A describes an encrypted virus, Option C a stealth virus, and Option D a macro virus. Recognizing the definition helps differentiate detection challenges, as polymorphic changes evade signature‑based scanners, which is essential for real‑world malware defenses.

Q2. Which type of virus includes decryption code to hide its payload?

A.Polymorphic virus
B.Encrypted virus ✅
C.Stealth virus
D.Tunneling virus
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: An encrypted virus carries decryption code that runs before the malicious payload, obscuring its contents from static analysis. Option B matches this definition. Polymorphic viruses change their code but do not necessarily encrypt it (Option A). Stealth viruses modify system behavior to conceal themselves (Option C). Tunneling viruses embed themselves in interrupt handlers (Option D). Understanding this helps select appropriate detection tools that can handle encrypted payloads.

Q3. Why does a boot‑sector virus replace the original boot block at system startup?

A.To increase available disk space
B.To ensure its code runs first ✅
C.To hide from the user
D.To improve system performance
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: A boot‑sector virus swaps the original boot block so that its code executes before the operating system, guaranteeing control over the boot process. Option B captures this purpose. Increasing disk space (Option A) is unrelated, as is hiding from the user (Option C) which is a secondary effect. Improving performance (Option D) is not a goal of malware. This behavior explains why protecting the boot sector is critical.

Q4. How does a stealth virus evade detection by modifying system calls?

A.It changes the read system call to return the original file content ✅
B.It encrypts its payload before execution
C.It installs itself in the interrupt‑handler chain
D.It replaces the boot sector with malicious code
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: A stealth virus can intercept the read system call and supply the uninfected version of a file, so scanners see a clean file while the infected version remains hidden. Option A describes this technique. Encrypting payloads (Option B) defines encrypted viruses, not stealth. Installing in interrupt handlers (Option C) describes tunneling viruses. Replacing the boot sector (Option D) is characteristic of boot‑sector viruses. This knowledge aids in designing detection that monitors system call integrity.

Q5. In what way does a tunneling virus increase its persistence on a system?

A.By installing itself in the interrupt‑handler chain ✅
B.By encrypting its code
C.By modifying macro scripts
D.By replacing the boot sector
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: A tunneling virus embeds its code in the interrupt‑handler chain, allowing it to survive reboots and evade many traditional scans. Option A correctly identifies this persistence method. Encryption (Option B) pertains to encrypted viruses, macro modification (Option C) to macro viruses, and boot‑sector replacement (Option D) to boot‑sector viruses. Recognizing the mechanism guides defenders to monitor low‑level system structures for unauthorized hooks.

Q6. What is the primary advantage for a virus to be written in a high‑level language like Visual Basic?

A.Faster execution speed
B.Easier to spread via document macros ✅
C.Lower detection probability
D.Ability to modify the boot sector directly
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: High‑level languages such as Visual Basic enable attackers to embed malicious code in documents that users routinely open, facilitating rapid distribution through macro execution. Option B captures this advantage. Faster execution (Option A) is more typical of low‑level languages. Lower detection (Option C) may be a side effect but is not the main benefit. Direct boot‑sector modification (Option D) generally requires low‑level code.

Q7. Explain how the logic bomb component of a boot virus can affect system stability beyond initial infection.

A.It triggers at a specific date causing a system crash ✅
B.It hides the original boot sector
C.It copies the boot sector to an unused location
D.It increases the visible memory limit
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: A logic bomb embedded in a boot virus is programmed to activate on a certain date or condition, often causing a crash, data loss, or other destructive actions, thereby destabilizing the system long after the initial infection. Option A describes this effect. Hiding the boot sector (Option B) is a stealth tactic, copying to an unused location (Option C) is for concealment, and increasing memory limits (Option D) relates to memory‑hiding techniques. Understanding this helps anticipate delayed attacks.

Q8. A user opens a spreadsheet that contains a macro virus. Which action triggers the infection?

A.Saving the file
B.Printing the file
C.Enabling macros ✅
D.Closing the file
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: Macro viruses are dormant until the host application is instructed to execute embedded macros. Enabling macros (Option C) activates the malicious code, causing infection. Simply saving (Option A) or printing (Option B) does not run the macros, and closing the file (Option D) ends the session without execution. This scenario illustrates why organizations disable macro execution by default to prevent such infections.

Q9. A system administrator notices a sudden decrease in physical memory after boot. Which virus behavior is the most likely cause?

A.Polymorphic code growth
B.Memory‑hiding above a new limit ✅
C.Boot‑sector replacement
D.Tunneling in device drivers
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Some boot viruses conceal their code by allocating memory beyond the reported limit, effectively hiding malicious routines from conventional monitoring tools. Option B reflects this memory‑hiding technique. Polymorphic code growth (Option A) changes signatures but does not necessarily reduce visible memory. Boot‑sector replacement (Option C) affects the boot process, not memory usage. Tunneling in drivers (Option D) targets interrupt handling, not RAM consumption.

Q10. If a virus copies the boot sector to an unused location X, what is the likely purpose?

A.To preserve the original boot for later restoration
B.To increase overall storage capacity
C.To hide malicious code away from casual inspection ✅
D.To speed up the boot process
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: Copying the boot sector to an unused area allows the virus to retain a hidden copy of its malicious code, making detection harder because the active boot sector appears normal while the payload resides elsewhere. Option C captures this intent. Preserving the original boot (Option A) is not typical for malware. Increasing storage (Option B) and speeding boot (Option D) are unrelated benefits.

Q11. An organization wants to prevent macro viruses. Which policy is most effective?

A.Disable macro execution in office applications ✅
B.Install only signature‑based antivirus software
C.Use encrypted hard drives for all data
D.Restrict USB device usage across the network
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Turning off macro execution in productivity suites blocks the primary vector for macro viruses, preventing the malicious code from ever running. Option A directly addresses the threat. Relying solely on signature antivirus (Option B) may miss new macros. Encrypted drives (Option C) protect data at rest but not execution. USB restrictions (Option D) mitigate removable media threats, not macro-based attacks.

Q12. A security analyst sees that a virus monitors disk activity and blocks writes to the boot sector. What type of virus is this?

A.Stealth virus
B.Boot‑sector virus ✅
C.Tunneling virus
D.Encrypted virus
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: A virus that specifically watches disk operations and prevents modifications to the boot sector is characteristic of a boot‑sector virus, which aims to protect its foothold on the system. Option B correctly identifies this. Stealth viruses focus on hiding code via system calls (Option A). Tunneling viruses embed themselves in interrupt handlers (Option C). Encrypted viruses hide payloads through encryption (Option D). Recognizing this behavior guides targeted remediation.

Q13. Given a scenario where a virus changes its code each infection but maintains functionality, which detection method would be least effective?

A.Heuristic analysis
B.Behavior monitoring
C.Signature‑based scanning ✅
D.Sandbox execution
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: Signature‑based scanning relies on matching known byte patterns; a virus that mutates its code each infection defeats this approach, making it the least effective method. Option C reflects this limitation. Heuristic analysis (Option A) looks for suspicious patterns, behavior monitoring (Option B) tracks actions, and sandbox execution (Option D) observes runtime behavior, all of which can still detect such malware despite code changes.

Q14. A forensic exam reveals a virus that modifies the read system call to return original file content. What mitigation technique can reveal the hidden code?

A.Disable all read system calls permanently
B.Use integrity‑checking tools that compare file hashes to known good values ✅
C.Reboot the system in safe mode only
D.Reinstall the operating system from scratch
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: Integrity‑checking utilities compute cryptographic hashes of files and compare them against trusted baselines, exposing discrepancies introduced by a stealth virus that returns clean data to normal reads. Option B is the appropriate technique. Disabling reads (Option A) would cripple the system. Safe‑mode boot (Option C) may bypass some malware but not reveal hidden modifications. Full OS reinstall (Option D) removes the virus but does not specifically uncover the altered system call behavior.

Q15. Design a multi‑layer defense strategy to protect against polymorphic, encrypted, and stealth viruses; which layer is most effective at detecting all three types?

A.Network firewall
B.Signature‑based antivirus updates
C.Heuristic/behavior monitoring ✅
D.Disk encryption
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: Heuristic or behavior‑monitoring solutions observe program actions rather than static code, allowing detection of polymorphic, encrypted, and stealth viruses despite their attempts to conceal signatures. Option C correctly identifies this layer. A network firewall (Option A) filters traffic but does not inspect local execution. Signature updates (Option B) fail against constantly changing code. Disk encryption (Option D) protects data at rest but not active malware.

Q16. A user reports that after plugging a new USB drive, the drive becomes infected. Which virus mechanism is most consistent with this behavior?

A.Macro virus
B.Boot‑sector virus ✅
C.Encrypted virus
D.Tunneling virus
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Boot‑sector viruses often spread via removable media by overwriting the boot sector of newly connected drives, causing the infection to propagate when the media is later used. Option B matches this mechanism. Macro viruses rely on document macros, not disk boot sectors. Encrypted viruses hide payloads but are not specific to USB propagation. Tunneling viruses target interrupt handlers, unrelated to removable media infection.

Q17. Compare and contrast encrypted and polymorphic viruses in terms of detection challenges for antivirus software.

A.Encrypted viruses hide code while polymorphic viruses hide their signature ✅
B.Both use the same technique to avoid detection
C.Encrypted viruses never change, polymorphic viruses constantly change
D.None of the above
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: Encrypted viruses conceal their payload by storing it in an encrypted form and decrypting it at runtime, while polymorphic viruses continuously modify their code to generate new signatures, both complicating detection. Option A accurately captures this distinction. Option B is incorrect because the techniques differ. Option C misstates that encrypted viruses are static; they can also change. Option D offers no useful information. Understanding these differences informs the selection of heuristic and behavior‑based defenses.

Q18. During a security audit, you find that the interrupt‑handler chain has been altered. Which virus class does this indicate and what is a recommended remediation step?

A.Macro virus; reinstall office suite
B.Tunneling virus; restore original interrupt vectors ✅
C.Stealth virus; update antivirus signatures
D.Polymorphic virus; run heuristic scan
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Alteration of the interrupt‑handler chain is a hallmark of tunneling viruses, which embed malicious code within low‑level system handlers to persist. Restoring the original interrupt vectors (Option B) corrects the tampering and removes the hidden payload. Macro viruses (Option A) affect document macros, not interrupt tables. Stealth viruses (Option C) modify system calls, and polymorphic viruses (Option D) change their code signatures but do not typically modify interrupt chains.

🔗 Related Topics (MCQs)