4

Possible Duplicate:
Virtual Machine and Virus

I am running a virtual machine on VirtualBox. Assuming that I have no shared folders between the host and guest OS, is the guest OS completely sandboxed? (eg I could fill that VM with horrible viruses/rootkits/malware and it could never affect my host OS?) Or is there some way for a program to detect that it is in a VM and escape to/cause damage to the host OS?

I'm running Windows 7, but I'm curious about the general case.

1

2 Answers 2

3

Yes, it is totally sandboxed (With the exception @TuxRug mentions). There is no chance of anything infecting the host system. Unless, of course, there is some form of network sharing.

4
  • 1
    Often not true, most VMs have options to mount folders or share network connections.
    – Phoshi
    Jan 23, 2011 at 18:04
  • 1
    @Phoshi: My answer mentions that network shares could compromise the security of the system.
    – Wuffers
    Jan 23, 2011 at 18:05
  • Yes, it does now, pretty sure it didn't at first. Correct, +1!
    – Phoshi
    Jan 23, 2011 at 19:31
  • The sandboxing is not always foolproof either. I don't know of any malware in the wild that exploits this vulnerability, but a black hat presentation recently revealed that through a glitch in the video driver VMware provides to Windows guests, a program in the guest can write to host memory.
    – TuxRug
    Jan 23, 2011 at 20:18
0

Have a look at some of these articles:

http://www.devx.com/vmspecialreport/Article/30377

The single most valuable feature of using a virtual machine for browsing is the undo capability. Microsoft implements this with its undo disks feature. The idea is simple: Whatever takes place in the guest machine, such as inadvertently downloading spyware, is written to another file instead of the principal virtual hard disk file where the OS and applications are installed. When the browsing session ends, the guest machine is turned off without saving any of the changes that occurred while it was running.

-

http://www.mac-forums.com/forums/switcher-hangout/145853-vmware-virtual-machines-sandboxed.html

If by "sandboxed" you mean isolated from OS X, then the answer is yes. An example would be running XP in a VM and contracting a virus or some malware, that virus or malware could not effect OS X - or "leak out".

Not the answer you're looking for? Browse other questions tagged .