Ensuring security and data protection in a virtual environment