We found that bacteria can detect the degradation of their own genome — a hallmark of phage infection. They do it by sensing the accumulation of a modified nucleotide, N⁶-methyl-deoxyadenosine monophosphate (m⁶dAMP) — a signature molecule that appears when bacterial DNA is broken down.