In view of the Grid Leader Selection Protocol in GRID routing protocol, first analyzes its security by using the formal analysis method based on finite state machine. Then combined with the existing reputation system, this paper proposes a reputation model based on creditworthiness. The model includes reputation calculation, reputation management and reputation decision. According to the change of the credibility of the nodes and set the credibility threshold to identify and deal with internal malicious nodes, ensure the safe and reliable communication network. Simulation results show that this model can effectively identify malicious nodes and significantly improve the delivery rate of network packets, but the average transmission delay between nodes is prolonged, which needs to be optimized.