Opportunistic routing in wireless networks under mobile computing domain is one of the point of attraction for the research. Consistency along with routing security are the challenges faced by many old schemes which results performance to be compromised. However the existing techniques developed for effective routing are cost effective without the concern for the exact positioning of nodes in the network but while designing the scheme, security still requires attention. A novel cross optimization based trusted and opportunistic routing scheme for WSN is proposed in this paper which is referred as Unified Trusted and Optimized Routing (UTOR) scheme. The prime intention of UTOR is to realize optimized data movement along with routing and data security. UTOR functions in two stages, the first stage recognizes and unites the unified nodes depending on defined liberal constant(LC) which has definite trust, link stability, and quality components. Definite trust as well as link stability can be measured directly but time to live and the associated delay are considered for measuring the quality. Whereas in second stage optimized nodes selection takes place with the help of proposed UTOR over defined proclivity function(PF) based on definite_trust(DT), link_stability (LS), quality_of_node(QN) and distance. Proposed UTOR’s performance is evaluated based on performance measures for Ad-Hoc sensor network of varying range of dynamic nodes in the presence of black_hole and DoS attacks. UTOR exposes relatively superior throughput and detection rate at the same time showcases minimal distance and delay, which are comparatively better than competing schemes. Significantly higher throughput and detection_rate as 44.1 and 55.7 respectively alongside low distance and delay as 168.2 and 13 are shown by UTOR which are comparatively better performance parameters than competing schemes. UTOR’s effective use in WSN may be under real-time scenarios such as environmental monitoring, smart farming, automation industries etc.