Take the 2-minute tour ×
Information Security Stack Exchange is a question and answer site for Information security professionals. It's 100% free, no registration required.

Possible Duplicate:
How secure are virtual machines really? False sense of security?

E.g. on Ubuntu/Fedora - if I have VirtualBox installed and I'm running guests in it, then how can I make it harder for an attacker to get access to the VirtualBox host from the VirtualBox guests?

e.g.:
- If we set NATed network card in Vbox, then the Vbox guest can't see the Vbox host in his network, in Layer3 & Layer2, hurrah!

  • Run VirtualBox with a different user?
share|improve this question
    
Are you referring to "in general", or at the network layer, or Hypervisor layer, or...? –  SteveS May 25 '11 at 16:00
    
""Any layer"" that could increase security regarding this topic –  LanceBaynes May 25 '11 at 17:30
add comment

marked as duplicate by AviD Jun 5 '11 at 17:33

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

up vote 4 down vote accepted

Here's some basic steps that I follow when I'm testing in a virtual environment.

Step one: use an operating system that differs from the one being virtualized. If you're running Linux virtual machines, use the windows VirtualBox installation. Note: I have never seen actual evidence that this helps, but I have always done it simply to stay on the safe side.

Step two: I don't have as much experience with VirtaulBox in particular with this, but make sure to disable any host/client shared directories, do not install VirtualBox Additions on the host, and configure any other available options which help segregate/sandbox the virtual machine.

Step three: Properly set up your network. Make sure that, at a minimum, the host's sub-net and the VM's sub-net are segmented. By segmentation I mean that is security and controls between the two networks (i.e. firewall, acls, etc...). One may even take it as far as not persistently networking the host machine; Set up one NIC as management that isn't plugged in until you need to actually interface with the hypervisor and connect the VMs through other NICs.

This is pretty universal for any virtual environment. Something else I would do is research exploits regarding VirtualBox. Can you find exploits that let you dos the host via the guest? exploits that let you break into a host terminal/console? etc? If you find these exploits, configure the "hardened" virtual environment and then give them a try; see if they work.

The rest all depends on what you want to do with the machine. If you just want it to be as secure as possible, than most of the work will be on the guest side of the puzzle, making sure that the OS is secure. If you want to set up a pen-test lab, then those steps should leave you at a good place to start throwing together some scenarios. If you want to tell us what you were thinking of in particular, we can give you some more help.

share|improve this answer
    
haha, thanks @Iszi. –  Ormis May 26 '11 at 18:58
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.