Protect Your Computer Against Autorun Infections with USB Immunizer

USB flash drives are, undoubtedly, amazing tools that improve our portability and allow us to easily transfer files from one computer to another. With an ever-growing popularity, they are used by everyone and are becoming a preferred target for hackers and other cyber criminals to plant viruses and other harmful code.

But how exactly do these infections work, anyway? They take advantage of a feature implemented by Windows developers over time: Autorun. Even though this feature is somewhat handy, since it runs the media we insert in our computer automatically, these infections are placed alongside the autorun instructions so that whenever the device is autorun, those instructions will also be run, infecting the whole machine. Given that flash drives are meant to be portable and used in a lot of different computers, it is quite easy to understand how big of a problem these infections can be.

The key action: Prevention


Ok, it might seem obvious and common place, but prevention is the key here. Like you should always do online, be careful with the sites you visit and the files you download and place on your USB sticks. Also, be sure to have a protection system enabled on your computer, with an updated antivirus and, if possible, an enabled firewall.

Whenever you are in doubt if a file is safe, do scan a file with your antivirus software. In addition, you should periodically scan the entire flash drive for infections as another important safety measure.

Protecting Your Computer

So now, after the preventing part is done, your USB stick is clean. But what about all the other sticks other people put in your computer? Some antivirus programs do scan a USB stick as soon as it is plugged in, but some others (especially the free ones) do not, so even if you scan the drive after plugging it in, by that time the autorun programming has already been run and your computer is infected, which means that this way is not good enough.

Luckily, someone has this covered: let’s meet USB Immunizer, developed by BitDefender Labs.


USB Immunizer is a small piece of software that just silently sits on your taskbar and acts when needed, that is, when you plug in a USB stick. The program’s action is simply to stop the triggering of autorun of USB flash drives. It also has an action to “immunize” them.

But what does this “immunization” consist of? Usually, the autorun information is stored inside a file named autorun.inf, which is hidden. This file can contain harmless information such as the drive’s name or icon, but it can also be used to place a harmful piece of coding in order to spread viruses, malware and other infections. USB Imunnizer’s immunization process securely replaces the autorun.inf file by a clean one (also hidden) which, due to some technical tricks, Windows cannot mess with – it cannot be deleted or overwritten, unless the drive is formatted or accessed outside Windows. As it turns out, there can only be a single autorun.inf inside a drive, which means that there really is no way that Windows creates another autorun.inf file. Inside the software, immunization happens as the .gif below shows:


After immunization, autorun.inf, which is usually just a file, is now turned into a folder, just like the screenshot below illustrates (in order to see it, you have to set your system to visualize hidden files):


USB Immunizer comes with an option that, when enabled, automatically immunizes all the new USB flash drives plugged into your computer so that you do not have to do it every time “by hand.” The program is available in several different languages, but it cannot be changed whatsoever, even in the menu: instead, it sets its language according to the operating system’s Region and Language settings.

This is a free program working on all Windows versions, so be sure to take a look and improve your computer’s and USB drives’ security.

Diogo Costa Diogo Costa

Diogo (@diogocostaweb) is a Biologist with a grip on computers and technology. Running Windows systems all his life, has a big interest in discovering new apps that increase productivity or simply make things more interesting. He lives in Portugal and has photography and music as main hobbies. He is also the author of the page, a page for short (but useful) computer tweaks and tutorials.


  1. Since Autorun is a major vector for infection, how about just turning it off? Or is that too inconvenient?

    I understand that users want convenience, but there ain’t no such thing as a free lunch. Convenience comes at a price and that price is bloat and a false sense of security.

    Instead of developing good computing habits, users install application that they hope and pray will save them from their own folly. Windows is already bloated enough without adding more and more of terminate-and-stay-resident programs. Each additional program installed slows the PC down a little bit until it grinds to a halt, or is running as molasses in the middle of the winter.

    1. I see your point and, in a way, I’m on your side. But, in fact, this app is not only useful to “block” autorun, it also “heals” the USB drive as well. So, in that sense, it is useful.

    1. I believe this specific program is for Windows only. As far as I know, there are no Linux alternatives, sorry. But try a Google Search, you might get lucky.

      1. Unfortunately that is no longer true. Every computer is vulnerable to infection:

      2. Linux is free from virus ! WRONG , Any system the virus creatorer gets to now is at risk . The only way to stay virus free , is never use internet and never put anything into your pc … Don´t fall for the illousion that you are protected against virus

        1. Every OS will be always vulnerable to viruses, because these are just simple programs, and everyone is allowed to write programs for desktop OSes. But Linux is seen as “virus-free”, because, unlike most of Windows users who would click Yes in UAC window, even if it clearly says “Malware”, Linux users are usually people, who know how to analyze programs and limit their privileges, so it won’t be able to damage anything. Also, desktop Linux distributions doesn’t ship with amazing bugs, err, I meant features, such as Autorun, or milions of servers, waiting to get exploited by hackers. You have to install them yourself.

  2. Either I missed it or you failed to mention the $39.95 price of the USB Immunizer. I discovered the price only after downloading the application and executing it using a reused USB drive. The real problem was that the “autorun.inf” file written to the drive by USB Immunizer could not be deleted from the USB drive without reformatting.

    Good sales gimmick, but really ticked off a potential user.

    1. What? I don’t know what you have downloaded, but clearly it wasn’t USB Immunizer. Here is the link:

  3. Isn’t autorun already disallowed for USB devices in Windows 7? (and presumably Windows 8) Haven’t encountered any autorun infections since the XP days.

Comments are closed.