Concept:A firewall is a security program that safeguards a computer by filtering network traffic.
Explanation:Malicious programs are blocked before they can harm the system.
A firewall checks all incoming and outgoing data against safety rules.
It allows trusted data and blocks suspicious data.
Spyware is itself a harmful program, while malware means malicious software.
A passcode only restricts user access, not harmful programs.
Hence, a firewall is the tool designed to detect and prevent malicious programs.
Answer:D. firewall