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) Certification. Master concepts with flashcards and multiple choice questions, each enriching your understanding. Ready yourself to succeed in your 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