The firewall is the security measure designed to protect systems, while Trojan Horse, Worms, and Virus are all types of malicious software (malware) that attack systems. A firewall is a defensive security tool, not an attack mechanism like the others.