Scientists may have uncovered a natural way to save plants from attack by recreating a natural insect repellent.