When a computer virus attaches itself to another computer program, the virus is known as a ________.
Trojan horse
Trojan horse is correct.
A Trojan horse is malicious code that hides inside, or attaches itself to, an apparently legitimate program, so that the user runs it believing the program is safe. Once run, it can steal data, open a backdoor or damage files.
The legitimate program it rides on is only the carrier (host) for the malicious code, not the name of the threat itself, while 'backward program' and 'risky program' are not standard terms in computer security.