Viruses can kill bacterial cells or, under the right circumstances, lend them helpful genes that the bacterium could harness to, say, better attack its own hosts. Experiments have now revealed that one type of bacterial immune system can distinguish viral foe from friend, and it does so by watching for one particular cue.