Home > Protecting Your USB, Smart Tip, Win XP > Protecting Your USB – 3 : Disabling autorun on your PC contd…

Protecting Your USB – 3 : Disabling autorun on your PC contd…

This is a continuation of my previous post. In that post, i discussed with you 3 methods to disable autorun.inf, here are 2 more methods to do the same…

Method 4 : This method is better than the other methods because it directly targets the source of the problem, the autorun.inf file. You can say that it directly deals with the disease rather than the symptoms. In fact, if you employ this solution, you can leave Autorun enabled and let it, perhaps, serve a useful function.

The method again deals with registry editing but it is simple. Just navigate to the location : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping\Autorun.inf  (If not found create Autorun.inf key)  and set its value to “@SYS:DoesNotExist”


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping\Autorun.inf]

You can also copy the above lines and save it as a.reg file. Then double click it to run it and merge it to the registry and you are done!!!!

Explaination : This hack tells Windows to treat AUTORUN.INF as if it were a configuration file from a pre-Windows 95 application … it says “whenever you have to handle a file called AUTORUN.INF, don’t use the values from the file. You’ll find alternative values at HKEY_LOCAL_MACHINE\SOFTWARE\DoesNotExist.” And since that key does not exist, it’s as if AUTORUN.INF is completely empty, and so nothing autoruns, and nothing is added to the Explorer double-click action. Result: worms cannot get in – unless you start double-clicking executables to see what they do … (i got this method from a site but dont remember the source so i cant give credit to the original author)

Method 5 : The next method is to use Panda USB Vaccine. This is just the automation of method 4 but with an added advantage, you see, USB Vaccine has 2 modes:

  1. Disable autorun in the computer (this is the regkey entry from method 4).
  2. Disable autorun.inf in individual USB sticks. ( this method is individual to individual USB drives)

What it does in mode 2 is create an autorun.inf file on individual USB sticks(process is called as vaccination). When a USB stick is vaccinated an unreadeable/unwriteable AUTORUN.INF file is created on the root of the USB drive so that malware may not modify it to run automatically. It supports FAT/FAT32 & NTFS. You can download it from here.

Portability Tip : The file you download from above is  an installer version but you can make it portable by installing it,  then copying the executable from it and then uninstalling it. The executable can then be used as a portable vaccine….good to carry around in your USB toolkit….huh ??

This concludes my disable autorun article…next time we take a look at making your USB’s write-protected…till then…Stay Sharp…

  1. me
    November 17, 2010 at 11:40 am


  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: