Abstract: The Mobile Ad hoc Network (MANET) is a wireless network component that offers a variety of applications in numerous industries. Perhaps the biggest problem with networks was the security of MANET. MANET is defenceless against many attacks that affect its availability and functionality. The black hole attack is one of the most dangerous dynamic assaults since it prevents the network from being presented and reliable because the malicious node drops all incoming data packets. By ensuring that it always has the best path to the target node, the black hole attack aims to trick every node in the network that wants to communicate with another node. A black hole attack into the network cannot be detected or prevented by the responsive routing protocol AODV. In this study, we improved the AODV routing protocol by using a different, more lightweight technique that recognises and detects single and multiple black hole attacks using hop count and trolling. In this study, we present a security method for MANET against solitary and group black hole attacks. The blackhole attack is a packet-dropping attack that acts like a regular node during connection formation and drops all data packets after forwarding a bogus reply from the destination to the sender. With the help of other regular nodes, one or more malicious nodes in this assault establish a safe environment. The proposed IDS (Intrusion Detection System) locates nodes that are not continually forwarding data packets but are still present in the network and offers secure communication in a dynamic network.