Helping people with computers... one answer at a time.

USB Thumbdrives or flash drives are a non-obvious but easy way to spread malware. You should be quite careful when dealing with an unknown device.

One day I found a USB thumbdrive and I plugged into my computer. After that I couldn't do most of the stuff on my computer, I couldn't open Help and support center, run MSN, Yahoo messenger, other installed programs, system restore, Internet Explorer. Do I have malware or something of that sort?

Yes, I'll bet you do.

I wanted to address this question because it's not all that obvious to most people that plugging in an unknown USB device can be dangerous, to say the least.

And it's one of the reasons I almost always turn off "autoplay".

I vaguely remember an anecdote about a security test performed where USB thumbdrives were left outside around a corporation, as if they'd been mistakenly left behind somehow. Each was infected with some relatively benign malware that would alert some remote site that the drive had been picked up and inserted.

Something like over 50% of the thumbdrives were plugged in and their malware installed.

The lesson is clear: if you want to infiltrate a random corporation, put malware on a number of thumbdrives and drop them around the company's headquarters.

On the other hand, if you're that corporation, you want to make sure that at a minimum your employees are alert to the danger.

"Lesson: don't plug in thumbdrives ... that you're not certain of."

So what's happening here? What is that danger?

In a nutshell: autorun.

You've probably seen it: when you insert a CD-ROM, for example, quite often a program will run automatically. You'll typically see this in product setup CD-ROMs. Encoded on the CD-ROM are a couple of special files that say, in effect, "when the disk is inserted, run this program".

The same is true for USB thumbdrives. They, too, can have auto-run ability.

And to make matters worse, autorun can happen silently.

So it's very simple: a malware author simply creates a USB thumbdrive with malware, and sets it up to auto-run and install the malware silently when the thumbdrive is plugged in. You'd never know until you scanned for viruses or spyware or, as in your case, things stop working as they should.

Lesson: don't plug in thumbdrives (or any "removable media") that you're not certain of. Treat them just like downloads, if you can and at least scan them first.

So how do you scan them if you can't safely plug them in? Turn off auto-play. Once you've done that you can safely insert the device and examine its contents or run anti-malware scans.

Or you can just decide it's not worth the risk, and discard the drive. They're cheap these days, and a malware infestation can be pretty expensive.

Assuming you did decide to look, once you're satisfied that it's safe you can do whatever autoplay would have done by opening the file "autorun.inf" at the root of the drive in notepad and examining the "open=" line.

Most of the time that'll be a setup program, also at the root of the drive.

But as a rule of thumb (no pun intended), I disable auto-play on all my drives. Not only do I find auto-play often annoying, but as you can see there can be significant security risks if you're not careful.

Article C3319 - March 13, 2008 « »

Share this article with your friends:

Share this article on Facebook Tweet this article Email a link to this article
Leo Leo A. Notenboom has been playing with computers since he was required to take a programming class in 1976. An 18 year career as a programmer at Microsoft soon followed. After "retiring" in 2001, Leo started Ask Leo! in 2003 as a place for answers to common computer and technical questions. More about Leo.

Not what you needed?

18 Comments
Dan Warrener
March 14, 2008 6:33 PM

Hey Leo,

That autorun article is great. But could you make one on how to disable autorun in Windows Vista for the Vista users.

Thanks Leo and keep up the great work.

'Leo fan'
March 14, 2008 8:03 PM

Hi Leo,

Unfortunately this question didn't come early enough to put me on guard. What you're describing happened to me couple of weeks ago and gave me a Trojan Backdoor.win32.Rbot. Later I found the autorun file on my USB/Mp3. I'll try to disable autorun as you mentioned.

But CD-ROMS and DVDs are safe, aren't they? Malware can't launch from them... or am I mistaken?

Thanks

Carl R. Goodwin
March 14, 2008 8:34 PM

Why would ANYBODY put a USB thumbdrive anywhere NEAR their computer if they didn't know what was on it??? The scabs that write all these viruses LIVE for people like that!

Chris Buechler
March 15, 2008 11:26 AM

Thankfully Vista won't autorun anything without first prompting.

more info: http://www.worldstart.com/tips/tips.php/3732

Ken B
March 17, 2008 10:09 AM

To "Leo fan":

Of course malware can be launched from CDs and DVDs, if there is malware on the media.

Use your favorite search engine and look up "sony rootkit" for a rather infamous example.

