The application of unmanned aerial vehicles (UAVs) is promising to improve the energy harvesting (EH) efficiency of simultaneous wireless and information and power transfer (SWIPT) system. However, the secure communications are challenging in UAV-assisted SWIPT systems due to the high probability of the existence of line-of-sight links between the UAV and eavesdroppers and the broadcast nature of SWIPT. In order to overcome it, a resource allocation problem is studied in an UAV-assisted SWIPT system, where the multiple eavesdroppers exist. The secrecy rate is maximized by jointly optimizing the trajectory and transmit power of the UAV. An alternative optimization algorithm is proposed to tackle the challenging non-convex problem. The simulation results demonstrate that our proposed resource allocation scheme outperforms other benchmark schemes in terms of the average secrecy rate. It is shown that our proposed algorithm is efficient to converge. INDEX TERMS Unmanned aerial vehicles, physical layer security, SWIPT, resource allocation, energy harvesting. FUHUI ZHOU received the Ph.D. degree from Xidian University, Xi'an, China, in 2016. He is currently a Senior Research Fellow with Utah State University. He is also an Associate Professor with the School of Information Engineering, Nanchang University. He has worked as an international visiting Ph.D. student of the University of British Columbia, from 2015 to 2016.