Logic bomb
WordNet
noun
(1) A delayed action computer virus; a set of instructions surreptitiously inserted into a program that are designed to execute (or `explode') if a particular condition is satisfied; when exploded it may delete or corrupt data, or print a spurious message, or have other harmful effects
"A disgruntled employee planted a logic bomb"