Logic Bomb
What is Logic Bomb?
Logic BombMalicious code that lies dormant inside a program and activates its payload only when a specific logical condition is met.
A logic bomb is code hidden inside an otherwise legitimate or trojanised program that stays inert until a precise trigger condition is satisfied — a date or time, the absence of an employee from a payroll file, deletion of a record, a hostname match, or a special command. Because nothing fires during normal functional or behavioural testing, logic bombs slip past pre-deployment QA, which makes them a classic insider-sabotage and supply-chain tool.
Two prosecuted cases illustrate the pattern. Roger Duronio, a UBS PaineWebber systems administrator, resigned on 22 February 2002 after a bonus dispute and left behind a bomb that detonated on 4 March 2002, deleting files across roughly 1,000 of the firm's ~1,500 servers; he had also bought put options betting UBS stock would fall. He was convicted in 2006 and sentenced to 97 months in prison plus US$3.1 million in restitution. Separately, contractor David Tinley planted logic bombs in spreadsheets he built for Siemens so they would malfunction periodically and he would be recalled to fix them; the scheme unravelled in 2016 when he had to hand over his password, and he pleaded guilty in 2019.
Defences include independent code review, separation of duties, file-integrity monitoring, behavioural EDR, and immediate access revocation for departing staff.
flowchart TD
I["Bomb planted in trusted code"] --> D["Dormant: passes functional testing"]
D --> R{"Trigger condition met? (date / record / hostname)"}
R -->|No| D
R -->|Yes| P["Payload fires: wipe, sabotage or exfiltrate"]● Examples
- 01
A disgruntled DBA scripting deletion of records once their account is disabled.
- 02
Supply-chain code that triggers only when a specific customer hostname is detected.
● Frequently asked questions
What is Logic Bomb?
Malicious code that lies dormant inside a program and activates its payload only when a specific logical condition is met. It belongs to the Malware category of cybersecurity.
What does Logic Bomb mean?
Malicious code that lies dormant inside a program and activates its payload only when a specific logical condition is met.
How do you defend against Logic Bomb?
Defences for Logic Bomb typically combine technical controls and operational practices, as detailed in the full definition above.
What are other names for Logic Bomb?
Common alternative names include: Slag code, Conditional payload.