Cloud computing is a class of the next generation highly scalable and distributed computing platform in which computing resources are offered 'as a service' leveraging virtualization and Internet technologies. Cloud computing docs not clearly define boundaries to protect the user data. The data, communications, services and other important resource are controlled by the cloud service provider. The alarming situation is the probable leakage of sensitive data by service provider. To protect the data from service provider. In this paper we propose an agent based model that would secure the users data over the cloud and implemented various algorithms to provide a secured system. © 2012 Published by Elsevier Ltd.