Mobile Ad Hoc Network (MANET) is a collection of nodes, which form an infastructureless topology. There is no central access point or centralized management. For their nature, MANETs present a number of unique problems for Intrusion Detection Systems (IDS). This paper introduces an intrusion detection framework for MANETs, which is based on trust relationship. In our proposed framework, intrusion detection system relies on local and global determination of attacks within network and carried out in a distributed fashion with cooperation among nodes. Trust in this manner is an important issue. The nodes watch suspicious activities of neighboring nodes. An intrusion detection alert message is disseminated throughout the network to report the anomaly. Reputation of intrusion detection alert messages is used for trust assessment. The proposed framework aims to utilize a distributed and cooperative trust based intrusion detection system to cope with the disadvantages drawn from mobility of nodes and the probability of selfishness, which are unique to MANETs.