A booby trap is a device or setup that is intended to kill, harm or surprise a person, unknowingly triggered by the presence or actions of the victim. As the word trap implies, they often have some form of bait designed to lure the victim towards it. However, in other cases the device is placed on busy roads or is triggered when the victim performs some type of everyday action e.g. opening a door, picking something up or switching something on. Booby traps should not be confused with mantraps which are designed to catch a person.
Lethal booby traps are often used in warfare, particularly guerrilla warfare, and traps designed to cause injury or pain are also sometimes used by criminals wanting to protect drugs or other illicit property, and by some owners of legal property who wish to protect it from theft.
More here: