Threatware is an umbrella term for anything meant to cause harm via a computer or similar device.
Types of threatware include:
Malware.
Ransomware.
Spyware.