No, switches do not typically get viruses because they are not general-purpose computing devices like computers or smartphones. Switches are hardware devices that operate at the data link layer of the OSI model and their primary function is to forward network traffic based on MAC addresses, making. Now, let's address the main question: Can a CPU get a virus? The short answer is no, a CPU cannot get a virus in the classical sense. Here's why: CPUs don't execute code directly: CPUs execute instructions from the operating system and applications, but they don't directly execute code from. A computer virus is a type of malware that replicates itself by attaching to other programs or files on your computer. Viruses can be spread through email attachments, infected software downloads, and even infected websites. Once a virus has taken hold, it can cause a wide range of problems, from. Can an unmanaged switch get a virus? Hey so I've got an unmanaged Netgear GS108 of some variety and I'm trying to ensure my network is secure, the network is literally computer --> switch --> modem Is the switch a security risk virus wise if I'm concerned I got some viruses (just wiped some drives. Yes, CPUs can be affected by viruses. While CPUs—the brains of our computers—don't catch viruses, they can.