Ralph Varjabedian
Coding is a systematic art

Stop the Virus Spread on USB Flash Disks

Sunday, May 04, 2008 4:10 PM

It is becoming very annoying sharing USB Flash Disks. Most viruses for Flash Disks copy themselves on the root of your drive and set their attributes to hidden and system and modify the autorun.inf to run itself every time the USB Drive is plugged in a computer. I got an idea the other day and so far it is working great. I opened my USB Flash Disk and added an empty file to it and saved it as autorun.inf. Then I modified its security attributes (access lists) to deny access to everybody. And then I set it to read only and hidden. By doing this, when I put my USB Drive into a computer that wants to infect my drive, the virus tries to open and modify the autorun.inf but it fails. Hope this helps.


Feedback

# re: Stop the Virus Spread on USB Flash Disks

Well I would say that new worms will now first delete autorun.inf as combofix does :) 10/16/2008 3:34 AM | Linky

# re: Stop the Virus Spread on USB Flash Disks

You will not be able to delete the file because you do not have access to it. The virus will need to change the access list on the file before being able to delete it... Anyway I will try combofix and see if it is able to delete the file. So far I haven't had any problems with this method, some virus do copy themselves on the USB drive, however they will not run and my antivirus deletes the virus files. Cheers. 10/16/2008 11:58 PM | Ralph Varjabedian

# re: Stop the Virus Spread on USB Flash Disks

Check out this link for more info on protecting ur pen drive from damaging ur comp..
http://13r4v0.blogspot.com/2008/07/contaning-spread-of-usb-viruses.html 10/28/2008 10:52 PM | ashraf raza

# re: Stop the Virus Spread on USB Flash Disks

this is how i avoid viruses getting into my usb http://lotvx.blogspot.com/2009/10/como-evitar-virus-en-usb-ii.html 3/1/2010 7:06 PM | lotvx

Post a comment





 

Please add 4 and 8 and type the answer here: