🎓 BookMCQ
← Back to 15. Security

📝 Trojan horse in operating system security (15 MCQs)

Deceptive Programs That Conceal Malicious Functions

A Trojan horse is malicious software that disguises harmful functionality as a useful or legitimate program. In operating system security, it exploits user trust rather than requiring self-replication. Once executed, it may access files, capture credentials, alter settings, or download additional malware using the permissions available to its process.

Why Users Become the Entry Point

Operating systems generally execute applications according to user approval and assigned permissions. Attackers exploit this trust by presenting malicious software as a game, document viewer, update, or utility. Unlike a virus, a Trojan does not need to attach itself to another executable or reproduce by infecting files.

Installation, Execution and Hidden Activity

The user installs or launches the disguised application. Its visible function may operate normally while concealed code performs unauthorised actions. The process uses its current security context, so the damage depends on accessible resources and exploitable weaknesses. Security tools may detect suspicious behaviour, signatures, or unexpected network and file activity.

Example of a Fake Document Application

A program advertised as a free document converter requests permission to access a user's files. After conversion, it secretly uploads selected documents to an external server. Because the user launched it under an authorised account, ordinary file permissions may allow access unless additional controls restrict the application's activity.

Damage, Detection and Prevention Measures

Trojans can expose private information, install further malware, or provide remote control. Downloading software from trusted sources, checking digital signatures, limiting privileges, and monitoring unusual behaviour reduce exposure. Antivirus detection is helpful but cannot guarantee discovery of new or carefully concealed malicious programs.

Misconceptions About Trojan Horses

'A Trojan must replicate itself' is false because deception, not replication, defines it. 'A Trojan always looks suspicious' ignores its use of convincing interfaces. 'Removing the visible application guarantees all threats are gone' is incorrect because additional components or persistence mechanisms may remain.

Exam Focus: Trojan Behaviour Versus Other Malware

Identify the defining role of deception and distinguish Trojans from viruses and worms. In a scenario, determine how the user is persuaded to execute the program and which permissions it inherits. Explain preventive controls such as trusted downloads, code signing, least privilege, and behavioural monitoring.

Key Terms of Trojan Horse Security

  • Trojan horse - Malware disguised as legitimate software.
  • Payload - Harmful function performed by malware.
  • Social engineering - Manipulating people into unsafe actions.
  • Code signing - Verifying software publisher and integrity.
  • Least privilege - Granting only necessary permissions.
3
Easy
7
Medium
5
Hard

📝 All Trojan horse in operating system security MCQs

Q1. Which of the following best defines a Trojan horse in computer security?

A.A program that appears legitimate but contains hidden malicious functionality. ✅
B.A self-replicating program that spreads without user interaction.
C.A program that encrypts files and demands payment.
D.A network protocol that intercepts traffic.
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: A Trojan horse is a piece of software that disguises itself as a useful or harmless application while actually carrying malicious code. Option A captures this dual nature. Option B describes a worm, which spreads automatically. Option C describes ransomware, which encrypts data for extortion. Option D refers to a networking tool, not malware. Understanding the definition helps students recognize why users might be tricked into installing such software.

Q2. Why do Trojan horses rely heavily on user trust to be effective?

A.Because they need administrative privileges to install.
B.Because they masquerade as trusted software to persuade users to execute them. ✅
C.Because they exploit kernel vulnerabilities directly.
D.Because they require network access to propagate.
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: Trojan horses succeed by convincing users that the program is safe, often by mimicking popular applications or utilities. This reliance on trust makes option B correct. Option A is a possible outcome but not the primary reason for success. Option C describes a low‑level exploit, not typical of Trojans. Option D refers to worms that spread over a network. Recognizing the social engineering aspect is key to preventing Trojan infections.

Q3. How does a Trojan horse differ from a computer virus?

A.A Trojan never replicates itself, while a virus does. ✅
B.A Trojan infects only operating system kernels.
C.A Trojan always encrypts data, whereas a virus does not.
D.A Trojan requires no user interaction to spread.
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: The essential distinction is that a Trojan horse does not self‑replicate; it depends on a user to run the disguised program, whereas a virus can copy itself to other files or systems. Option A states this correctly. Option B confuses Trojan behavior with rootkits. Option C mixes ransomware traits with Trojan characteristics. Option D describes worms, which spread without user action. Knowing this difference helps students identify the appropriate defensive measures.

