My answer is both. Malware analysis through a virtual machine is definitely easier than infecting an actual computer. The problem, though, is that this year a new strain of malware has been coming out that has built-in virtual machine detection. That means if it detects a virtual machine, it won’t do anything. Now if you want to analyze this particular malware you need to infect a live computer.
This blog entry is intended to give you some tips for using a live (non-VM) computer for malware analysis. If anyone has any suggestions for other programs, please let me know.
First and foremost, use a spare computer. Do not do malware analysis on your home or work computer. Instead find an unused laptop or PC and follow these steps on that instead. Install the operating system you want to use along with any tools that you will need for analysis. When done we will use an imaging tool to create an image of your freshly prepared computer so that when we are done analyzing a malware we can quickly revert it back to its clean state. Below are some options that you can use to image your drive:
- Download the free Microsoft Virtual PC and use it to install Ubuntu on a virtual machine with at least a 10GB hard drive. This should be done on your normal computer and will be used to store the image of your laptop. Ubuntu comes with a program called partimage that listens on your network. Once you have that setup and listening, you can download SystemRescueCD and boot your new malware analysis computer from it. Once the CD has loaded, you can run partimage to save your hard drive’s image to the virtual PC running the listening partimaged. Now you have a saved image of your hard drive on a virtual PC that you can restore from at will. This is the method I use for drive imaging, but if Linux and this suggestion sounds like gibberish, then try these other options.
- Use g4u to backup and restore drive images via FTP. This is linux based, but its a bit easier as it has prepared boot disks and saves directly to an FTP account so you do not need to set up a server like above.
- Use a commercial drive image program like Norton Ghost. It is not free and costs around 70 USD. Who said hobbies are cheap though? This does not allow network backups, unless you have the corporate edition, of your image, but does allow you to save your images to recordable media or external hard drives. Other vendors like Paragon and Novastor among others make similar imaging programs
As you can see I put a stronger emphasis on the free network aware imaging programs. This is because I strongly suggest that you do not use the same computer that you are imaging to store the image. Rather always image your drive with a program that can restore over a network or from an external drive/recordable media. The last thing you want to do is have a new malware wipe your computer out, including the image!
Share and Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
Tags: malware, security, analysis, virtual machine