Wireless sensor networks are widely used in military reconnaissance, environmental monitoring, and other fields. Due to its characteristics such as high node deployment difficulty, limited energy, etc. makes the network coverage area appear vulnerability, etc. leads to serious security problems, the study proposes a distributed wireless sensor network vulnerability repair system based on the Mobile-N strategy, through the vulnerability detection to determine the location of the vulnerability edge node, and at the same time proposes an energy and performance optimization strategy, through the mobile distance, redundancy and the remaining energy of the comprehensive comparison to select the optimal repair node. Experimental results show that the Mobile-N strategy performs well in repairing network vulnerabilities and can effectively repair vulnerabilities while minimizing energy consumption and maximizing network stability. Specifically, the effective repair area ratio and node repair rate of the Mobile-N strategy in each experiment are higher than those of other algorithms, with an average effective repair area ratio of 94.9% and an average failed node repair rate of 94.9%, which indicates that the strategy has obvious advantages in terms of repair energy efficiency and repair node rate. Therefore, the distributed WSN vulnerability repair system based on Mobile-N strategy is of great research significance for improving the security and efficiency of wireless sensor networks and ensuring their stable operation.