Q4. An employee receives an email with an attachment named \invoice.pdf.exe\. Which response most likely indicates detection of a Trojan horse?

A.Blocking the attachment because of the .exe extension.
B.Running the file in a sandbox to see its behavior.
C.Deleting the email without analysis.
D.Forwarding the file to the IT security team for further inspection. ✅
💡 Difficulty: medium | ✅ Correct: D

📖 Explanation: Forwarding the suspicious file to security experts allows proper analysis and containment, which is the best practice for potential Trojan detection. Option D is therefore correct. Option A would block it but may miss hidden payloads that could be disguised differently. Option B risks execution of malicious code. Option C discards evidence needed for forensic investigation. Proper escalation ensures the organization can mitigate the threat while preserving data for analysis.

Q5. Why can a Trojan horse facilitate privilege escalation on a target system?

A.It exploits a zero‑day kernel vulnerability. ✅
B.It installs a back‑door that runs with the user’s credentials.
C.It modifies system files to grant administrative rights.
D.It forces the system to reboot into safe mode.
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: A Trojan may contain code that exploits an unknown (zero‑day) vulnerability, allowing it to gain higher privileges than the user who launched it. Option A captures this escalation mechanism. Option B describes a back‑door but does not explain how higher privileges are obtained. Option C assumes direct file modification, which is not always feasible without existing privileges. Option D is unrelated to Trojan behavior. Recognizing escalation paths helps in designing layered defenses.

Q6. A company wants to reduce the risk of Trojans introduced via third‑party software. Which mitigation strategy is most effective?

A.Installing only free software from the internet.
B.Enforcing a strict software whitelisting policy. ✅
C.Disabling all network ports on employee computers.
D.Running all applications with administrator rights.
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Software whitelisting permits only pre‑approved applications to execute, preventing unknown Trojans from running. Hence option B is correct. Option A encourages use of unvetted software, increasing risk. Option C would hinder legitimate network functions. Option D gives malicious programs higher authority, worsening the problem. Implementing whitelisting aligns with the principle of least privilege and significantly lowers Trojan infection chances.

Q7. How does a back‑door created by a Trojan horse affect system security?

A.It encrypts user data for ransom.
B.It allows unauthorized remote access at any time. ✅
C.It deletes system logs to hide activity.
D.It slows down system performance noticeably.
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: A back‑door provides hidden entry points that attackers can use to access the system remotely, bypassing normal authentication. Option B correctly describes this impact. Option A is characteristic of ransomware, not a back‑door. Option C may be a side effect but is not the primary function. Option D describes performance degradation, which is not a defining feature of back‑doors. Understanding back‑doors helps students appreciate why detection and removal are critical.

Q8. A user downloads a free game from an unverified website and runs the installer. Which outcome is most likely if the installer contains a Trojan horse?

A.The game will run faster than expected.
B.The installer will display a warning and refuse to install.
C.The installer will silently copy sensitive files to an external server. ✅
D.The operating system will automatically delete the installer.
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: Trojan horses often operate silently, performing malicious actions such as exfiltrating files without alerting the user. Therefore option C is correct. Option A is unrelated to malicious behavior. Option B would require a security solution that is not guaranteed. Option D assumes built‑in OS protection that does not exist for all Trojans. Recognizing silent data theft helps users avoid risky downloads.

Q9. In what way does code signing help protect users from Trojan horses?

A.It encrypts the program’s source code.
B.It guarantees the program is free of any bugs.
C.It provides a cryptographic guarantee that the code has not been altered since signing. ✅
D.It prevents the program from accessing the internet.
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: Code signing uses digital signatures to assure users that the executable has not been tampered with after the signer applied their private key. This makes option C correct. Option A refers to encryption, not signing. Option B overstates the guarantee; signing does not assure bug‑free software. Option D is unrelated to signing. Understanding code signing helps students evaluate trustworthiness of software before execution.

Q10. During a forensic investigation of a suspected Trojan infection, which step should be performed first?

