Plants might seem helpless when it comes to insect attacks, but they are known to employ various techniques to deter pests.