The remote sensor framework is encircled by group of large no. of sensor nodes. The sensor center points have the limit of distinguishing the weight, vibration, development, dampness, and sound as in etc. In view of a necessity for generosity of checking, remote sensor frameworks (WSN) are regularly abundance. Data from different sensors is totaled at an aggregator center point which then advances to the base station only the aggregate qualities. Existing structure simply focus on acknowledgment of Attack in the framework. This paper areas examination of Attack Prevention besides gives an idea to how to overcome the issues. What's more, utilize the SSSD dijkstra calculation for finding the briefest way from source hub to destination hub. Furthermore, give more security in the system