A logic bomb is a type of Trojan Horse that executes when specific conditions occur. A trap door is a defect in the computer code that allows malicious actors to exploit the flaw and gain access to valuable information. Trojan Horse – traps and stores user login credentials, to send to malicious hackers who can use them to log in by impersonating the real and authorized user.
HENCE, both trap doors and bombs are a type of Trojan Horse.