📝 Password security and protection in operating system (13 MCQs)
Safeguarding Account Passwords and Verifier Data
Password security combines user practices and operating system controls to prevent unauthorised account access. Secure systems store password verifiers rather than plaintext passwords, enforce suitable authentication policies, and protect login interfaces against automated abuse. Strong password handling also includes secure reset procedures, access monitoring, and limiting the privileges available after authentication.
Why Password Storage Must Resist Database Theft
If passwords are stored in readable form, a database breach immediately exposes account credentials. Fast general-purpose hashes also permit rapid offline guessing. Salted, deliberately expensive password derivation functions make guessing more costly and prevent identical passwords from sharing identical stored verifier values.
Salted Password Hashing and Login Controls
At enrolment, the system generates a unique salt and derives a verifier using a password hashing function such as Argon2id, scrypt, or PBKDF2. During login, it repeats the derivation and compares the result. Rate limits, MFA, secure recovery, and monitoring provide additional controls around this verification process.
Example of Protecting Two Identical Passwords
Two accounts independently choose the password WinterRiver2026. The password service generates different random salts and stores separate derived verifiers. Even though the original passwords match, their stored values differ. A database thief must still guess each password using its corresponding salt and derivation parameters.
Balancing Resistance, Availability and User Experience
Expensive password derivation slows attackers but also consumes server resources, so parameters must be chosen and reviewed appropriately. Password managers and long unique passphrases improve usability and reduce reuse. MFA, login throttling, secure recovery, and monitoring help defend against threats that password hashing alone cannot prevent.
Misconceptions About Password Protection
'A salt is a secret encryption key' is false because salts are normally stored openly with verifiers. 'A fast hash is best for password storage' ignores the value of deliberately expensive derivation. 'Password policies alone prevent account theft' overlooks phishing, endpoint malware, and stolen session tokens.
Exam Focus: Salt, Hashing and Authentication Controls
Explain password enrolment and verification using a unique salt and a password derivation function. Compare password hashing with reversible encryption. Questions may ask why salts differ between accounts or how MFA, login throttling, password managers, and secure recovery complement protected password storage.
Key Terms of Password Security
- Password verifier - Stored value used to check a password.
- Salt - Unique random input for password derivation.
- Argon2id - Memory-hard password hashing algorithm.
- Rate limiting - Restriction on authentication attempts.
- Passphrase - Longer sequence used as a password.
📝 All Password security and protection in operating system MCQs
Q1. What is the definition of a polymorphic virus?
📖 Explanation: A polymorphic virus alters its code appearance on each infection, creating a new signature while preserving its core functionality. This makes signature‑based antivirus tools ineffective. Option A describes an encrypted virus, not a polymorphic one. Option C refers to macro viruses, which target high‑level scripting environments. Option D describes a boot‑sector virus. In practice, attackers use polymorphic techniques to stay hidden across multiple attacks.
Q2. Why do encrypted viruses include decryption routines alongside encrypted payloads?
📖 Explanation: Encrypted viruses embed decryption code so the malicious payload remains unreadable until runtime, preventing static scanners from matching known byte patterns. This does not affect infection speed (B) nor does it directly target passwords (C) or firewalls (D). By disguising their code, they evade detection, illustrating why organizations must employ behavior‑based defenses alongside signature checks.
Q3. How does a stealth virus avoid detection when a protected file is read?
📖 Explanation: Stealth viruses intercept the read system call and supply the original clean data, so any inspection sees an unaltered file while the infected version remains hidden on disk. Overwriting with random data (A) would be obvious, encryption on each access (C) would degrade performance, and deletion (D) would cause data loss. This technique shows how attackers can hide malicious modifications from routine checks.
Q4. What is the primary distinction between macro viruses and source‑code viruses?
📖 Explanation: Macro viruses are created in languages like Visual Basic and propagate through macro‑enabled files such as spreadsheets. Source‑code viruses search for source files (e.g., .c, .java) and insert malicious code to spread when the program is compiled. Option A reverses the language levels, C mischaracterizes their targets, and D is unrelated to their propagation mechanism. Understanding these differences helps developers implement appropriate file‑type defenses.
Q5. Why does a boot‑sector virus replace the original boot block at system start‑up?
📖 Explanation: A boot‑sector virus overwrites the boot block so that when the BIOS loads the first sector, the malicious code executes before any legitimate OS components, granting the virus full system control. Enhancing speed (A) is not a motive, nor is immediate file deletion (C) or traffic encryption (D) typical of boot‑sector attacks. This early execution explains why protecting the boot sector is critical for system integrity.
Q6. A technician inserts a new removable read/write USB drive into a workstation. Which virus behavior is most likely to cause the drive to become infected immediately?
📖 Explanation: When a virus attaches to disk read‑write interrupts, it can monitor every disk operation and infect new removable media as soon as it is accessed, often by altering the boot sector. Simply copying the boot sector (C) may not happen instantly without interrupt monitoring. Encryption (B) is a payload action, not an infection mechanism. Changing its signature (D) does not cause spread. This scenario illustrates how interrupt‑hooking viruses propagate via removable media.
Q7. An organization relies solely on signature‑based antivirus software. Which type of virus is most likely to evade detection?
📖 Explanation: Polymorphic viruses continuously modify their code, producing new signatures that signature‑based tools cannot match, allowing them to slip past detection. Boot‑sector viruses (A) can be identified by known signatures, as can macro (C) and source‑code viruses (D) when their patterns are known. This highlights the limitation of signature‑only defenses and the need for heuristic or behavior‑based analysis to catch evolving threats.
Q8. If a system’s interrupt‑handler chain is compromised, which virus technique is most probably responsible?
📖 Explanation: Tunneling viruses embed themselves within the interrupt‑handler chain, hijacking hardware or software interrupts to execute malicious code covertly. Stealth viruses modify system calls to hide their presence (A), while encrypted viruses focus on obscuring payloads (C). Macro viruses (D) operate at the application level. When interrupts are altered, the system’s core response mechanisms are affected, demonstrating why protecting the interrupt chain is vital for system security.
Q9. A company wants to protect its computers from boot‑sector viruses. Which preventive measure offers the greatest protection?
📖 Explanation: Secure Boot verifies the integrity of the boot loader and firmware using cryptographic signatures, preventing unauthorized boot‑sector code from executing. Disabling USB ports (A) limits removable media but does not stop boot‑sector infection from other vectors. Updating macros (C) and encrypting user data (D) address different threats. Secure Boot directly addresses the boot‑sector attack vector, making it the most effective defense.
Q10. During a system audit, an analyst notices a sudden drop in available physical memory after boot. Which virus behavior does this observation most likely indicate?
📖 Explanation: When a virus hooks into disk read‑write interrupts, it often allocates additional memory for monitoring and processing disk activity, leading to a noticeable reduction in available RAM. Encrypting files (A) affects storage, not RAM. Copying the boot sector (B) uses disk space, not memory. Decreasing memory usage (D) is contradictory; viruses typically increase memory consumption. This scenario underscores how resource monitoring can reveal hidden malicious activity.
Q11. Explain how a polymorphic virus can alter its signature without changing its core functionality, and why this hampers detection. (Select the best description)
📖 Explanation: A polymorphic virus replaces dispensable instruction sequences (e.g., using different registers or nop padding) with functionally equivalent alternatives, thereby producing a new byte pattern while maintaining the same operational logic. This obfuscation defeats signature‑based scanners that rely on fixed byte sequences. Rewriting the entire code (A) would break functionality, hiding inside passwords (C) is unrelated, and self‑deletion (D) does not address signature changes. Understanding this technique helps security teams develop behavior‑based detection.
Q12. A forensic analyst discovers that a boot‑sector virus encrypts its payload and decrypts it only at runtime. Which investigative method is most likely to reveal the hidden code?
📖 Explanation: Live memory forensics (B) can capture the decrypted payload while it resides in RAM, allowing analysts to examine the active code. However, scanning for known signatures (C) is less effective because the payload is encrypted on disk. Network traffic analysis (A) and macro inspection (D) are unrelated to boot‑sector behavior. This illustrates why dynamic analysis is essential for uncovering encrypted, runtime‑only malware.
Q13. Compare stealth and tunneling viruses regarding detection difficulty and system impact. Which statement is most accurate?
📖 Explanation: Stealth viruses intercept read operations and serve uninfected data, concealing modifications and evading file‑based scanners. Tunneling viruses integrate into interrupt handlers, granting them deep, persistent control and making them hard to trace without low‑level analysis. Option A incorrectly claims stealth viruses are easier to detect. Option B misstates detection ease and impact. Option D confuses their targets. Recognizing these differences guides defenders in selecting appropriate detection tools and response strategies.