Which virus type is shown in a sample code where execution occurs under a specific condition?

Prepare for the EC-Council Certified Ethical Hacker (CEH) Exam. Use flashcards and multiple-choice questions with hints and explanations. Enhance your cyber security knowledge and get ready for the exam!

Multiple Choice

Which virus type is shown in a sample code where execution occurs under a specific condition?

Explanation:
Execution under a specific condition is the key behavior this item tests. A logic bomb sits dormant until a defined trigger—like a certain date, a particular event, or a threshold being met—and then activates to carry out its payload. This conditional activation distinguishes it from other malware types: a worm propagates itself across networks, a Trojan horse hides inside legitimate software to mislead users, and a virus typically activates when the infected program runs and may try to spread to other files. Since the sample code executes only when the condition occurs, it aligns with how a logic bomb operates.

Execution under a specific condition is the key behavior this item tests. A logic bomb sits dormant until a defined trigger—like a certain date, a particular event, or a threshold being met—and then activates to carry out its payload. This conditional activation distinguishes it from other malware types: a worm propagates itself across networks, a Trojan horse hides inside legitimate software to mislead users, and a virus typically activates when the infected program runs and may try to spread to other files. Since the sample code executes only when the condition occurs, it aligns with how a logic bomb operates.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy