A logic bomb is a malicious payload embedded in malware that remains dormant until a specific condition or trigger is met, at which point it executes its destructive function. This delay allows the malware to propagate widely before the attack is detected.
Logic Bombs
There are times when we don't want to let our presence be known until a key moment, and so maybe we do something like a logic bomb. A logic bomb is something that goes off when certain parameters are met.
The thing is, we could create a malware that spreads like crazy and spreads all around, but if it triggers something right away, then what will happen is that somebody will notice it, create a solution to get rid of it, and then our attack is done. So maybe what we want to do is stall things a little bit. We want to stall while this virus or malware, or let's say it's a worm, while this worm has a chance to propagate all around, so that way it gets all over before we launch our attack, before, in this case, the bomb goes off.
So we have some sort of malware that we incorporate a logic bomb into. Well, what is a logic bomb? The bomb is the part where it goes off and then triggers something, and maybe this is going to delete a bunch of data. The logic part of this is that there is a trigger. So it's inserted into our malware, and it is activated when a specific condition is met.
The condition might be that it's time bound, and on this date at this time, that's when it starts deleting files, after it gets this chance to propagate. But it could be other triggers. For instance, it could reach out and just check a website to say, hey, is it time yet? Hey, is it time yet? Hey, is it time yet? And then that website would say, yes, it's time, thumbs up, go. At that point in time, then it launches and does its thing. So it executes then that malicious function that it has.
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →