Microsoft has reported an increase in malware while its own vulnerabilities have decreased.