Logic Bombs: Harmful Code Waiting for Its Trigger
When programs at Siemens developed unexplained problems, the company called the contractor who had designed them. According to the U.S. Department of Justice, that contractor had put the failures there himself: his code made the programs malfunction after a programmed date passed.
In July 2019, the department announced David Tinley's guilty plea to intentionally damaging a protected computer. Its account said he inserted logic bombs into programs he designed while contracting for Siemens during 2014–2016.
A logic bomb is code deliberately inserted to carry out a malicious action when a specified condition is met. The National Institute of Standards and Technology (NIST) defines the term around that combination: a programmed condition and harmful behavior. The code may already be installed while the event that activates it is still ahead.
A Virus, a Worm, or a Trojan? The Difference Matters
First the Condition, Then the Harm
The condition is the trigger. In the Siemens case, it involved a date. The action that followed was the intended program malfunction.
Other events can trigger a logic bomb too. In an invented example, a program might check whether a particular file is missing and deliberately disrupt its work if it is. To cause that harm, the code must run where it can check the condition and carry out the action.
The unwanted instructions may sit inside software that otherwise has a legitimate job. Finding them means examining what the program does when it reaches the check, including behavior that may not appear during ordinary use.
A Scheduled Task Can Be Entirely Legitimate
Programs check conditions constantly. A backup starts at a chosen time. An account expires on an agreed date. Both can be intended functions, even though each waits for a trigger.
A logic bomb differs because someone deliberately arranged the harmful behavior. A failure on a particular date is a clue to investigate, but a bug or an authorized expiry rule can also produce a date-related problem.
A code reviewer has to follow the condition through to the action it causes and compare that action with the program's approved purpose. The date alone cannot reveal whether the code belongs there.
The Siemens case is one example of an insider threat, in which a contractor misused trusted access. Investigators examining a suspected logic bomb also need to trace who or what could change the program and how the change reached the running system.
- Back up a laptop in minutes, with read speeds up to 1,000MB/s.
- Toss it in a bag without worry: no moving parts and drop protection up to two meters.
- Carry a second copy of your files wherever you go.
The Change Can Survive the Account
Disabling someone's account does not automatically undo code changes already installed. A program can later check its stored condition without the author signing in again. The software may still contain the harmful instructions after the person has lost access.
NIST's Secure Software Development Framework recommends protecting code against unauthorized access and tampering. It also calls for human review, automated analysis or both, chosen to suit the software and its risks. Those practices create chances to spot unexplained conditions or unauthorized changes, though they cannot guarantee that every logic bomb will be found.
The access restrictions cover the source code programmers edit, the executable code computers run, and the code that configures the software. Protecting the source files leaves a gap if someone can alter the installed program through another route.
Malicious Logic: The Invoice Adds Up, but the Money Goes Elsewhere

Insider Threats: When Trusted Access Can Cause Harm

System Integrity: Is the Computer Still Doing Its Intended Job?

QUOTE:
"Amateurs hack systems, professionals hack people."
