Wireless sensor networks (WSNs) have received wide-ranging considerationdue to their boundless potential in civil and military applications. Maliciousself-replicating codes, known as malware, pose substantial threat to the wireless computing infrastructure. The attacks of the malicious signals in the WSNare epidemic in nature. Biological epidemic models will be helpful to understand the dynamical behavior of the malware attack in WSN. In this paper,A (SEIRS-V) Susceptible - Exposed - Infected - Recovered - Susceptible witha Vaccination compartment, describing the undercurrents of worm propagation with respect to time in wireless sensor network (WSN) is considered. Theanalytical solution of WSN is obtained by Homotopy Perturbation Method.Numerical results are obtained and are graphically interpreted using Maple.The results assures that the dynamics of worm propagation in WSN by theproposed model exhibits rich dynamics.