With the increase in number of people and organizations migrating to cloud has raised a concern for data security. In cloud computing environment, services are hosted over large data centers which completely managed by the cloud service provider, this causes lack of trust. So a Third Party Auditor (TPA) can be provisioned to ensure the data integrity over the outsourced data. TPA can not only read but also modify data. Therefore a security mechanism should be provided to solve this problem. In this paper, analysis of different mechanisms implemented to ensure data security while using services from cloud is carried out and taking into considerations the areas of improvement a security framework has been built using simple AES-128 bit key and counting bloom-filter algorithm to ensure confidentiality and integrity of data shared over cloud.