In general, the best way to protect your computer against virus attacks is through various security methods. These may include an Internet fire wall, a virus scanner and other tools screening incoming files for viruses. In the case of USB Flash Drives, you might want to consider running a virus scan on the contents of the drive before accessing any files.