10 Practical Ways to Prevent USB-Borne Virus Infection

May 27, 2008 – 5:07 pm

Lets face it, USB thumb drives are marvelous tools for temporary data storage while computer viruses has long been a pain in the a*s. With gigabytes of data that can be stored inside USB removable thumbdrives, people are swapping files between computers like crazy nowadays. However, this way of file sharing makes it even easier for viruses to infect your computer.

I’ve seen an computer got infected by a virus just by plugging the USB thumb drive into Windows XP (with autoplay enabled) and the havoc it caused can be pretty scary. Some of the installed antivirus just failed to scan these kinds of viruses, which makes the matter much worse. Therefore, I’ve decided to compile 10 practical ways to prevent virus infection between computers and USB removable drives.



1- Disable autorun on all locally connected drives, including removable USB thumbdrives. Some of the USB-borne viruses use the normally hidden autorun.inf inside your USB drive to automatically invoke malicious instructions and infect your computer, each time the USB drive is connected to a computer.

Don’t know how to do this? My friend Madhur shows you how to disable the USB autorun feature manually or using Microsoft’s Tweak UI tool.


2- Install USB Firewall on your computer – this freeware blocks and deletes all virus and other malicious programs which try to get into your Windows system whenever an USB device is inserted.


USB Firewall HomepageDownload USB Firewall


3- If you plan to buy a new USB thumbdrive, get one that comes with a read-only switch . Therefore, if you want to transfer files to another computer, switch it to read-only mode to prevent viruses from infecting the USB drive.


4- If you have an old thumb drive without the read-only switch, you can still hack your Windows registry to prevent write access to any removable storage devices (Windows XP SP2 only!)


5- Install ClamWin Portable Antivirus into your thumb drive and keep it updated with the latest pattern. Next, make the USB drive read-only. If you want to copy a file from a public computer to the thumb drive, do scan critical areas inside that computer with this portable antivirus first. A slow method but it works!



6- Install USBVirusScan, a freeware that triggers your antivirus to scan a USB drive, each time it is inserted in your computer.


HomepageDownload USBVirusScanHow To Install USBVirusScan


7- Make sure you update your antivirus and scan through your computer and USB drive regularly. Never connect your USB drive to an untrusted computer with an outdated virus pattern.



8- Make sure your antivirus is set to automatically scan all locally connected drives , including your USB thumbdrive. Some antivirus like Kaspersky Internet Security has this option.



9- Disable access of USB drives if you don’t want to risk any virus infections. You can accomplish this with a Windows registry hack or using USB Drive Disabler application. Use an alternative data sharing method such as CD/DVD/FTP file transfer instead!



10- If you have extra bucks to spend, buy an antivirus for your thumb drive that has on-access protection like Avast U3 ($19.95 a year), DriveSentry Go Anywhere ($10 one off payment), USB Virus Chaser etc.


There you go, 10 doable ways to prevent your computer and USB drive from getting infected with computer viruses. If you have other ways to deal with this problem, share with the community by leaving a comment below.

Tags: , , , , , , ,


Related Posts:

  1. 21 Responses to “10 Practical Ways to Prevent USB-Borne Virus Infection”

  2. Nice tips Syahid ! But do you think there is a need to separately install a USB firewall?..I think the firewall present in the computer has that capability

    By Abhijeet from Jeet Blog on May 27, 2008

  3. @Jeet: This one specifically scans connected thumb drives only. It works like an application blocker, rather than like a firewall port blocker.

    By Syahid A. on May 27, 2008

  4. great list of tools mentioned buddy…i think u can also mention autorun eater , although its not a pendrive virus removal tool but it makes the pendrive safe in most of the cases even if they have virus files.

    By abhishek on May 27, 2008

  5. This is because a computer virus is able to duplicate and spread itself within a computer or computer network, However, you may not even know that your computer has a virus because it can usually hide itself really well within a program, file or document.

    By XPAntivirus on May 28, 2008

  6. Virus? Must wear condom lar, even on the usb.

    By Kitkat on May 28, 2008

  7. @KitKat: Does it come with read-only mode? :D

    By Syahid A. on May 28, 2008

  8. It can also be stopped by pressing shift key when they are inserted in USB.

    Shift key stops it from autorun thus stopping virus to run.

    Then you can use your antivirus to disinfect viruses.

    By shitu on May 28, 2008

  9. Thanks for the link love buddy.

    By Madhur Kapoor on May 29, 2008

  10. Thanks for the cool tips.

    By Steve Yu on May 29, 2008

  11. Also, I never use anyone else’s USB drive on my computer. If it can fit on a flash drive, then it can be uploaded or email too. Suggestion #1 is the most important!

    By Aseem Kishore on May 29, 2008

  12. Useful tips on USB, although I use USB drives, but I use only on two systems, both are protected.

    By Nirmal on May 29, 2008

  13. Awesome tips! You missed the obvious one though – Install Ubuntu or other form of Linux.

    Yeah, that pretty much takes care of that whole pesky virus issue.

    By Ghost|BOFH on Jun 3, 2008

  14. @Ghost: Heh, that is another good alternative. :D

    By Syahid A. on Jun 3, 2008

  15. yeah using USB drives has become a way of computing but lets face it and be secure.

    By FUKKAD on Jun 3, 2008

  16. does any one have an open source application to defend viruses ?

    By digitalpbk on Mar 19, 2009

  17. This little program may also be useful:
    ARIAD: http://blog.didierstevens.com/programs/ariad/
    It prevents inserted USB sticks from executing AUTORUN.INF

    By Harshal on Mar 26, 2009

  18. you can also use a free tool PenyuUSB to block and unblock usb using password. can download at http://www.penyuradius.com

    By aruna on May 4, 2010

  19. Kaspersky and Avast are both great antiviruses and anti-malware~-;

    By Liam Price on Oct 5, 2010

  20. Take a look at this one


    By Ashish on Mar 14, 2011

  1. 2 Trackback(s)

  2. Jun 17, 2008: How to Encrypt Your Email with GnuPG in Windows Part 1 - WinPT
  3. Jul 10, 2008: Don’t Let Thumb Drives Be an Achilles’ Heel - Network Sentry

Post a Comment