A.Delete all suspicious files to prevent further damage.
B.Capture a volatile memory image before powering down the system. ✅
C.Run an antivirus scan to clean the system immediately.
D.Interview the user about recent downloads.
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Capturing volatile memory preserves in‑memory artifacts such as hidden processes and encryption keys, which are crucial for analysis. Hence option B is correct. Option A destroys potential evidence. Option C may alter the system state before evidence collection. Option D provides context but not the primary forensic step. Proper evidence preservation enables accurate identification of the Trojan’s behavior and origin.

Q11. A security architect is designing a defense‑in‑depth strategy against Trojans that can also act as rootkits. Which layered control provides the most robust protection?

A.Deploying a host‑based intrusion detection system only.
B.Relying on network firewalls to block all inbound traffic.
C.Implementing application whitelisting, integrity monitoring, and privileged‑access management. ✅
D.Disabling USB ports on all workstations.
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: Combining application whitelisting (prevents unauthorized executables), integrity monitoring (detects hidden modifications), and privileged‑access management (limits escalation) creates multiple barriers that a Trojan‑rootkit must bypass. Option C therefore offers the strongest layered defense. Option A provides detection but not prevention. Option B does not stop Trojans launched from inside the network. Option D mitigates only removable media threats. Understanding layered controls is vital for protecting against sophisticated Trojans.

Q12. How do supply‑chain attacks amplify the threat posed by Trojan horses?

A.They deliver Trojans directly to end users without any intermediaries.
B.They embed malicious code into legitimate software updates distributed by trusted vendors. ✅
C.They rely solely on social engineering to trick users into installing Trojans.
D.They use hardware vulnerabilities to bypass operating‑system security.
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: Supply‑chain attacks compromise trusted software at the source, inserting Trojan code into official updates that many users download and install, making option B correct. Option A ignores the trusted‑vendor aspect. Option C focuses on social engineering, which is a separate vector. Option D describes hardware exploits, not typical supply‑chain Trojan insertion. Recognizing this amplification helps students appreciate the importance of vetting third‑party components.

Q13. A development team must assess the risk of using an open‑source library that may contain a hidden Trojan. Which risk‑assessment step is most appropriate?

A.Assume the library is safe because it is open source.
B.Check the library’s digital signature and review recent security advisories. ✅
C.Ignore the library’s size and focus only on its functionality.
D.Run the library on a production server to see if issues arise.
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: Verifying the library’s digital signature and consulting recent security advisories can reveal tampering or known Trojan insertions, making option B the correct risk‑assessment practice. Option A is unsafe assumptions. Option C disregards security considerations. Option D exposes the production environment to potential compromise. Proper assessment mitigates the chance of introducing a Trojan through third‑party code.

Q14. When deploying honeypots to attract Trojan horse attacks, which legal/ethical consideration is most critical?

A.Ensuring the honeypot does not consume excessive network bandwidth.
B.Obtaining consent from users whose traffic may be redirected to the honeypot. ✅
C.Guaranteeing that captured data will be shared publicly for transparency.
D.Allowing the honeypot to execute any discovered malware without restriction.
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: Deploying honeypots may intercept traffic from unsuspecting users; therefore obtaining appropriate consent or informing stakeholders is essential to comply with privacy laws and ethical standards, making option B correct. Option A concerns performance, not legality. Option C may violate privacy if data is shared without consent. Option D could cause uncontrolled spread of malware. Understanding legal and ethical boundaries ensures responsible security research.

Q15. A system administrator discovers that a Trojan horse has installed a hidden service listening on port 4444. Which immediate action should be taken to mitigate the threat?

A.Terminate the service and delete the associated executable files. ✅
B.Reboot the system to clear all running processes.
C.Disable the network interface permanently.
D.Install a new operating system without backing up data.
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: Stopping the malicious service and removing its executable eliminates the active foothold and prevents further exploitation, so option A is correct. Rebooting may allow the Trojan to restart if persistence mechanisms exist. Disabling the network interface is overly disruptive and does not address the root cause. Installing a new OS without backup risks data loss. Prompt removal of the hidden service is a key step in incident response.

🔗 Related Topics (MCQs)