If you would like to read more there is an excellent article which you can find with the search terms: ASM Mechanisms behind the Madness Entomopathogens
Moths, flies, crickets, ants, beetles, and spiders are all targeted by cordyceps species. Each host species is usually infected by a specific cordyceps species which can only use a specific species as a host.