Windows Guides Feed

294 Protect Yourself from Malware by Testing Programs in a Virtual Machine [How To]If you want to test a downloaded program but don’t want it destroying your data and sending your bank passwords to the other side of the world, you should probably test it in a safe environment that’s not connected to the rest of your home network. You can do this a number of ways; here are two suggestions:

  • Download the program on a spare computer that’s not connected to the rest of your home network.
  • Download the program in a virtual machine that’s isolated from your host machine.

If you don’t have a spare computer or want the convenience of testing without using a separate machine, you should use a virtual machine. In this guide, we’ll show you how to set up a virtual machine and how to isolate it from your home network so you can test software.

How to Set Up a Virtual Machine (VM)

To create a virtual machine, I recommend using Windows Virtual PC. Here’s some basic information on Windows Virtual PC and here are specific instructions for setting up a virtualized copy of Windows Vista (the same steps apply for creating a Virtual copy of Windows 7.)

How to Isolate Your VM from Your Home Network

Once your VM is up and running, you should isolate it’s connection to your local area network. To this in a Windows 7 VM:

  1. Click the network icon in the system tray and click Open Network and Sharing Center.

    test program vm Protect Yourself from Malware by Testing Programs in a Virtual Machine [How To]

  2. In the left-hand menu, click Change adapter settings.

    test program vm 1 Protect Yourself from Malware by Testing Programs in a Virtual Machine [How To]

  3. Right click each network connection and click Disable.

    test program vm 2 Protect Yourself from Malware by Testing Programs in a Virtual Machine [How To]

  4. Verify the connection is disabled:

    test program vm 3 Protect Yourself from Malware by Testing Programs in a Virtual Machine [How To]

  5. Now open Internet Explorer and verify you truly have no internet connection by attempting to browse to any webpage:

    test program vm 4 Protect Yourself from Malware by Testing Programs in a Virtual Machine [How To]

Optional: Install Anti-virus (AV) Software

You don’t have to do this, but I recommend you install AV software so you can understand a malicious program if you download one. An AV program will (hopefully) detect the file and give you more information on the threats it poses. Not sure which AV program to use? See this list: Top 5 Free Anti-malware Programs [2010 Edition].

Optional: Test Your AV Software

If you want to be sure your AV software is working, learn how to test it here: Test to See if Your Antivirus Software Works.

Install Programs and Test

Now comes the fun part: testing suspicious software to see what it does to your VM.

I chose this file: Suspicious Download.exe. How exciting:

test program vm 5 Protect Yourself from Malware by Testing Programs in a Virtual Machine [How To]

Lets see… a progress bar for starting the program… looks pretty legitimate to me:

test program vm 6 Protect Yourself from Malware by Testing Programs in a Virtual Machine [How To]

Oh #@!* this doesn’t look good. I guess I’ll go with Format Harddisk. Seems pretty harmless, I mean it could probably do with some cleanup anyway…

test program vm 7 Protect Yourself from Malware by Testing Programs in a Virtual Machine [How To]

While it cleans up my disk I check the definition of “format” with respect to a hard disk… #@!*!! Double #@!*!!! It erases everything?!?

test program vm 8 Protect Yourself from Malware by Testing Programs in a Virtual Machine [How To]

An… RSOD?? Erm.. this really can’t be good.

test program vm 9 Protect Yourself from Malware by Testing Programs in a Virtual Machine [How To]

BIOS you say… that seems important and now it’s corrupted…

test program vm 10 Protect Yourself from Malware by Testing Programs in a Virtual Machine [How To]

Luckily for me I used a Virtual Machine to test this out and luckily for me this program is a joke.

So, there you have it. A safe(r) way to test suspicious software without losing everything!



 Protect Yourself from Malware by Testing Programs in a Virtual Machine [How To]

About Rich

Rich is the owner and creator of Windows Guides; he spends his time breaking things on his PC so he can write how-to guides to fix the problems he creates.

Free PC tips by email

Search Windows Guides




Comments

  • kouman

    Very good, thank you.. No more e-mule trojans !!! :-)


Computer tips in your inbox
Sign up for the Windows Guides newsletter to get PC tips and access to free Windows books (More details)

Enter your email address:
 

Popular Guides

See which sites have been visited on your PC (even if private browsing mode is used)

Create a Windows 7 System Repair Disc

Best Free Anti-malware

Hibernate vs. Sleep vs. Shut-Down

i3, i5, and i7; Dual, Quad, Hexa Core Processors. How to they Differ?

Intel's Ivy Bridge Processor: new Features

Submit Your Tip
Submit your computer tip to us; receive full credit for all published tips

Windows Guides on Facebook