Wireless Sensor Networks (WSNs) comprises of low power, minimal effort active devices, which have restricted power sources. With a boundless development of the utilization of WSN, the security components are likewise considered to be a rising enormous issue. Wireless sensor plays a major role in collection of data in tedious areas. WSN are now widely used in collection of data such as temperature of a particular area and also plays a major role in military and agricultural purposes. The data that are transmitted over this network must be ensured for security. In this paper, the authors have discussed about the various attacks on the Wireless Sensor Network and proposed a new solution for the secure transmission of data in the sensor network using NTP server.