Threats and Countermeasures in Machine Learning Applications