Researchers studied soil-dwelling entomopathogenic nematodes—parasitic worms that kill insects—and the bacteria living with them. Across three insect orders, two nematode species and four stages after death, they combined insect-behavior tests with measurements of airborne chemicals and carbon dioxide release.

Infected insect bodies produced a consistent odor blend rich in carboxylic acids, sulfur-containing compounds and unsaturated hydrocarbons, along with higher carbon dioxide emissions. Natural hosts were attracted to these odors, while non-natural hosts were repelled. Bodies killed by freezing instead showed fermentation-like odors, and bacteria alone produced simpler blends dominated by alkanes.