The name and concept was derived from the story of the Trojan horse used to invade the city of Troy. A trojan masquerades as an ordinary program or utility that carries a hidden, more sinister function. This could be data theft, or a ransomware attack.