@ShaulaEvans
Some leaf beetles produce toxins which they can secrete through glands on their back.
...other leaf beetles feed on poisonous plants, "collect" the toxins and secrete them (sometimes chemically modified).
... and *some* leaf beetle larvae keep the toxins of the plants inside their digestive tract making their feces toxic. Their anus is at a position where they shit on their own back producing a protective "fecal mask". No shit.