Malware can infect devices through various means. It is important to use an up-to-date antivirus program to scan for and remove any malware from devices in order to protect personal information and system performance. Regular scans and software updates help prevent and remove malware before it can cause harm.