Some hemipterans such as firebugs have bold aposematic warning coloration, often red and black, which appear to deter passerine birds. Many hemipterans including aphids, scale insects and especially the planthoppers secrete wax to protect themselves from threats such as fungi, parasitoidal insects and predators, as well as abiotic factors like desiccation. Hard waxy coverings are especially important in the sedentary Sternorrhyncha such as scale insects, which have no means of escaping from predators; other Sternorrhyncha evade detection and attack by creating and living inside plant galls. Nymphal Cicadoidea and Cercopoidea have glands attached to the Malpighian tubules in their proximal segment that produce mucopolysaccharides, which form the froth around spittlebugs, offering a measure of protection.
