Malware
Software written to damage, spy on or take control of systems without the owner's consent.
Covers malicious software itself, classed by what it does. Networks of devices it has compromised are Botnets; the attacks in which it is used are Cyberattacks.