Accurately distinguishing friend from foe is a matter of life and death for ants: mistaking an invader for a nest mate—or the reverse—can lead to fatal chaos.