Colobopsis explodens

Like some other species in its genus, it is noted for a rare combat mechanism of workers exploding in self-defense, smothering the enemy with toxic and often deadly secretion.

The species "Dipterocarpaceae" is noted as a main source of shelter for this particular kind of ants.

When threatened, it will voluntarily flex its gasters and explode, producing a highly toxic chemical sludge (with a spice-like smell) that will hopefully cover and kill or repel said instigator.

In addition to helping protect the ant against potentially threatening predators, it is thought due to its "strong antimicrobial and low insecticidal activity of the mandibular gland."

to be a way the ants disinfect and protect their nest against harmful bacteria and fungus that could be problems for the colony.

Scheme of a worker ant's anatomy
Colobopsis explodens pupa