Active scanning worms have drawn a significant attention due to their enormous threats to the Internet infrastruc- ture and services. In order to effectively defend against them, this paper proposes a novel epidemic SEIQV model with quarantine strategy. Using this SEIQV model, we obtain the basic reproduction number for determining whether the worm dies out completely. The global stabili- ties of worm-free equilibrium and endemic equilibrium are proved, and determined by the basic reproduction num- ber. The impact of different parameters of this model is studied. Simulation results show that the number of susceptible, infected and vaccinated hosts are consistent with theoretical analysis. The model provides a theoret- ical foundation for controlling and forecasting for active scanning worms.