The Trojan horse malware is named after the Greek mythological Trojan Horse - malicious code hidden inside seemingly legitimate programs, just as Greek soldiers hid inside the wooden horse to infiltrate Troy. Chimera, Hercules, and Hydra are also mythological references but not the basis for the Trojan malware naming.