Chemical defense is another important defense found amongst species of Coleoptera and Lepidoptera, usually being advertised by bright colors, such as the Monarch butterfly. They obtain their toxicity by sequestering the chemicals from the plants they eat into their own tissues. Some Lepidoptera manufacture their own toxins. Predators that eat poisonous butterflies and moths may become sick and vomit violently, learning not to eat those types of species; this is actually the basis of Müllerian mimicry. A predator who has previously eaten a poisonous lepidopteran may avoid other species with similar markings in the future, thus saving many other species as well. Some ground beetles of the Carabidae family can spray chemicals from their abdomen with great accuracy, to repel predators.
Which insect manufactures it's own toxins?
Lepidoptera