tareq
July 13, 2008 12:04 PM

what is the future of pen drive

Scott Wright
September 21, 2008 8:34 PM

Great article, Leo. There are some good questions and responses here. I just wanted to add my two cents worth.

It turns out that many people (about 40%) will put an unknown device into their computer, just to see what's on it. I have the evidence, which I have summarized at my site, The Honey Stick Project, at http://www.honeystickproject.com. The site was inspired by the penetration test you mentioned above, and is intended to raise awareness about the risks of using mobile devices, in general.

The technique I use in the project can be useful for measuring the level of security awareness and safe computing habits in an organization. Please drop by and give me your comments.

One other note: As indicated in one of the related article links above, it is possible for a device to be configured to trick a system into bypassing autorun, depending on your system. I have some notes about this on my site, also.

Fascinating site, Scott. Thanks!
- Leo
22-Sep-2008
Kim
September 30, 2008 11:49 AM

Some public libraries check out thumbdrives to their patrons. Apparently they don't always check to make sure the drive has been wiped clean by the previous user.
In my case the leftover files were benign to me, but the previous user probably wouldn't be too happy to know his resume and rehab history were left on it for anyone to see!

Moral: make sure the flash drive has been wiped clean before you use it OR return it.

kuhan
October 19, 2008 6:32 PM

Sir actually i m doing one software. It must be run the program from thumb drive .
so i dontknw the autorun file.inf

realist
March 15, 2011 8:24 AM

At least Microsoft has finally partially recognised the problem. There's a fairly recent update that is supposed to disable autoplay for all drives except CDs and DVDs. Mine is disabled anyway, but that should be the default for ALL drives.

Robert
March 15, 2011 8:25 AM

One other possibility Leo. It could be that the flash drive is a U2 running a cut down version of the OS which is why some of the stuff he runs won't run; i.e., not malware.

Simon Clarke
March 15, 2011 10:17 AM

Panda Security do a free USB vaccination program which stops autorun on the computer and also prevents usbs from autorunning elsewhere.
http://research.pandasecurity.com/Panda-USB-and-AutoRun-Vaccine/

Alex Dow
March 15, 2011 11:50 AM

To view this problem another way, does anyone know of a way of automatically running various protection programs on Flash Drives etc, when such devices are plugged in?

Recently, a college lecturer kindly gave my grand-daughter a Flash Drive to help with her studies.

It wrecked her Laptop and course work.

I took a look at the Flash Drive, it had two Trojans on it, plus a lot of personal files belonging to the lecturer - nothing to do with the study course.

And the college has a major IT/Computing Department!

A protection system kicking in on auto-detect and running appropriate software, would apparently at least reduce such occurrences.

Snert
March 15, 2011 11:54 AM

I have an option where I can scan a thumbdrive with my malwere goodies before I open it.
Right click on it and try Properties.

duane
March 15, 2011 12:18 PM

Our local library's computers have only floppy drives. No USB. I wonder if this article's premise is the reason. I would think the floppy is just as vulnerable to malware transfer.

I suspect that's just the age of the computers, but there was never an "auto-run" applied to floppies, so they are inherrently someone safer.
Leo
16-Mar-2011

Mark J
March 15, 2011 12:28 PM

Before the Internet was available to the general public, the principal means of virus propagation was floppy disks. I think over half of the diskettes I checked contained viruses. Either the computers in your library are very old or they don't realize that diskettes can transfer viruses.

Mike
March 15, 2011 5:16 PM

Okay, I don't mean to flame here, but maybe that's what it is. What kind of people ask what happens if you push this red button marked Global Nuclear Destruction and then push it? Even 75 years ago, people laughed at The 3 Stooges for using a lit match to check the gasoline level in the tank.

Okay, I just read an item by Randy Cassingham about 4 idiots who heard a warning about the incoming tsunami and ran down to the beach to watch it! I'll be quiet now. No matter how smart you make the computer, it's still operated by a human being.

Joseph
March 15, 2011 5:50 PM

What about using a live CD on a computer without a hard drive, to look at a unknown flash drive? Could the computer still be infected?

As long as the Live CD is not running Windows (most do not) it's typically a safe way to examine possibly infected disks.
Leo
16-Mar-2011

Comments on this entry are closed.

If you have a question, start by using the search box up at the top of the page - there's a very good chance that your question has already been answered on Ask Leo!.

If you don't find your answer, head out to http://askleo.com/ask to ask your question.