Scientists have shed light on the evolutionary history of a soil-borne bacteria that is so dangerous to grazing animals it is kept behind lock-and-key to prevent its spread.