Foundations of Securing the Cloud