Ralph Varjabedian
Sharing .NET Code and ideas

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

No comments posted yet.


Post a comment





 

Please add 4 and 1 and type the answer here: