Wikipedia said:Many papilionid larvae produce bad smells from extrudable glands called osmeteria.
Regarding the cocoon: the thorciasid is epic, though, and should be nastier. I guess I'd also put in a break DC, but I will bow to your judgment.![]()