The unmanned aerial vehicle (UAV) assisted transmission can significantly improve the spectrum efficiency and coverage of the wireless communication network. The paper proposed a cooperative secrecy transmission mechanism, which can take advantage of transmitter signal of primary user (PU) as a dedicated radio frequency (RF) source with decode and forward (DF) UAV selection and energy harvesting (EH) under cognitive network. Specifically, the transmitting signal of PU in the cognitive network can be viewed and used as energy to drive secondary user (SU) nodes and multi-relay nodes to send signals. It was worth noting that the DF UAV relay may bring about the unexpected noise and decrease the received signal to noise ratio (SNR), therefore, the multiple UAV assisted relays selected with secrecy capacity maximization criteria under cognitive network was proposed and investigated in detail, where the destination node equipped with multiple antennas and adopted the optimal antenna selection receiver. Moreover, By using the function analysis method, the closed expressions of the system secrecy outage probability (SOP) and the probability of non-zero secrecy capacity were calculated and derived accurately. Furthermore, the asymptotic expressions of the UAV assisted relay system under the large SNR cases were analyzed in detail, where the expressions of secrecy diversity order and secrecy diversity gain of the UAV assisted relay cognitive system were obtained thoroughly. Simulation results verified the effectiveness of the proposed mechanism and the correctness of the calculation.