One embodiment of the invention discloses a method and device for optimizing network anti-
virus indexes. The method comprises following steps: obtaining anti-
virus indexes of terminals in a network, wherein the anti-
virus index of each terminal in the network comprises at least one kind of information as follows: virus infection and anti-virus capability information; optimizing the anti-virus indexes of terminals in a network by means of the
genetic algorithm to obtain the optimized anti-virus indexes of terminals in the network; obtaining the optimized network anti-virus indexes based on the optimized anti-virus indexes of terminals in the network. One embodiment of the invention also discloses a device for optimizing network anti-virus indexes.