To overcome challenges such as limited energy availability for terminal devices, constrained network coverage, and suboptimal spectrum resource utilization, with the overarching objective of establishing a sustainable and efficient interconnection infrastructure, we introduce an innovative Intelligent Reflective Surface (IRS) technology. This cutting-edge IRS technology is employed to architect a wireless and energy-efficient cognitive secure communication network assisted by IRS. To further optimize the overall energy harvesting of this network, we present a cognitive secure resource allocation scheme, aiming to maximize the system’s total collected energy. This scheme carefully considers various constraints, including transmission power constraints for cognitive base stations, power constraints for jammer devices, interference limitations for all primary users, minimum security rate constraints for all cognitive Internet of Things (IoT) devices, and phase shift constraints for IRS. We establish a comprehensive hybrid cognitive secure resource allocation model, encompassing joint cognitive transmission beam design, jammer device transmission beam design, and phase shift design. Given the non-convex nature of the formulated problem and the intricate coupling relationships among variables, we devise an effective block coordinate descent (BCD) iterative algorithm. The realization of joint cognitive/jammer base station transmission beam design and phase shift design employs sophisticated techniques such as continuous convex approximation methods and semi-definite programming. Simulation results underscore the superior performance of the proposed scheme compared to existing resource allocation approaches, particularly in terms of total harvested energy and other critical metrics.