A Machine Learning Approach to Detecting Attacks by Identifying Anomalies in Network Traffic