Scientists have identified a regulatory, genetic mechanism in plants that could help fight bacterial infection.