To improve the efficiency and accuracy of network intrusion discrimination, this paper introduces intrusion detection techniques in a generative adversarial network model. Firstly, a basic framework of a generative adversarial network is constructed. Secondly, the generative adversarial network is trained, and the training process is analyzed to find the data discrimination point in the network. Finally, ELM (Extreme Learning) algorithm is introduced at this discriminating point. The output weight matrix is derived using the minimization square loss function and least squares regression to improve the intrusion discrimination accuracy and intrusion cracking rate in the generative adversarial network, improving network security. To verify the security of the ELM algorithm, this paper simulates the intrusion of the constructed network model, and the results show that the intrusion detection accuracy of the generative adversarial network model based on the ELM algorithm can reach 100%, which is higher than that of DCGAN network 19% and LSGAN network 23%, respectively. The intrusion cracking rate of its layer 5 neural network can reach 92% at the second 2.5 seconds of the simulated intrusion. From the above results, it is clear that the generative adversarial network model based on the ELM algorithm can accurately detect and efficiently crack the intrusion to improve the network security performance.