Non-replicating malicious code only resides on the target system or product that is attacked; it does not attempt to spread to other systems.
Antivirus software can help mitigate known malicious code.
Verify the integrity of the software that is being installed.