Need a VM for running a PHP Sandbox

Posted by Phani on Server Fault See other posts from Server Fault or by Phani
Published on 2012-03-29T02:47:16Z Indexed on 2012/03/29 5:31 UTC
Read the original article Hit count: 556

I am working on Web application honeypot. It collects PHP files it receives (as part of an RFI attack) and runs them in order to return the result back to the attacker. The aim is to coax the bad guy into going further into his attack. Based on the answers to my SO question, I am looking at using VMs for running the PHP Sandbox.

The honeypot itself consists of Python code and will be running in a Linux environment (preferably Ubuntu-like). These are some of the requirements:

  1. The VM should be a light weight as possible. We are going to distribute the code around and many people are going to use the VM along with the Python based honeypot. So, the installation and configuration should not be too difficult.

  2. The guest system would also be Linux as we are going to distribute the VM image around.

  3. It should be possible for the Python code outside to talk to the guest system. It would be passing on the PHP file to the guest system and will get the output result from it.

  4. It should be possible to automate the initial configuration of the VM (such as allocation of RAM etc.) I would like to randomize these settings in order to make the sandbox less 'fingerprintable'

I have looked at OpenVZ and KVM so far. Are there any other VMs that I might look at? What do you recommend?

© Server Fault or respective owner

Related posts about virtualization

Related posts about virtual-machines