Corythoderini

Corythoderini are a species of scarab that live within the mounds of some termites, they secret a substance used in some way by the termites.

They are kept by the termites in their fungus gardens and are therefore safe from predators, if ants attack the mound the beetles will be caried out of danger by the termites.

Secretion
While it is unknown what the termites do with the secrtion there are many speculations:
 * Perhaps the secretion is eaten by the termites like aphid honeydew is eaten by ants.
 * Mybe the secretion is used as fertilizer for the mushrooms in the garden.