Table of Contents
A logic bomb is malicious code that does something harmful when a predefined condition is met. It may be dormant before activation. A time bomb is one subtype with a date or time as its trigger. See the NIST definition.

How a logic bomb differs from a virus or worm
The term describes when harmful code activates. A virus or worm is defined in part by how it spreads. A logic bomb can be part of software, a script, or a larger piece of malware, so these categories can overlap.

Controls that help prevent and detect it
- Review changes independently: Require a second reviewer for production code, deployments, and changes to scheduled jobs. Keep a record of who approved what.
- Limit privileges: Give services access only to the files and systems they need. Review access when staff or vendors change roles.
- Watch for unexpected changes: Alert on unusual modifications to deployment workflows or production jobs and route them to someone who can investigate.
- Plan recovery: Keep backups separate from production access and test restoring them.

On a personal PC, use trusted software sources and keep your security tools current. For data you can’t replace, set up and test a backup. In an organization, report suspected malicious code to the incident-response team and preserve logs and change history for investigation.
Reader Comments 0
Sign in with email or Google to join the discussion.