Some species release a volatile substance when attacked by a predator that can trigger flight (in aphids) or aggression (in ants, bees, termites, and wasps) in members of the same species. For example, Vespula squamosa use alarm pheromones to alert others to a threat. In Polistes exclamans, alarm pheromones are also used as an alert to incoming predators. Pheromones also exist in plants: Certain plants emit alarm pheromones when grazed upon, resulting in tannin production in neighboring plants. These tannins make the plants less appetizing to herbivores.
An alarm pheromone has been documented in a mammalian species. Alarmed pronghorn, Antilocapra americana flair their white rump hair and exposes two highly odoriferous glands that releases a compound described having the odor "reminiscent of buttered popcorn". This sends a message to other pronghorns by both sight and smell about a present danger. This scent has been observed by humans 20 to 30 meters downwind from alarmed animals. The major odour compound identified from this gland is 2-pyrrolidinone.