A logic bomb is a piece of code that triggers a malicious program. They can execute viruses and worms at a certain specified date. It is a piece of malicious code intentionally inserted into a software that will set off a malicious function when specified conditions are met e.g. a programmer may hide a piece of code that starts deleting files, should they ever be terminated from the company.