The current methods employed to resist primary user emulation attacks (PUEA) are almost all based on energy spectrum detection, which has several shortcomings, such as need for special application environments and relatively easy emulation. We propose a cooperative spectrum sensing algorithm based on cyclostationarity to resist PUEA. The proposed method analyzes the local spectrum sensing results and compares them with the statistical results without a malicious user (MU) to detect the presence of malicious users. Simulation results show that the method performs effectively in terms of sensing spectrum and resistance to PUEA.