What is a logic bomb? The sabotage that waits to detonate (2026)

A logic bomb is dormant code that detonates on a trigger — a date, a payroll change, a name. How it works, real cases, and the controls that stop insider sabotage.

A logic bomb is malicious code planted inside a system that stays dormant until a specific trigger — a date, a missing name on a payroll list, a keystroke — sets it off. It is sabotage with a timer: nothing appears wrong until the condition is met, then programs are deleted, data destroyed or access handed over. This guide explains how logic bombs work, real cases that shaped the risk, and how a small business defends against a threat that hides inside its own trusted software.

TL;DR

What a logic bomb is

A logic bomb is not a piece of malware that infects a machine. It is a fragment of malicious logic hidden inside software that already has legitimate reasons to be there — an in-house application, a payroll script, an admin tool, even a commercial product's update mechanism. It sits inert until its trigger condition fires, then executes its payload: delete files, corrupt data, disable systems, or open a door for someone else.

Two features define the class:

How logic bombs get planted

Because a logic bomb must be written into a system, the planting almost always involves someone with legitimate access:

Famous logic bomb cases

Note the pattern: in every famous case, the bomb was caught by a human noticing an anomaly — a colleague reviewing scripts, a monitoring alert, an investigation — not by antivirus. That is the defence in miniature.

What a logic bomb costs a business

The direct damage is whatever the payload does: servers wiped, records destroyed, production halted, backups deleted as a second-stage sabotage. The indirect damage is trust: a logic bomb means an insider or a trusted vendor deliberately attacked the business from within its own trusted code.

The blast radius scales with privilege. A bomb planted by a database administrator can destroy the data the business runs on; one planted in a payroll script hits every employee's pay run. In Australia, the destruction of personal or health information can also trigger notification obligations under the Privacy Act — a data-breach exposure on top of the operational loss, and the same exposure any ransomware incident carries.

Logic bomb vs time bomb vs other malware

TriggerDeliveryWho plants itMain defence
Logic bombAny conditionPlanted in trusted codeInsiders, vendors, compromised updatesCode review, least privilege
Time bombA date or timeSame — plantedInsiders, compromised updatesChange detection, monitoring
WormNone — spreads automaticallySelf-spreads across networksNobody — self-replicatingPatching, segmentation
TrojanA user running itDisguised as useful softwareAttackers via a lureTrained staff

The distinction matters for the defence: worms and trojans are stopped by patching and training, but a logic bomb is stopped by process — controls over who can change code and when.

How to defend against logic bombs

  1. Least privilege with separation of duties. No single person should be able to write, approve and deploy changes to critical systems alone. Two-person review on payroll, finance and production systems.
  2. Change detection on critical code and scripts. Version-control everything, including admin scripts and cron jobs, so changes have an author and a review — and are visible when someone leaves.
  3. Strong offboarding. Revoke access the moment employment ends, and review recent changes by departing staff. Most famous logic bomb cases were planted on the way out.
  4. Monitor for dormant anomalies. Watch for scripts or scheduled tasks that reference dates, names or files unusual for their purpose. A task that checks "if my user account is deleted" is not a backup script.
  5. Audit vendor and contractor code before deployment, and keep update channels signed and verified.
  6. Keep tested, offline backups — the last line when sabotage destroys live data.
  7. Treat insider risk as a training topic. Staff who know how to report concerns about a colleague's behaviour, and managers who know what to escalate, are the human detection layer. Cyber Aware's human risk reporting gives managers a per-person view of who clicks, who reports and who might need attention — and a cyber security gap assessment shows where privilege, offboarding and change controls are missing.

Why this matters for Australian businesses

Logic bombs are rare in small business, but the conditions that create them are not: an outsourced developer, a single admin managing everything, no code review, offboarding handled by email. The Essential 8's restriction of administrative privileges and multi-factor authentication directly shrink the blast radius, and SMB1001 expects documented offboarding. A business that can evidence those controls removes both the opportunity and the temptation.

FAQ

What is a logic bomb in simple terms? Malicious code hidden inside a legitimate program that does nothing until a specific condition is met — then it destroys data or systems. It is sabotage on a timer.

How is a logic bomb different from a virus? A virus spreads itself between machines; a logic bomb does not spread at all. It is planted in one place, waits for its trigger and detonates there — usually placed by someone who already had legitimate access.

Who typically plants logic bombs? Disgruntled employees, departing IT staff and contractors, and attackers who compromise a vendor's update pipeline. The common factor is existing trusted access.

Can antivirus detect a logic bomb? Usually not, because it does not arrive as a malicious file and stays dormant. It is found by code review, change detection, access monitoring and people noticing anomalies.

What triggers a logic bomb? Anything programmable: a date, a file appearing or disappearing, a payroll record changing, an account being disabled. The trigger is chosen to maximise damage or delay detection.

How do I protect my business from insider sabotage? Least privilege, separation of duties, version-controlled changes with review, immediate access revocation at offboarding, and tested backups. Those controls make most logic bomb scenarios impossible to plant or harmless to survive.

One last thing

Do one check this week: list every scheduled task, cron job and script that runs automatically in your critical systems, and confirm you can name the person who created each and when it was last reviewed. Any entry with no owner and no review date is exactly where a logic bomb hides.

Related guides

Ready to deploy

Same playbook.
Your brand.

Cyber Aware's Human Risk Score works the same way for every MSP partner - under your brand, on your cadence.