Virtual Knowledge Community (VKC) is presently the new area of research that is currently coming of age in the research community. VKC which is a virtual place where knowledge agents can meet, communicate and interact among themselves. In recent times, many research works have been done in the area of VKC but the security aspect of the system has not received any considerable attention in the research community. Therefore, this paper presents a framework to secure agents in VKC against any malicious attacks in an encrypted form of sharing knowledge. The proposed approach will go along way in addressing the security issues in VKC.