Malware is an overarching term to describe any software which seeks to inflict harm. A virus, on the other hand, is simply one type of malware.