A logic bomb is a piece of code that gets embedded into a framework and contains a bunch of secret directions. At the point when a specific activity is completed, this triggers the code to play out a heinous act, similar to the deletion of documents.