Logic bomb
Malicious code deliberately inserted into a program that stays dormant until a set condition is met, such as a date or an event, and then runs a harmful function.
A logic bomb is code intentionally inserted into a software system that sets off a malicious function when specified conditions are met, in the wording NIST SP 800-12 Rev. 1 and CNSSI 4009 share. The trigger might be a date, the removal of a named employee from the payroll, or a missed check-in. Until then it does nothing visible, so it can pass functional testing. One triggered by a date is sometimes called a time bomb. A logic bomb does not replicate, which separates it from a virus or worm, although either can carry one as its payload.
Logic bombs are commonly planted by people with legitimate access to source code or scheduled jobs, such as a developer expecting dismissal, which makes them an insider threat problem. The controls sit in the development and release process: code review by someone other than the author, separation of duties so the author cannot also move code into production unreviewed, change management, and integrity checks on production code. A maintenance hook is a different flaw: an entry point, not a delayed payload.
Exam relevance: a scenario in which systems fail on a particular date after a programmer leaves is likely to describe a logic bomb. Candidates are expected to point to independent review and separation of duties.