Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How to prevent usb flash drive viruses?

24 Mar 2012   #1
M1GU31

Windows 10 64bit
 
 
How to prevent usb flash drive viruses?

I was wondering what I can do to prevent my usb flash drive from geting infected when i connect it to say school computers or a friends computer since I dont trust them as much. I searched a bit on google but would like to know what you guys do to prevent these malicious content from infecting your flash drive. Also what can I do to my pc to prevent it from getting infected from others flash drives? Just want some tips


My System SpecsSystem Spec
.
24 Mar 2012   #2
Golden
Microsoft MVP

Windows 7 Ult. x64
 
 

My System SpecsSystem Spec
24 Mar 2012   #3
M1GU31

Windows 10 64bit
 
 

thank you golden noticed that the aplication made a autorun file on the usb drive and I vaccinated the computer also. So with this my chances should be slimmer to catch infections? Will this application stop a infection from a flash drive that was not vaccinated, say a friends flash drive? Also noticed when I tried to vaccinate my flash drive that Avira stopped it so I had to disable it to vaccinate the flash drive.
My System SpecsSystem Spec
.

24 Mar 2012   #4
Golden
Microsoft MVP

Windows 7 Ult. x64
 
 

Hi,

In the case of a friends un-vaccinated flash drive, turn off the auto-run feature on your PC like this. This prevents anything on the USB from automatically running - then scan the USB with your anti-malware product before opening it in Explorer.

Regards,
Golden


Attached Thumbnails
How to prevent usb flash drive viruses?-capture.jpg  
My System SpecsSystem Spec
24 Mar 2012   #5
M1GU31

Windows 10 64bit
 
 

ok thank you for the information golden, feel a lot more safe now that i'm knowledgeable about this
My System SpecsSystem Spec
27 Apr 2013   #6
macgig

Mac OSX 10.6.8, Win 7 home premium sp1
 
 

so what prevents viruses from getting on the flash drive? does the program you mentioned stop it or does disabling auto run prevent it? or both?
My System SpecsSystem Spec
27 Apr 2013   #7
Alejandro85

Windows 7 Ultimate x64
 
 

The quick and dirty method I use is just to create a folder on the root of the USB drive called "autorun.inf", so if a virus tries to create it, will fail. If the drive is NTFS, deny full control on everyone for extra security.

The disabling of autorun on the Windows settings only prevents to run a virus on an infected drive on that computer, but it will NOT prevent the USB to get infected in the first place. It's a good security measure to take if you're going to use pendrives from presumably unsafe computers.
No idea about the "vaccination" or what it exactly does.
My System SpecsSystem Spec
27 Apr 2013   #8
macgig

Mac OSX 10.6.8, Win 7 home premium sp1
 
 

that program created a file called AUTORUN.INF (all caps) on the flash drive... so do I need to create a folder too?
My System SpecsSystem Spec
28 Apr 2013   #9
cottonball

Windows 7 Home Premium
 
 

Microsoft provides the following to disable AutoRun...

Download MicrosoftFixIt50471:
http://go.microsoft.com/?linkid=9741395
Save to the Desktop

Right-click the downloaded file, and select: Install
In the Open File - Security Warning, allow the file to run.

In the MicrosoftFixIt prompt, check: I Agree
In the next pompt, you are notified a Restore Point is created
When done, a prompt appears with: Microsoft FixIt has been processed.
Close the prompt, and agree to restart the computer.

The above disables AutoRun on all kinds of drives: removable, fixed, network, CD-ROM, and those of unknown type. It worked on a computer running Windows 7 Home Premium (32-bit). No Gpedit.msc option.

Now, to confirm Microsoft did its job...

Please download SystemLook from one of the links below:
64-bit system:
http://jpshortstuff.247Fixes.com/SystemLook_x64.exe
32-bit System:
http://jpshortstuff.247fixes.com/SystemLook.exe






Save the file to the Desktop
  • Double-click SystemLook.exe to run it.
  • Copy the content of the following code box into the open area:
Code:
:reg 
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer\
  • Click the Look button to start the scan.
  • When finished, a Notepad window opens with the results of the scan.
    Please post the SystemLook.txt in your reply.
If all goes well, you should get a similar report:

Quote:
SystemLook 30.07.11 by jpshortstuff

Log created at 20:30 on 28/04/2013 by Cottonball
Administrator - Elevation successful
========== reg ==========
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer\]
"NoDriveTypeAutoRun"= 0x00000000ff (255)

-= EOF =-
The entry "NoDriveTypeAutoRun"= 0x00000000ff (255) disables AutoRun on all kinds of drives.

To selectively disable specific drives, use a different value as described in...
How to selectively disable specific Autorun features:
How to disable the Autorun functionality in Windows


To enable AutoRun use MicrosoftFixIt50475:
http://go.microsoft.com/?linkid=9743275

Enabling AutoRun re-introduces a risk to the system.
However, this is the User's choice.
My System SpecsSystem Spec
Reply

 How to prevent usb flash drive viruses?




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Removable Flash Drive Recognized as a Local Disk and not a Flash Drive
I recently purchased a 32 GB San Disk Flash Drive. The security files pre-installed on the drive were junk, and I could not delete them so I formatted the drive to remove them. This cleaned the disk, and it holds data, but I'm not sure if this is part of my problem. I am trying to load my copy of...
Hardware & Devices
prevent copy my files into usb flash memory
hi guys i want a way or a program that can copy the files in a flash memory into my system but no one can copy the files of my system into the flash memory?
Hardware & Devices
how to prevent flash from crashing on IE
so recently started playing this new game on facebook: Farmville 2 thanks to my mother and it seems like everytime I am playing it flash will crash and I will have to restart IE in order to get it to start working again it seems to only happen while playing this game and I play a lot of other games...
Browsers & Mail
Is there a utility for windows 7 that will prevent a Flash
Is there a utility for windows 7 that will prevent a Flash reader from installing. Recently, just for kicks, when a site DEMANDED that I install Adobe Flash I clicked for it to go ahead and install it. Interestingly, the installation failed. With that curiosity in mind I have tried it repeatedly...
Software
Scan Your Thumb Drive for Viruses from the AutoPlay Dialog
Guys, its a nice trick for MSE users. Just follow the instructions given my MysticGeek from the How-To Geek blog. I tried and it works. Read more: Scan Your Thumb Drive for Viruses from the AutoPlay Dialog - How-To Geek
System Security
USB Flash full of viruses! What do I do?
Hello, So my friends laptop is infested with viruses so I'm gonna do a clean Windows 7 install to freshen it up. But he had some important stuff on it which he transferred to a USB flash drive. I know that USB is gonna be infested with viruses now. So how do I delete the viruses on the USB...
System Security


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 23:39.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App