logic bomb

Code surreptitiously inserted into an application or operating system that causes it to perform some destructive or security-compromising activity whenever specified conditions are met.

Compare back door.

[Jargon File]