Wireless network is a group of computer network devices using wireless communication. There are many types of jamming attacks affecting in wireless communication. In order to avoid the jamming attacks in the flow of network communication, the network security helps us to manage the uninterrupted solution to wireless communication. By using swarm intelligence, can provide the collaborative deductive solution to the different jamming attacks in wireless communication. This investigation provides on security issues of wireless sensor networks requirements and challenges for Wireless Sensor Networks (WSN). Wireless sensor networks provide ordered and reliable observation of few features of physical phenomena which are otherwise very difficult to scrutinize and also the instigation of right actions based on collective information from wireless sensor network nodes. The application of swarm intelligence optimization helps on several network performance and social applications such as target tracking, disaster management, field inspection, ecological and habitation monitoring, healthiness application, residence automation and traffic management has been pointed out.