USB drives are often the potential carriers of the virus to the computer. In general, these are autorun viruses that run immediately when your device is connected to the computer. To prevent this kind of virus to act, you need a tool like Antirun.
Antirun other is a program to prevent the automatic opening of removable media connected to the computer. Now, your USB key or external hard drive cannot be opened without your authorization to block the execution of malicious programs that may be present.