Using machine learning and predictive analytics to combat the increasing exposure to cyber threats