Detecting Threats With Machine Learning