A mobile ad hoc network (MANET) is a temporary network with a collection of wireless mobile nodes. The major concern in the MANET is the secure transmission of the data by preventing selfish nodes or attackers from the network. In this research, an advanced message transfer and route maintenance approach is developed for secure multipath routing in MANET. The cluster head from the nodes is selected using fuzzy clustering to address the security and energy crisis. The intrusion in the node is detected with the help of a fuzzy NB classifier (FNBC). The multipath routing is performed using the Bird Swarm-Whale Optimization Algorithm (BSWOA) for secure multipath communication between the source and the destination node. The BSWOA is developed by combining the Whale Optimization Algorithm (WOA), and Bird Swarm Algorithm (BSA). The fitness factors, such as trust, connectivity, throughput, and energy are used for the selection of optimal routes. The route maintenance is done using the dynamic quality factor based on trust and energy. The dynamic node insertion is performed using Unique Message Transfer (UMT). The performance of the developed BSWOA+UMT method is evaluated using metrics, such as delay, detection rate, energy consumption, and throughput in the absence of attack and the presence of blackhole attacks, flooding attacks, and selective path drop attacks. The developed BSWOA+UMT method obtained a minimum delay of 0.0030sec, maximum detection rate of 0.9095, minimum energy consumption of 8.7840J, and maximum throughput of 0.9005 respectively.