Vehicular ad-hoc network, commonly known as VANET, is an enabling technology for supplying security and useful information in modern transport systems but subject to a multitude of attacks, ranging from auditing passively to hostile interfering. When suspicious actions are discovered, intrusion detection systems (IDS) are essential instruments for risk reduction. Additionally, by sharing interactions among their nodes, VANET vehicle collaborations improve detection accuracy. Because of this, the machine learning distribution system is efficient, scalable, and useful for developing cooperative detection methods over VANETs. Because data is exchanged between nodes during collaborative learning, privacy concerns are a basic barrier. Through the data that is observed, a rogue node may be able to obtain sensitive information about nodes other than itself. This research suggests cooperative IDS for VANETs that protects machine learning privacy. Additionally, an intrusion detection classifier is trained on the VANET and the proposed alternating multiplier direction approach is employed to solve a class of empirical risk minimization issues. In order to apply a vector approach of dual disturbance to dynamically varying privacy and provide secure network communication, the usage of privacy differential is done to capture the notation of privacy.