This diagram shows two common means for malware infections. First, via download: link to malware via email, or attach malware to email. Second, packaging with other software: attach malware to illegal copies of popular software downloaded.