Deception and defense from machine learning to supply chains